summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse-api/service/main.cpp4
-rw-r--r--gentoobrowse-api/service/portageimpl.cpp4
-rw-r--r--gentoobrowse-api/service/portageimpl.h4
3 files changed, 12 insertions, 0 deletions
diff --git a/gentoobrowse-api/service/main.cpp b/gentoobrowse-api/service/main.cpp
index 21473af..1429a72 100644
--- a/gentoobrowse-api/service/main.cpp
+++ b/gentoobrowse-api/service/main.cpp
@@ -3,6 +3,8 @@
#include <icetrayService.h>
#include "portageimpl.h"
+namespace Gentoo {
+namespace Service {
class Api : public IceTray::Service {
public:
void addObjects(const std::string &, const Ice::CommunicatorPtr & ic, const Ice::StringSeq &, const Ice::ObjectAdapterPtr & adp) override
@@ -13,4 +15,6 @@ class Api : public IceTray::Service {
};
NAMEDFACTORY("default", Api, IceTray::ServiceFactory);
+}
+}
diff --git a/gentoobrowse-api/service/portageimpl.cpp b/gentoobrowse-api/service/portageimpl.cpp
index 291e903..a3f499e 100644
--- a/gentoobrowse-api/service/portageimpl.cpp
+++ b/gentoobrowse-api/service/portageimpl.cpp
@@ -17,6 +17,8 @@
#include <sql/portage/getNewsSearch.h>
#include <sql/portage/getNewsRecent.h>
+namespace Gentoo {
+namespace Service {
Portage::Portage(boost::shared_ptr<AdHoc::ResourcePool<DB::Connection>> d) :
IceTray::AbstractDatabaseClient(d)
{
@@ -123,4 +125,6 @@ Portage::getNewsRecent(Ice::Int items, const Ice::Current &)
{
return fetch<Gentoo::News, sql::getNewsRecent>(items);
}
+}
+}
diff --git a/gentoobrowse-api/service/portageimpl.h b/gentoobrowse-api/service/portageimpl.h
index d36cb70..980aeb3 100644
--- a/gentoobrowse-api/service/portageimpl.h
+++ b/gentoobrowse-api/service/portageimpl.h
@@ -5,6 +5,8 @@
#include <visibility.h>
#include <abstractDatabaseClient.h>
+namespace Gentoo {
+namespace Service {
class DLL_PUBLIC Portage : public Gentoo::Portage, IceTray::AbstractDatabaseClient {
public:
Portage(boost::shared_ptr<AdHoc::ResourcePool<DB::Connection>> d);
@@ -30,6 +32,8 @@ class DLL_PUBLIC Portage : public Gentoo::Portage, IceTray::AbstractDatabaseClie
Gentoo::News getNewsSearch(const std::string &, const Ice::Current &) override;
Gentoo::News getNewsRecent(Ice::Int, const Ice::Current &) override;
};
+}
+}
#endif