summaryrefslogtreecommitdiff
path: root/include/server.h
diff options
context:
space:
mode:
authormethodus <methodus@web.de>2013-05-05 18:04:13 +0200
committermethodus <methodus@web.de>2013-05-05 18:04:13 +0200
commit001751f2d9ec3e13f5c4c36e8361ce1e4db43871 (patch)
tree1343028f7baa1a4f3412384cc4d384cbfcaf0b1b /include/server.h
parentd260e7cb971bfeb031f40c3d61e4778dd326083d (diff)
downloadvdr-plugin-upnp-001751f2d9ec3e13f5c4c36e8361ce1e4db43871.tar.gz
vdr-plugin-upnp-001751f2d9ec3e13f5c4c36e8361ce1e4db43871.tar.bz2
Fixed segfault in vdrProvider
Diffstat (limited to 'include/server.h')
-rw-r--r--include/server.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/server.h b/include/server.h
index 6f52a1f..10be258 100644
--- a/include/server.h
+++ b/include/server.h
@@ -12,6 +12,8 @@
#include <map>
#include <list>
#include <upnp/upnp.h>
+#include <tntdb/connect.h>
+#include <tntdb/connection.h>
#include "../include/config.h"
using namespace std;
@@ -67,6 +69,7 @@ public:
const cWebserver& GetWebserver() const { return *mWebserver; }
cMediaManager& GetManager() const { return *mMediaManager; }
+ tntdb::Connection& GetDatabase() const { return mConnection; }
const string GetDeviceUUID() const { return string("uuid:") + mCurrentConfiguration.deviceUUID; }
@@ -94,6 +97,7 @@ private:
Description mServerDescription;
iconList mServerIcons;
upnp::cConfig mCurrentConfiguration;
+ tntdb::Connection mConnection;
string mConfigDirectory;
UpnpDevice_Handle mDeviceHandle;
int mAnnounceMaxAge;