[20bb1d]: minidlnatypes.h  Maximize  Restore  History

Download this file

68 lines (57 with data), 1.3 kB

 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
57
58
59
60
61
62
63
64
65
66
67
/* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2006-2007 Thomas Bernard
* This software is subject to the conditions detailed
* in the LICENCE file provided within the distribution */
#ifndef __MINIDLNATYPES_H__
#define __MINIDLNATYPES_H__
#include "config.h"
#include <netinet/in.h>
/* structure for storing lan addresses
* with ascii representation and mask */
struct lan_addr_s {
char str[16]; /* example: 192.168.0.1 */
struct in_addr addr, mask; /* ip/mask */
};
struct runtime_vars_s {
int port; /* HTTP Port */
int notify_interval; /* seconds between SSDP announces */
};
enum media_types {
ALL_MEDIA,
AUDIO_ONLY,
VIDEO_ONLY,
IMAGES_ONLY,
NO_MEDIA
};
enum file_types {
TYPE_UNKNOWN,
TYPE_DIR,
TYPE_FILE
};
enum client_types {
EXbox = 1,
EPS3,
ESamsungTV,
EDenonReceiver,
EFreeBox,
EPopcornHour,
EStandardDLNA150 = 100
};
struct media_dir_s {
char * path; /* Base path */
enum media_types type; /* type of files to scan */
struct media_dir_s * next;
};
struct album_art_name_s {
char * name; /* Base path */
struct album_art_name_s * next;
};
struct client_cache_s {
struct in_addr addr;
unsigned char mac[6];
enum client_types type;
u_int32_t flags;
time_t age;
};
#endif

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks