blob: 0d4d77d40de1eb01ce6188706835b80b49d4bc52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef _DLL_SERVICE_H_
#define _DLL_SERVICE_H_
#include "DLL_Service_export.h"
class ACE_DLL_SERVICE_Export ACE_DLL_Service
{
public:
ACE_DLL_Service (void);
virtual ~ACE_DLL_Service (void);
virtual int init (int , ACE_TCHAR * []);
virtual int fini (void);
/// This is only here for destruction purposes
virtual void destroy (void);
};
#define ACE_DLL_SERVICE_DECL(export_macro, symbol) \
extern "C" export_macro ACE_DLL_Service * symbol (void)
#define ACE_DLL_SERVICE_IMPL(classname, symbol) \
ACE_DLL_Service * symbol (void) \
{ \
classname * service = 0; \
ACE_NEW_RETURN (service, classname (), 0); \
return service; \
}
#endif
|