summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authormethodus <methodus@web.de>2012-09-23 21:26:49 +0200
committermethodus <methodus@web.de>2012-09-23 21:26:49 +0200
commit4ff5f1b52b27d7b86d77ce956d79a1453810385b (patch)
tree5cbe6e00ff76b785fc1f15a49037fd4d3e327847 /common
parent8393e045b17fc379ee927e6b07b6b1fd36b97523 (diff)
downloadvdr-plugin-upnp-4ff5f1b52b27d7b86d77ce956d79a1453810385b.tar.gz
vdr-plugin-upnp-4ff5f1b52b27d7b86d77ce956d79a1453810385b.tar.bz2
Added setup menu and the possibility to use live-plugin instead of the internal presentation page
Diffstat (limited to 'common')
-rw-r--r--common/config.cpp9
-rw-r--r--common/tools.cpp5
2 files changed, 9 insertions, 5 deletions
diff --git a/common/config.cpp b/common/config.cpp
index ff24976..1668369 100644
--- a/common/config.cpp
+++ b/common/config.cpp
@@ -15,17 +15,20 @@ using namespace upnp;
upnp::cConfig::cConfig()
: enabled(true)
, expertSettings(false)
-, useInternalWebserver(false)
, webServerPort(0)
, presentationURL("index.html")
+, useLive(false)
+, livePort(8008)
, maxContentLength(KB(20))
, announceMaxAge(1800)
, deviceUUID(tools::GenerateUUIDRandomly())
-, serviceURL("services/")
-, staticContentURL("http/")
, bindToAddress(true)
, address("0.0.0.0")
, port(0)
, databaseFile("metadata.db")
{
}
+
+void upnp::cConfig::GenerateNewDeviceUUID(){
+ deviceUUID = tools::GenerateUUIDRandomly();
+}
diff --git a/common/tools.cpp b/common/tools.cpp
index 1b725e6..7ddfc4f 100644
--- a/common/tools.cpp
+++ b/common/tools.cpp
@@ -55,8 +55,8 @@ string GetNetworkInterfaceByIndex(int Index, bool skipLoop){
return GetNetworkInterfaces(skipLoop)[Index];
}
-vector<string> GetNetworkInterfaces(bool skipLoop){
- vector<string> interfaces;
+StringVector GetNetworkInterfaces(bool skipLoop){
+ StringVector interfaces;
int fd;
struct ifconf ifc;
@@ -457,3 +457,4 @@ IXML_Element* IxmlReplaceProperty(IXML_Document* document, IXML_Element* node, c
} // namespace ixml
} // namespace upnp
+