| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 | #include "main.h"#include "api__playlist.h"#include "factory_playlistmanager.h"#include "PlaylistManager.h"static const char serviceName[] = "Playlist Manager";FOURCC PlaylistManagerFactory::GetServiceType(){	return WaSvc::UNIQUE; }const char *PlaylistManagerFactory::GetServiceName(){	return serviceName;}GUID PlaylistManagerFactory::GetGUID(){	return api_playlistmanagerGUID;}void *PlaylistManagerFactory::GetInterface(int global_lock){//	if (global_lock)//		WASABI_API_SVC->service_lock(this, (void *)ifc);	return &playlistManager;}int PlaylistManagerFactory::SupportNonLockingInterface(){	return 1;}int PlaylistManagerFactory::ReleaseInterface(void *ifc){	//WASABI_API_SVC->service_unlock(ifc);	return 1;}const char *PlaylistManagerFactory::GetTestString(){	return 0;}int PlaylistManagerFactory::ServiceNotify(int msg, int param1, int param2){	return 1;}#ifdef CBCLASS#undef CBCLASS#endif#define CBCLASS PlaylistManagerFactorySTART_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;
 |