Ice 3.7 C++11 API Reference
RegisterPlugins.h
Go to the documentation of this file.
1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 #ifndef ICE_REGISTER_PLUGINS_H
6 #define ICE_REGISTER_PLUGINS_H
7 
8 #include <Ice/Config.h>
9 
10 //
11 // Register functions for Ice plugins are declared here.
12 //
13 // These functions can be used to explicitly link with a plugin rather
14 // than relying on the loading of the plugin at runtime. The application
15 // must call the register function before initializing the communicator.
16 //
17 
18 namespace Ice
19 {
20 
21 #if defined(ICE_STATIC_LIBS)
22 # define ICE_PLUGIN_REGISTER_DECLSPEC_IMPORT
23 #else
24 # define ICE_PLUGIN_REGISTER_DECLSPEC_IMPORT ICE_DECLSPEC_IMPORT
25 #endif
26 
27 //
28 // Checking for the API_EXPORTS macro is necessary to prevent
29 // inconsistent DLL linkage errors on Windows.
30 //
31 
32 #ifndef ICE_API_EXPORTS
33 
41 
49 ICE_PLUGIN_REGISTER_DECLSPEC_IMPORT void registerIceUDP(bool loadOnInitialize = true);
50 
58 ICE_PLUGIN_REGISTER_DECLSPEC_IMPORT void registerIceWS(bool loadOnInitialize = true);
59 #endif
60 
61 #ifndef ICESSL_API_EXPORTS
62 
69 ICE_PLUGIN_REGISTER_DECLSPEC_IMPORT void registerIceSSL(bool loadOnInitialize = true);
70 #endif
71 
72 #ifndef ICE_DISCOVERY_API_EXPORTS
73 
80 ICE_PLUGIN_REGISTER_DECLSPEC_IMPORT void registerIceDiscovery(bool loadOnInitialize = true);
81 #endif
82 
83 #ifndef ICE_LOCATOR_DISCOVERY_API_EXPORTS
84 
92 #endif
93 
94 #if !defined(_WIN32) && !defined(__APPLE__)
95 # ifndef ICEBT_API_EXPORTS
96 
103 ICE_PLUGIN_REGISTER_DECLSPEC_IMPORT void registerIceBT(bool loadOnInitialize = true);
104 # endif
105 #endif
106 
107 #if defined(__APPLE__) && TARGET_OS_IPHONE != 0
108 # ifndef ICEIAP_API_EXPORTS
109 
116 ICE_PLUGIN_REGISTER_DECLSPEC_IMPORT void registerIceIAP(bool loadOnInitialize = true);
117 # endif
118 #endif
119 
120 #if defined(_MSC_VER) && !defined(ICE_BUILDING_SRC)
121 # pragma comment(lib, ICE_LIBNAME("IceDiscovery"))
122 # pragma comment(lib, ICE_LIBNAME("IceLocatorDiscovery"))
123 # pragma comment(lib, ICE_LIBNAME("IceSSL"))
124 #endif
125 }
126 
127 #endif
Ice::registerIceWS
void registerIceWS(bool loadOnInitialize=true)
When using static libraries, calling this function ensures the WebSocket transport is linked with the...
Ice::registerIceSSL
void registerIceSSL(bool loadOnInitialize=true)
When using static libraries, calling this function ensures the SSL transport is linked with the appli...
Ice::registerIceStringConverter
void registerIceStringConverter(bool loadOnInitialize=true)
When using static libraries, calling this function ensures the string converter plug-in is linked wit...
Ice::registerIceBT
void registerIceBT(bool loadOnInitialize=true)
When using static libraries, calling this function ensures the IceBT plug-in is linked with the appli...
ICE_PLUGIN_REGISTER_DECLSPEC_IMPORT
#define ICE_PLUGIN_REGISTER_DECLSPEC_IMPORT
Definition: RegisterPlugins.h:24
Config.h
Ice
Definition: BuiltinSequences.h:56
Ice::registerIceDiscovery
void registerIceDiscovery(bool loadOnInitialize=true)
When using static libraries, calling this function ensures the IceDiscovery plug-in is linked with th...
Ice::registerIceLocatorDiscovery
void registerIceLocatorDiscovery(bool loadOnInitialize=true)
When using static libraries, calling this function ensures the IceLocatorDiscovery plug-in is linked ...
Ice::registerIceUDP
void registerIceUDP(bool loadOnInitialize=true)
When using static libraries, calling this function ensures the UDP transport is linked with the appli...