summaryrefslogtreecommitdiff
path: root/mythfs/service/main.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-24 04:58:10 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-24 04:58:10 +0000
commite16e5330de6738dbf76864dba0bbebafe108a614 (patch)
treeee282227211bdea2abc4837115d3b22b1cfd49d7 /mythfs/service/main.cpp
parentInitial WIP commit of MythFS (diff)
downloadmythfs-e16e5330de6738dbf76864dba0bbebafe108a614.tar.bz2
mythfs-e16e5330de6738dbf76864dba0bbebafe108a614.tar.xz
mythfs-e16e5330de6738dbf76864dba0bbebafe108a614.zip
Add service and models for reading from database
Diffstat (limited to 'mythfs/service/main.cpp')
-rw-r--r--mythfs/service/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/mythfs/service/main.cpp b/mythfs/service/main.cpp
index f12472d..145cf71 100644
--- a/mythfs/service/main.cpp
+++ b/mythfs/service/main.cpp
@@ -3,6 +3,7 @@
#include <icetrayService.h>
#include "service.h"
#include "recordingsVolume.h"
+#include "dbimpl.h"
class Api : public IceTray::Service {
public:
@@ -10,7 +11,8 @@ class Api : public IceTray::Service {
{
auto db = getConnectionPool(ic, "mysql", "mythconverg");
adp->add(new MythFS::Service(), ic->stringToIdentity("service"));
- adp->add(new MythFS::RecordingsVolume(db), ic->stringToIdentity("recordings"));
+ adp->add(new MythFS::DBImpl(db), ic->stringToIdentity("db"));
+ adp->add(new MythFS::RecordingsVolume(), ic->stringToIdentity("recordings"));
}
};