blob: 1621554399cb4abf5ce515b305d91f3ae970b5a9 (
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
|
#ifndef NULLSOFT_FACTORY_HANDLER_H
#define NULLSOFT_FACTORY_HANDLER_H
#include <api/service/waservicefactory.h>
#include <api/service/services.h>
class CommonHandlerFactory : public waServiceFactory
{
public:
FOURCC GetServiceType();
int SupportNonLockingInterface();
int ReleaseInterface(void *ifc);
const char *GetTestString();
int ServiceNotify(int msg, int param1, int param2);
};
#define DECLARE_HANDLER_FACTORY(CLASSNAME) class CLASSNAME : public CommonHandlerFactory {\
public:\
const char *GetServiceName();\
GUID GetGUID();\
void *GetInterface(int global_lock);\
protected:\
RECVS_DISPATCH;}
DECLARE_HANDLER_FACTORY(ASXHandlerFactory);
DECLARE_HANDLER_FACTORY(WPLHandlerFactory);
#endif
|