diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-23 21:35:06 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-23 21:35:06 +0000 |
commit | ede1b5fd158d094e8752464e3355f1a6f1cc5501 (patch) | |
tree | 78c5c0efd2a62c0faddf9d220fd94d9bfe3f55bc /mythfs/service/main.cpp | |
parent | Switch lib64 references for native ones (diff) | |
download | mythfs-ede1b5fd158d094e8752464e3355f1a6f1cc5501.tar.bz2 mythfs-ede1b5fd158d094e8752464e3355f1a6f1cc5501.tar.xz mythfs-ede1b5fd158d094e8752464e3355f1a6f1cc5501.zip |
Initial WIP commit of MythFS
Diffstat (limited to 'mythfs/service/main.cpp')
-rw-r--r-- | mythfs/service/main.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mythfs/service/main.cpp b/mythfs/service/main.cpp new file mode 100644 index 0000000..f12472d --- /dev/null +++ b/mythfs/service/main.cpp @@ -0,0 +1,18 @@ +#include <Ice/Communicator.h> +#include <Ice/ObjectAdapter.h> +#include <icetrayService.h> +#include "service.h" +#include "recordingsVolume.h" + +class Api : public IceTray::Service { + public: + void addObjects(const std::string &, const Ice::CommunicatorPtr & ic, const Ice::StringSeq &, const Ice::ObjectAdapterPtr & adp) override + { + auto db = getConnectionPool(ic, "mysql", "mythconverg"); + adp->add(new MythFS::Service(), ic->stringToIdentity("service")); + adp->add(new MythFS::RecordingsVolume(db), ic->stringToIdentity("recordings")); + } +}; + +NAMEDFACTORY("default", Api, IceTray::ServiceFactory); + |