From 2f31bf74bc56e98a913a3e632884bb66d77a8c60 Mon Sep 17 00:00:00 2001 From: Matej Sekoranja Date: Wed, 27 Nov 2013 08:13:32 +0100 Subject: [PATCH] win32 port: visibility declration --- pvAccessApp/mb/pvAccessMB.h | 10 ++++++ pvAccessApp/remote/beaconHandler.h | 17 +++++++-- pvAccessApp/remote/blockingTCP.h | 36 ++++++++++++------- pvAccessApp/remote/blockingUDP.h | 23 ++++++++---- pvAccessApp/remote/channelSearchManager.h | 13 ++++++- pvAccessApp/remote/remote.h | 19 +++++++--- pvAccessApp/remote/serializationHelper.h | 12 +++++-- .../remote/simpleChannelSearchManagerImpl.h | 12 ++++++- pvAccessApp/remote/transportRegistry.h | 10 ++++++ .../remoteClient/clientContextImpl.cpp | 19 +++++----- pvAccessApp/remoteClient/clientContextImpl.h | 13 ++++++- pvAccessApp/server/baseChannelRequester.h | 14 ++++++-- pvAccessApp/server/beaconEmitter.h | 18 +++++++--- pvAccessApp/server/serverChannelImpl.h | 13 ++++++- pvAccessApp/utils/introspectionRegistry.h | 14 ++++++-- pvAccessApp/utils/namedLockPattern.h | 10 ++++++ pvAccessApp/utils/referenceCountingLock.h | 10 ++++++ 17 files changed, 212 insertions(+), 51 deletions(-) diff --git a/pvAccessApp/mb/pvAccessMB.h b/pvAccessApp/mb/pvAccessMB.h index 7e7dd51..40f4463 100644 --- a/pvAccessApp/mb/pvAccessMB.h +++ b/pvAccessApp/mb/pvAccessMB.h @@ -1,8 +1,18 @@ #ifndef _PVACCESSMB_H_ #define _PVACCESSMB_H_ +#ifdef epicsExportSharedSymbols +# define pvAccessMBEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif + #include +#ifdef pvAccessMBEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef pvAccessMBEpicsExportSharedSymbols +#endif + MB_DECLARE_EXTERN(channelGet); #endif diff --git a/pvAccessApp/remote/beaconHandler.h b/pvAccessApp/remote/beaconHandler.h index a1683a0..d4fdc37 100644 --- a/pvAccessApp/remote/beaconHandler.h +++ b/pvAccessApp/remote/beaconHandler.h @@ -7,13 +7,24 @@ #ifndef BEACONHANDLER_H #define BEACONHANDLER_H -#include -#include +#ifdef epicsExportSharedSymbols +# define beaconHandlerEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif + +#include #include -#include #include +#ifdef beaconHandlerEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef beaconHandlerEpicsExportSharedSymbols +#endif + +#include +#include + namespace epics { namespace pvAccess { diff --git a/pvAccessApp/remote/blockingTCP.h b/pvAccessApp/remote/blockingTCP.h index a9d1f8c..a4906e8 100644 --- a/pvAccessApp/remote/blockingTCP.h +++ b/pvAccessApp/remote/blockingTCP.h @@ -7,12 +7,19 @@ #ifndef BLOCKINGTCP_H_ #define BLOCKINGTCP_H_ -#include -#include -#include -#include -#include -#include +#include +#include +#include + +#ifdef epicsExportSharedSymbols +# define blockingTCPEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif + +#include +#include +#include +#include #include #include @@ -20,14 +27,17 @@ #include #include -#include -#include -#include -#include +#ifdef blockingTCPEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef blockingTCPEpicsExportSharedSymbols +#endif -#include -#include -#include +#include +#include +#include +#include +#include +#include // not implemented anyway #define FLOW_CONTROL 0 diff --git a/pvAccessApp/remote/blockingUDP.h b/pvAccessApp/remote/blockingUDP.h index 1947c68..117a195 100644 --- a/pvAccessApp/remote/blockingUDP.h +++ b/pvAccessApp/remote/blockingUDP.h @@ -7,20 +7,29 @@ #ifndef BLOCKINGUDP_H_ #define BLOCKINGUDP_H_ -#include -#include -#include +#ifdef epicsExportSharedSymbols +# define blockingUDPEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif + +#include +#include +#include #include #include #include #include - #include -#include -#include -#include +#ifdef blockingUDPEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef blockingUDPEpicsExportSharedSymbols +#endif + +#include +#include +#include namespace epics { namespace pvAccess { diff --git a/pvAccessApp/remote/channelSearchManager.h b/pvAccessApp/remote/channelSearchManager.h index 8908c6b..e8d81c9 100644 --- a/pvAccessApp/remote/channelSearchManager.h +++ b/pvAccessApp/remote/channelSearchManager.h @@ -7,9 +7,20 @@ #ifndef CHANNELSEARCHMANAGER_H #define CHANNELSEARCHMANAGER_H -#include +#ifdef epicsExportSharedSymbols +# define channelSearchManagerEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif + #include +#include + +#ifdef channelSearchManagerEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef channelSearchManagerEpicsExportSharedSymbols +#endif + namespace epics { namespace pvAccess { diff --git a/pvAccessApp/remote/remote.h b/pvAccessApp/remote/remote.h index 20ad918..311c328 100644 --- a/pvAccessApp/remote/remote.h +++ b/pvAccessApp/remote/remote.h @@ -7,19 +7,28 @@ #ifndef REMOTE_H_ #define REMOTE_H_ -#include -#include +#ifdef epicsExportSharedSymbols +# define remoteEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif + +#include +#include #include #include #include #include #include - #include -#include -#include +#ifdef remoteEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef remoteEpicsExportSharedSymbols +#endif + +#include +#include /// TODO only here because of the Lockable #include diff --git a/pvAccessApp/remote/serializationHelper.h b/pvAccessApp/remote/serializationHelper.h index 73a4ae5..c712e4a 100644 --- a/pvAccessApp/remote/serializationHelper.h +++ b/pvAccessApp/remote/serializationHelper.h @@ -8,7 +8,10 @@ #ifndef SERIALIZATIONHELPER_H_ #define SERIALIZATIONHELPER_H_ -#include +#ifdef epicsExportSharedSymbols +# define serializationHelperEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif #include #include @@ -16,8 +19,13 @@ #include #include -#include +#ifdef serializationHelperEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef serializationHelperEpicsExportSharedSymbols +#endif +#include +#include namespace epics { namespace pvAccess { diff --git a/pvAccessApp/remote/simpleChannelSearchManagerImpl.h b/pvAccessApp/remote/simpleChannelSearchManagerImpl.h index 141af8f..d0a2e6b 100644 --- a/pvAccessApp/remote/simpleChannelSearchManagerImpl.h +++ b/pvAccessApp/remote/simpleChannelSearchManagerImpl.h @@ -7,12 +7,22 @@ #ifndef SIMPLECHANNELSEARCHMANAGERIMPL_H #define SIMPLECHANNELSEARCHMANAGERIMPL_H -#include +#ifdef epicsExportSharedSymbols +# define simpleChannelSearchManagerEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif #include #include #include +#ifdef simpleChannelSearchManagerEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef simpleChannelSearchManagerEpicsExportSharedSymbols +#endif + +#include + namespace epics { namespace pvAccess { diff --git a/pvAccessApp/remote/transportRegistry.h b/pvAccessApp/remote/transportRegistry.h index fd0fa4d..e3aa4c0 100644 --- a/pvAccessApp/remote/transportRegistry.h +++ b/pvAccessApp/remote/transportRegistry.h @@ -11,6 +11,11 @@ #include #include +#ifdef epicsExportSharedSymbols +# define transportRegistryEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif + #include #include @@ -20,6 +25,11 @@ #include #include +#ifdef transportRegistryEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef transportRegistryEpicsExportSharedSymbols +#endif + namespace epics { namespace pvAccess { diff --git a/pvAccessApp/remoteClient/clientContextImpl.cpp b/pvAccessApp/remoteClient/clientContextImpl.cpp index 7b617c8..ddd682c 100644 --- a/pvAccessApp/remoteClient/clientContextImpl.cpp +++ b/pvAccessApp/remoteClient/clientContextImpl.cpp @@ -4,17 +4,22 @@ * in file LICENSE that is included with this distribution. */ -#include #include #include -#include -#include #include #include - #include -#include + +#include #include +#include +#include +#include +#include +#include + +#include +#include #include #include #include @@ -27,10 +32,6 @@ #include #include #include -#include -#include -#include -#include #include diff --git a/pvAccessApp/remoteClient/clientContextImpl.h b/pvAccessApp/remoteClient/clientContextImpl.h index 9eea824..3eb48d3 100644 --- a/pvAccessApp/remoteClient/clientContextImpl.h +++ b/pvAccessApp/remoteClient/clientContextImpl.h @@ -7,9 +7,20 @@ #ifndef CLIENTCONTEXTIMPL_H_ #define CLIENTCONTEXTIMPL_H_ +#ifdef epicsExportSharedSymbols +# define clientContextImplEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif + +#include + +#ifdef clientContextImplEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef clientContextImplEpicsExportSharedSymbols +#endif + #include #include -#include #include #include diff --git a/pvAccessApp/server/baseChannelRequester.h b/pvAccessApp/server/baseChannelRequester.h index 14486e5..c17af5c 100644 --- a/pvAccessApp/server/baseChannelRequester.h +++ b/pvAccessApp/server/baseChannelRequester.h @@ -7,12 +7,22 @@ #ifndef BASECHANNELREQUESTER_H_ #define BASECHANNELREQUESTER_H_ -#include -#include +#ifdef epicsExportSharedSymbols +# define baseChannelRequesterEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif #include #include +#ifdef baseChannelRequesterEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef baseChannelRequesterEpicsExportSharedSymbols +#endif + +#include +#include + namespace epics { namespace pvAccess { diff --git a/pvAccessApp/server/beaconEmitter.h b/pvAccessApp/server/beaconEmitter.h index dd40761..d23d93d 100644 --- a/pvAccessApp/server/beaconEmitter.h +++ b/pvAccessApp/server/beaconEmitter.h @@ -7,15 +7,25 @@ #ifndef BEACONEMITTER_H #define BEACONEMITTER_H -#include -#include -#include +#ifdef epicsExportSharedSymbols +# define beaconEmitterEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif #include +#include +#include +#include + +#ifdef beaconEmitterEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef beaconEmitterEpicsExportSharedSymbols +#endif + +#include #include //#include -#include namespace epics { namespace pvAccess { diff --git a/pvAccessApp/server/serverChannelImpl.h b/pvAccessApp/server/serverChannelImpl.h index b507f61..366e8b8 100644 --- a/pvAccessApp/server/serverChannelImpl.h +++ b/pvAccessApp/server/serverChannelImpl.h @@ -7,10 +7,21 @@ #ifndef SERVERCHANNEL_H_ #define SERVERCHANNEL_H_ +#ifdef epicsExportSharedSymbols +# define serverChannelImplEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif + +#include + +#ifdef serverChannelImplEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef serverChannelImplEpicsExportSharedSymbols +#endif + #include #include -#include namespace epics { namespace pvAccess { diff --git a/pvAccessApp/utils/introspectionRegistry.h b/pvAccessApp/utils/introspectionRegistry.h index bdf8d77..27f6212 100644 --- a/pvAccessApp/utils/introspectionRegistry.h +++ b/pvAccessApp/utils/introspectionRegistry.h @@ -7,6 +7,14 @@ #ifndef INTROSPECTIONREGISTRY_H #define INTROSPECTIONREGISTRY_H +#include +#include + +#ifdef epicsExportSharedSymbols +# define introspectionRegistryEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif + #include #include #include @@ -16,8 +24,10 @@ #include #include -#include -#include +#ifdef introspectionRegistryEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef introspectionRegistryEpicsExportSharedSymbols +#endif // TODO check for memory leaks diff --git a/pvAccessApp/utils/namedLockPattern.h b/pvAccessApp/utils/namedLockPattern.h index 77eb9bd..a6a311a 100644 --- a/pvAccessApp/utils/namedLockPattern.h +++ b/pvAccessApp/utils/namedLockPattern.h @@ -10,10 +10,20 @@ #include #include +#ifdef epicsExportSharedSymbols +# define namedLockPatternEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif + #include #include #include +#ifdef namedLockPatternEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef namedLockPatternEpicsExportSharedSymbols +#endif + #include // TODO implement using smart pointers diff --git a/pvAccessApp/utils/referenceCountingLock.h b/pvAccessApp/utils/referenceCountingLock.h index 7b2a8aa..4a4d7cd 100644 --- a/pvAccessApp/utils/referenceCountingLock.h +++ b/pvAccessApp/utils/referenceCountingLock.h @@ -7,10 +7,20 @@ #ifndef REFERENCECOUNTINGLOCK_H #define REFERENCECOUNTINGLOCK_H +#ifdef epicsExportSharedSymbols +# define referenceCountingLockEpicsExportSharedSymbols +# undef epicsExportSharedSymbols +#endif + #include #include #include +#ifdef referenceCountingLockEpicsExportSharedSymbols +# define epicsExportSharedSymbols +# undef referenceCountingLockEpicsExportSharedSymbols +#endif + namespace epics { namespace pvAccess {