From 4c25da8a7ba7437657c3e2da592145113d3532f4 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 20 Jul 2019 10:53:14 +0100 Subject: Initial commit Not a lot of stuff, hard coded paths, tests against /usr/portage --- src/main.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/main.cpp (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..0666a3c --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,28 @@ +#include +#include +#include +#include +#include "repoList.h" + +namespace GitFS { + class Main : public IceTray::Service { + public: + Main() + { + git_libgit2_init(); + } + + ~Main() + { + git_libgit2_shutdown(); + } + + void addObjects(const std::string &, const Ice::CommunicatorPtr & ic, const Ice::StringSeq &, const Ice::ObjectAdapterPtr & adp) override + { + IceTray::Cube::addObject(adp, "Service", ic->getProperties()); + } + }; + + NAMEDFACTORY("default", Main, IceTray::ServiceFactory); +} + -- cgit v1.2.3