summaryrefslogtreecommitdiff
path: root/service/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'service/main.cpp')
-rw-r--r--service/main.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/service/main.cpp b/service/main.cpp
index 97bc89e..00563f4 100644
--- a/service/main.cpp
+++ b/service/main.cpp
@@ -2,10 +2,22 @@
#include <Ice/ObjectAdapter.h>
#include <icetrayService.h>
#include "apiImpl.h"
+#include <curl/curl.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");