summaryrefslogtreecommitdiffstats
path: root/Src/playlist/factory_playlists.cpp
blob: 841bac6d29395d69c1c340b74114a46c5a95b49d (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
63
#include "main.h"
#include "api__playlist.h"
#include "factory_playlists.h"
#include "Playlists.h"

Playlists playlists;
static const char serviceName[] = "Playlists";

FOURCC PlaylistsFactory::GetServiceType()
{
	return WaSvc::UNIQUE; 
}

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

GUID PlaylistsFactory::GetGUID()
{
	return api_playlistsGUID;
}

void *PlaylistsFactory::GetInterface(int global_lock)
{
//	if (global_lock)
//		WASABI_API_SVC->service_lock(this, (void *)ifc);
	return &playlists;
}

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

int PlaylistsFactory::ReleaseInterface(void *ifc)
{
	//WASABI_API_SVC->service_unlock(ifc);
	return 1;
}

const char *PlaylistsFactory::GetTestString()
{
	return 0;
}

int PlaylistsFactory::ServiceNotify(int msg, int param1, int param2)
{
	return 1;
}

#define CBCLASS PlaylistsFactory
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;
#undef CBCLASS