diff options
Diffstat (limited to 'cpp/test/Ice/dispatcher/Server.cpp')
-rw-r--r-- | cpp/test/Ice/dispatcher/Server.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/cpp/test/Ice/dispatcher/Server.cpp b/cpp/test/Ice/dispatcher/Server.cpp index ceec43ec761..e5ef74693ef 100644 --- a/cpp/test/Ice/dispatcher/Server.cpp +++ b/cpp/test/Ice/dispatcher/Server.cpp @@ -27,10 +27,10 @@ run(int, char**, const Ice::CommunicatorPtr& communicator) Ice::ObjectAdapterPtr adapter2 = communicator->createObjectAdapter("ControllerAdapter"); TestIntfControllerIPtr testController = new TestIntfControllerI(adapter); - + adapter->add(new TestIntfI(), communicator->stringToIdentity("test")); adapter->activate(); - + adapter2->add(testController, communicator->stringToIdentity("testController")); adapter2->activate(); @@ -40,20 +40,11 @@ run(int, char**, const Ice::CommunicatorPtr& communicator) return EXIT_SUCCESS; } -#ifdef ICE_STATIC_LIBS -extern "C" -{ - -Ice::Plugin* createIceSSL(const Ice::CommunicatorPtr&, const string&, const Ice::StringSeq&); - -} -#endif - int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS - Ice::registerPluginFactory("IceSSL", createIceSSL, true); + Ice::registerIceSSL(); #endif int status; Ice::CommunicatorPtr communicator; |