diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-09 13:58:38 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-09 13:58:38 +0000 |
commit | 62d506c24aaf543f84c82e2850a05b1387e4990d (patch) | |
tree | 3d356dcef6cb64baf648119c6b61aa9afd4e450b /service/main.cpp | |
parent | Exclude api.h from tidy checks (diff) | |
download | mirrorsearch-62d506c24aaf543f84c82e2850a05b1387e4990d.tar.bz2 mirrorsearch-62d506c24aaf543f84c82e2850a05b1387e4990d.tar.xz mirrorsearch-62d506c24aaf543f84c82e2850a05b1387e4990d.zip |
Clang format
Diffstat (limited to 'service/main.cpp')
-rw-r--r-- | service/main.cpp | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/service/main.cpp b/service/main.cpp index c84b11b..b008e08 100644 --- a/service/main.cpp +++ b/service/main.cpp @@ -1,30 +1,31 @@ +#include "apiImpl.h" #include <Ice/Initialize.h> #include <Ice/ObjectAdapter.h> -#include <icetrayService.h> -#include "apiImpl.h" #include <curl/curl.h> +#include <icetrayService.h> #include <libxml/parser.h> namespace MirrorSearch { class Api : public IceTray::Service { - public: - Api() - { - xmlInitParser(); - curl_global_init(0); - } - ~Api() - { - xmlCleanupParser(); - curl_global_cleanup(); - } - void addObjects(const std::string &, const Ice::CommunicatorPtr & ic, const Ice::StringSeq &, const Ice::ObjectAdapterPtr & adp) override - { - auto dbpool = getConnectionPool(ic, "postgresql", "MirrorSearch"); - adp->add(std::make_shared<SearchImpl>(dbpool), Ice::stringToIdentity("Search")); - } + public: + Api() + { + xmlInitParser(); + curl_global_init(0); + } + ~Api() + { + xmlCleanupParser(); + curl_global_cleanup(); + } + void + addObjects(const std::string &, const Ice::CommunicatorPtr & ic, const Ice::StringSeq &, + const Ice::ObjectAdapterPtr & adp) override + { + auto dbpool = getConnectionPool(ic, "postgresql", "MirrorSearch"); + adp->add(std::make_shared<SearchImpl>(dbpool), Ice::stringToIdentity("Search")); + } }; NAMEDFACTORY("default", MirrorSearch::Api, IceTray::ServiceFactory); } - |