summaryrefslogtreecommitdiff
path: root/live.h
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-04 17:42:33 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-04 17:42:33 +0000
commit61e31de98b97f556cfb2a0cafa172bde673e7859 (patch)
treef92c3c42107f89a7de7b3c489527b3b6a2421078 /live.h
parentc5cb6d2e099c9ae44cc3d26e4800c9f9101852e7 (diff)
downloadvdr-plugin-live-61e31de98b97f556cfb2a0cafa172bde673e7859.tar.gz
vdr-plugin-live-61e31de98b97f556cfb2a0cafa172bde673e7859.tar.bz2
- removed thread-unsafe call of cPlugin::ConfigDirectory and replaced it with Plugin::GetConfigDirectory
- implemented proper shutdown of server thread on vdr termination
Diffstat (limited to 'live.h')
-rw-r--r--live.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/live.h b/live.h
index ac1188b..eba7108 100644
--- a/live.h
+++ b/live.h
@@ -2,6 +2,7 @@
#define VDR_LIVE_LIVE_H
#include <memory>
+#include <string>
#include <vdr/plugin.h>
#include "thread.h"
@@ -40,10 +41,14 @@ public:
virtual Setup& GetLiveSetup();
virtual TimerManager& GetLiveTimerManager();
+ static std::string const& GetConfigDirectory() { return m_configDirectory; }
+
private:
static const char *VERSION;
static const char *DESCRIPTION;
+ static std::string m_configDirectory;
+
std::auto_ptr< ServerThread > m_thread;
};