blob: 187e46f835b9ade4f6caca48ebcead4d5b0e6b7c (
plain)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
/*
* config.h
*
* Created on: 03.08.2012
* Author: savop
*/
#ifndef CONFIG_H_
#define CONFIG_H_
#include <string>
#include <stdint.h>
#include "media/profile.h"
using namespace std;
namespace upnp {
struct cConfig {
cConfig();
/**
* Enable the media server
*
* If this is true, the media server is running on startup.
*/
bool enabled;
/**
* Enable expert settings
*
* If this is true, the user may customize additional settings, which should
* only be done, if the user is very experienced or want to use that for
* debugging.
*/
bool expertSettings;
/**
* Web server root directory
*
* This is the directory, where the internal web server is looking for files. If it
* is empty, the default directory (plugins configuration folder) is used.
*/
string webServerRoot;
/**
* Web server port
*
* This is the port where the web server is listening on.
*/
uint16_t webServerPort;
/**
* External web server URL
*
* This is the URL, which is used instead of the internal web server URL. If it is
* empty, the default presentation URL, which is /index.html is used.
*/
string presentationURL;
bool useLive;
uint16_t livePort;
/**
* Maximum size of SOAP messages
*
* This is the maximum size in bytes of soap messages received by the UPnP library.
*/
size_t maxContentLength;
/**
* Maximum age of upnp announcements
*
* This is the number of seconds an announcement is valid until the device is declared
* as out-dated and has to re-new its announcement.
*/
int announceMaxAge;
/**
* DeviceUUID
*
* This is the unique identifier for this media server device. If this is empty
* it will be generated.
*/
string deviceUUID;
void GenerateNewDeviceUUID();
/**
* Bind the server to an IP address
*
* If this is true, the media server is bound to the specified IP address,
* otherwise the specified interface will be used.
*/
bool bindToAddress;
string address;
string interface;
/**
* The media server listening port
*
* This is the port which the media server is listening for incoming connections
*/
uint16_t port;
/**
* The sqlite database file
*
* This is the path to the database file.
*/
string databaseFile;
};
}
#endif /* CONFIG_H_ */
|