]> pilppa.com Git - libplpbus.git/commitdiff
Started cleaning up public headers from the private headers that are not
authorMika Laitio <lamikr@pilppa.org>
Mon, 28 Feb 2011 22:42:05 +0000 (00:42 +0200)
committerMika Laitio <lamikr@pilppa.org>
Mon, 28 Feb 2011 22:42:05 +0000 (00:42 +0200)
wanted to install.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
src/Makefile.am
src/plpbus/BusServer.cc
src/plpbus/BusServer.hh

index 7e26785e3818e3d3a2eb20a6e63ff9e69114761f..515e06a432d36f4dae0f33d256e59521fb0dfe03 100644 (file)
@@ -18,5 +18,6 @@ libplpbusincludedir=$(includedir)/plp/bus
 libplpbusinclude_HEADERS =   \
        plpbus/BusServer.hh \
        plpbus/BusClient.hh \
-       plpbus/BusMessage.hh
+       plpbus/BusMessage.hh \
+       plpbus/IServerListener.hh 
 
index 44281eddc6223cd4653d242a70ec1516d0e767e5..993c995a9723f97d8528fdac1a4265faec89bdec 100644 (file)
@@ -1,4 +1,5 @@
 #include "BusServer.hh"
+#include "OrbServerImpl.hh"
 
 using namespace std;
 using namespace plpbus;
@@ -14,30 +15,39 @@ BusServer::~BusServer()
 }
 
 int BusServer::init() {
-       int     retVal;
+       int             retVal;
+       OrbServerImpl   *impl;
 
        retVal  = 0;
-       orbServer->init();
+       impl    = (OrbServerImpl *)orbServer;
+       impl->init();
        return retVal;
 }
 
 int BusServer::launch(const char *server_name)
 {
-       int     retVal;
+       int             retVal;
+       OrbServerImpl   *impl;
 
-       retVal  = orbServer->launch(server_name);
+       impl    = (OrbServerImpl *)orbServer;
+       retVal  = impl->launch(server_name);
        return retVal;
 }
 
 int BusServer::add_server_listener(IServerListener *listener_param)
 {
-       int     retVal;
+       int             retVal;
+       OrbServerImpl   *impl;
 
-       retVal          = orbServer->add_server_listener(listener_param);
+       impl    = (OrbServerImpl *)orbServer;
+       retVal  = impl->add_server_listener(listener_param);
        return retVal;
 }
 
 void BusServer::shutdown()
 {
-       orbServer->shutdown();
+       OrbServerImpl   *impl;
+
+       impl    = (OrbServerImpl *)orbServer;
+       impl->shutdown();
 }
index 734ba65807a4f70b21061a5eef962e90d859319e..8244e73b4873744424293e6019738dde97cf2861 100644 (file)
@@ -6,7 +6,7 @@
 
 #include "RequestResponseBus.hh"
 #include "IServerListener.hh"
-#include "OrbServerImpl.hh"
+//#include "OrbServerImpl.hh"
 
 namespace plpbus {
        class BusServer {
@@ -18,7 +18,7 @@ namespace plpbus {
                        virtual int add_server_listener(IServerListener *listener_param);
                        virtual void shutdown();
                private:
-                       OrbServerImpl   *orbServer;
+                       void    *orbServer;
        };
 }