diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-01-03 21:30:43 +0000 | 
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-01-03 21:30:43 +0000 | 
| commit | 96a8d7189902921a54f3d1fcbf39f62e8b9b41c4 (patch) | |
| tree | 3541e994dcddabc24c4fd686e681095c1aa10f77 | |
| parent | Compatibility with libdbpp-*-1 (diff) | |
| download | gentoobrowse-api-96a8d7189902921a54f3d1fcbf39f62e8b9b41c4.tar.bz2 gentoobrowse-api-96a8d7189902921a54f3d1fcbf39f62e8b9b41c4.tar.xz gentoobrowse-api-96a8d7189902921a54f3d1fcbf39f62e8b9b41c4.zip | |
Re-namespace service
| -rw-r--r-- | gentoobrowse-api/service/main.cpp | 4 | ||||
| -rw-r--r-- | gentoobrowse-api/service/portageimpl.cpp | 4 | ||||
| -rw-r--r-- | gentoobrowse-api/service/portageimpl.h | 4 | 
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 | 
