forked from clark15b/xupnpd2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmime.h
56 lines (43 loc) · 916 Bytes
/
mime.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Copyright (C) 2015-2018 Anton Burdinuk
* http://xupnpd.org
*/
#ifndef __MIME_H
#define __MIME_H
#include "mime.h"
#include <string>
#include <map>
namespace mime
{
struct type_t
{
int id;
int type;
const char* name;
const char* alias;
const char* mime;
const char* upnp_proto;
const char* upnp_type;
const char* dlna_extras;
};
enum
{
undef = 0,
cont = 0,
video = 1,
audio = 2,
image = 3
};
extern const char upnp_container[];
extern const char upnp_video[];
extern const char upnp_audio[];
extern const char upnp_image[];
extern type_t types[];
bool init(void);
void disable_dlna_extras(void);
type_t* get_by_name(const std::string& name);
type_t* get_by_id(int id);
void done(void);
}
#endif