blob: 6d9149e8ac3dc3a6679a99587d97fd33268ea975 (
plain) (
blame)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#include "api__wasabi2.h"
#include "wasabi1_factory.h"
static const char serviceName[] = "Wasabi 2 Service API";
FOURCC Wasabi2ServiceFactory::GetServiceType()
{
return Wasabi::WaSvc::UNIQUE;
}
const char *Wasabi2ServiceFactory::GetServiceName()
{
return serviceName;
}
GUID Wasabi2ServiceFactory::GetGUID()
{
return api_service::GetServiceGUID();
}
void *Wasabi2ServiceFactory::GetInterface(int global_lock)
{
return (api_service *)WASABI2_API_SVC;
}
int Wasabi2ServiceFactory::SupportNonLockingInterface()
{
return 1;
}
int Wasabi2ServiceFactory::ReleaseInterface(void *ifc)
{
return 1;
}
const char *Wasabi2ServiceFactory::GetTestString()
{
return NULL;
}
int Wasabi2ServiceFactory::ServiceNotify(int msg, int param1, int param2)
{
return 1;
}
#ifdef CBCLASS
#undef CBCLASS
#endif
#define CBCLASS Wasabi2ServiceFactory
START_DISPATCH;
CB(WASERVICEFACTORY_GETSERVICETYPE, GetServiceType)
CB(WASERVICEFACTORY_GETSERVICENAME, GetServiceName)
CB(WASERVICEFACTORY_GETGUID, GetGUID)
CB(WASERVICEFACTORY_GETINTERFACE, GetInterface)
CB(WASERVICEFACTORY_SUPPORTNONLOCKINGGETINTERFACE, SupportNonLockingInterface)
CB(WASERVICEFACTORY_RELEASEINTERFACE, ReleaseInterface)
CB(WASERVICEFACTORY_GETTESTSTRING, GetTestString)
CB(WASERVICEFACTORY_SERVICENOTIFY, ServiceNotify)
END_DISPATCH;
|