-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
40 lines (32 loc) · 994 Bytes
/
main.cpp
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
33
34
35
36
37
38
39
40
#include "main.h"
extern "C" PlugInExport int sbPlugInName2(BasicStringInterface& str)
{
str = PLUGIN_DISPLAY_NAME;
return 0;
}
extern "C" PlugInExport int sbPlugInFactory2( const char* pszDisplayName,
const int& nInstanceIndex,
SerXInterface * pSerXIn,
TheSkyXFacadeForDriversInterface* pTheSkyXIn,
SleeperInterface * pSleeperIn,
BasicIniUtilInterface * pIniUtilIn,
LoggerInterface * pLoggerIn,
MutexInterface * pIOMutexIn,
TickCountInterface * pTickCountIn,
void** ppObjectOut)
{
*ppObjectOut = NULL;
X2Rotator* gpMyImpl=NULL;
if (NULL == gpMyImpl)
gpMyImpl = new X2Rotator( pszDisplayName,
nInstanceIndex,
pSerXIn,
pTheSkyXIn,
pSleeperIn,
pIniUtilIn,
pLoggerIn,
pIOMutexIn,
pTickCountIn);
*ppObjectOut = gpMyImpl;
return 0;
}