summaryrefslogtreecommitdiff
path: root/live.cpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2009-09-08 23:08:54 +0200
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2009-09-08 23:08:54 +0200
commitfd1e4dad6f9ad3d95001b1785be3cfc56931fbe0 (patch)
tree481970923c38e41013a4f84d048acd0aba9fa053 /live.cpp
parent712a9120b4de6fd5fa349ed3e4c61b507553e638 (diff)
parent1a19a11081e56aff745ca0ba625187fabc54fb94 (diff)
downloadvdr-plugin-live-cvs-commit-366.tar.gz
vdr-plugin-live-cvs-commit-366.tar.bz2
Merge commit 'winni/master' into develcvs-commit-366
Diffstat (limited to 'live.cpp')
-rw-r--r--live.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/live.cpp b/live.cpp
index f18949c..32a69b6 100644
--- a/live.cpp
+++ b/live.cpp
@@ -1,5 +1,5 @@
/*
- * httpd.c: A plugin for the Video Disk Recorder
+ * live.cpp: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
@@ -15,6 +15,7 @@
#include "thread.h"
#include "timers.h"
#include "preload.h"
+#include "users.h"
namespace vdrlive {
@@ -25,6 +26,8 @@ const char *Plugin::DESCRIPTION = LIVESUMMARY;
std::string Plugin::m_configDirectory;
+cUsers Users;
+
Plugin::Plugin(void)
{
}
@@ -52,6 +55,9 @@ bool Plugin::Start(void)
// preload files into file Cache
PreLoadFileCache(m_configDirectory);
+ // load users
+ Users.Load(AddDirectory(m_configDirectory.c_str(), "users.conf"), true);
+
// XXX error handling
m_thread.reset( new ServerThread );
m_thread->Start();