summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse-api/service/main.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/gentoobrowse-api/service/main.cpp b/gentoobrowse-api/service/main.cpp
index b7b18a2..8ac8a8b 100644
--- a/gentoobrowse-api/service/main.cpp
+++ b/gentoobrowse-api/service/main.cpp
@@ -7,10 +7,25 @@
#include "notificationsimpl.h"
#include "mailserverimpl.h"
+#include <libexslt/exslt.h>
+#include <libxslt/transform.h>
+
namespace Gentoo {
namespace Service {
class Api : public IceTray::Service {
public:
+ Api()
+ {
+ xmlInitParser();
+ // exsltRegisterAll();
+ }
+
+ ~Api()
+ {
+ xsltCleanupGlobals();
+ xmlCleanupParser();
+ }
+
void addObjects(const std::string &, const Ice::CommunicatorPtr & ic, const Ice::StringSeq &, const Ice::ObjectAdapterPtr & adp) override
{
auto db = getConnectionPool(ic, "postgresql", "GentooBrowseAPI");