Ice 3.7 C++11 API Reference
Loading...
Searching...
No Matches
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
18namespace 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
41
49ICE_PLUGIN_REGISTER_DECLSPEC_IMPORT void registerIceUDP(bool loadOnInitialize = true);
50
58ICE_PLUGIN_REGISTER_DECLSPEC_IMPORT void registerIceWS(bool loadOnInitialize = true);
59#endif
60
61#ifndef ICESSL_API_EXPORTS
69ICE_PLUGIN_REGISTER_DECLSPEC_IMPORT void registerIceSSL(bool loadOnInitialize = true);
70#endif
71
72#ifndef ICE_DISCOVERY_API_EXPORTS
81#endif
82
83#ifndef ICE_LOCATOR_DISCOVERY_API_EXPORTS
92#endif
93
94#if !defined(_WIN32) && !defined(__APPLE__)
95# ifndef ICEBT_API_EXPORTS
103ICE_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
116ICE_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
#define ICE_PLUGIN_REGISTER_DECLSPEC_IMPORT
Definition RegisterPlugins.h:24
Definition BuiltinSequences.h:56
void registerIceWS(bool loadOnInitialize=true)
When using static libraries, calling this function ensures the WebSocket transport is linked with the...
void registerIceStringConverter(bool loadOnInitialize=true)
When using static libraries, calling this function ensures the string converter plug-in is linked wit...
void registerIceDiscovery(bool loadOnInitialize=true)
When using static libraries, calling this function ensures the IceDiscovery plug-in is linked with th...
void registerIceLocatorDiscovery(bool loadOnInitialize=true)
When using static libraries, calling this function ensures the IceLocatorDiscovery plug-in is linked ...
void registerIceSSL(bool loadOnInitialize=true)
When using static libraries, calling this function ensures the SSL transport is linked with the appli...
void registerIceBT(bool loadOnInitialize=true)
When using static libraries, calling this function ensures the IceBT plug-in is linked with the appli...
void registerIceUDP(bool loadOnInitialize=true)
When using static libraries, calling this function ensures the UDP transport is linked with the appli...