-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
45 lines (35 loc) · 1.03 KB
/
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
41
42
43
44
#include <stdio.h>
#include "main.h"
#include "x2mount.h"
#include "../../licensedinterfaces/basicstringinterface.h"
extern "C" PlugInExport int sbPlugInName2(BasicStringInterface& str)
{
str = "Mount Plug In Version 1.0";
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;
X2Mount* gpMyImpl=NULL;
if (NULL == gpMyImpl)
gpMyImpl = new X2Mount( pszDisplayName,
nInstanceIndex,
pSerXIn,
pTheSkyXIn,
pSleeperIn,
pIniUtilIn,
pLoggerIn,
pIOMutexIn,
pTickCountIn);
*ppObjectOut = gpMyImpl;
return 0;
}