aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Library/ml_wire/PCastFactory.cpp
blob: 48b22f65e3823d02a4c5380c95a5f2b2a20b2c23 (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
#include "api__ml_wire.h"
#include ".\pcastfactory.h"
#include "Wire.h"

static PCastURIHandler PCastUH;

static const char serviceName[] = "PCast";

FOURCC PCastFactory::GetServiceType()
{
	return svc_urihandler::getServiceType(); 
}

const char *PCastFactory::GetServiceName()
{
	return serviceName;
}

void *PCastFactory::GetInterface(int global_lock)
{
//	if (global_lock)
//		plugin.service->service_lock(this, (void *)ifc);
	return &PCastUH;
}

int PCastFactory::SupportNonLockingInterface()
{
	return 1;
}

int PCastFactory::ReleaseInterface(void *ifc)
{
	//plugin.service->service_unlock(ifc);
	return 1;
}

const char *PCastFactory::GetTestString()
{
	return NULL;
}

int PCastFactory::ServiceNotify(int msg, int param1, int param2)
{
	return 0;
}

#ifdef CBCLASS
#undef CBCLASS
#endif

#define CBCLASS PCastFactory
START_DISPATCH;
CB( WASERVICEFACTORY_GETSERVICETYPE, GetServiceType )
CB( WASERVICEFACTORY_GETSERVICENAME, GetServiceName )
CB( WASERVICEFACTORY_GETINTERFACE, GetInterface )
CB( WASERVICEFACTORY_SUPPORTNONLOCKINGGETINTERFACE, SupportNonLockingInterface )
CB( WASERVICEFACTORY_RELEASEINTERFACE, ReleaseInterface )
CB( WASERVICEFACTORY_GETTESTSTRING, GetTestString )
CB( WASERVICEFACTORY_SERVICENOTIFY, ServiceNotify )
END_DISPATCH;