Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Bug_3499_Regression / DLL_Service.h
blob0d4d77d40de1eb01ce6188706835b80b49d4bc52
1 #ifndef _DLL_SERVICE_H_
2 #define _DLL_SERVICE_H_
4 #include "DLL_Service_export.h"
6 class ACE_DLL_SERVICE_Export ACE_DLL_Service
8 public:
9 ACE_DLL_Service (void);
11 virtual ~ACE_DLL_Service (void);
13 virtual int init (int , ACE_TCHAR * []);
15 virtual int fini (void);
17 /// This is only here for destruction purposes
18 virtual void destroy (void);
21 #define ACE_DLL_SERVICE_DECL(export_macro, symbol) \
22 extern "C" export_macro ACE_DLL_Service * symbol (void)
24 #define ACE_DLL_SERVICE_IMPL(classname, symbol) \
25 ACE_DLL_Service * symbol (void) \
26 { \
27 classname * service = 0; \
28 ACE_NEW_RETURN (service, classname (), 0); \
29 return service; \
32 #endif