]> pilppa.org Git - libplpbus.git/blob - src/plpbus/BusServer.cc
cleanups
[libplpbus.git] / src / plpbus / BusServer.cc
1 #include "BusServer.hh"
2 #include "OrbServerImpl.hh"
3
4 using namespace std;
5 using namespace plpbus;
6
7 BusServer::BusServer() {
8         orbServer       = new OrbServerImpl();
9 }
10
11 BusServer::~BusServer() {
12         cout << "BusServer() destroyed." << endl;
13 }
14
15 int BusServer::init() {
16         int             retVal;
17         OrbServerImpl   *impl;
18
19         retVal  = 0;
20         impl    = (OrbServerImpl *)orbServer;
21         impl->init();
22         return retVal;
23 }
24
25 int BusServer::launch(const char *server_name) {
26         int             retVal;
27         OrbServerImpl   *impl;
28
29         impl    = (OrbServerImpl *)orbServer;
30         retVal  = impl->launch(server_name);
31         return retVal;
32 }
33
34 int BusServer::add_server_listener(IServerListener *listener_param) {
35         int             retVal;
36         OrbServerImpl   *impl;
37
38         impl    = (OrbServerImpl *)orbServer;
39         retVal  = impl->add_server_listener(listener_param);
40         return retVal;
41 }
42
43 void BusServer::shutdown() {
44         OrbServerImpl   *impl;
45
46         impl    = (OrbServerImpl *)orbServer;
47         impl->shutdown();
48 }