1
0

factory_playlistmanager.cpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #include "main.h"
  2. #include "api__playlist.h"
  3. #include "factory_playlistmanager.h"
  4. #include "PlaylistManager.h"
  5. static const char serviceName[] = "Playlist Manager";
  6. FOURCC PlaylistManagerFactory::GetServiceType()
  7. {
  8. return WaSvc::UNIQUE;
  9. }
  10. const char *PlaylistManagerFactory::GetServiceName()
  11. {
  12. return serviceName;
  13. }
  14. GUID PlaylistManagerFactory::GetGUID()
  15. {
  16. return api_playlistmanagerGUID;
  17. }
  18. void *PlaylistManagerFactory::GetInterface(int global_lock)
  19. {
  20. // if (global_lock)
  21. // WASABI_API_SVC->service_lock(this, (void *)ifc);
  22. return &playlistManager;
  23. }
  24. int PlaylistManagerFactory::SupportNonLockingInterface()
  25. {
  26. return 1;
  27. }
  28. int PlaylistManagerFactory::ReleaseInterface(void *ifc)
  29. {
  30. //WASABI_API_SVC->service_unlock(ifc);
  31. return 1;
  32. }
  33. const char *PlaylistManagerFactory::GetTestString()
  34. {
  35. return 0;
  36. }
  37. int PlaylistManagerFactory::ServiceNotify(int msg, int param1, int param2)
  38. {
  39. return 1;
  40. }
  41. #ifdef CBCLASS
  42. #undef CBCLASS
  43. #endif
  44. #define CBCLASS PlaylistManagerFactory
  45. START_DISPATCH;
  46. CB(WASERVICEFACTORY_GETSERVICETYPE, GetServiceType)
  47. CB(WASERVICEFACTORY_GETSERVICENAME, GetServiceName)
  48. CB(WASERVICEFACTORY_GETGUID, GetGUID)
  49. CB(WASERVICEFACTORY_GETINTERFACE, GetInterface)
  50. CB(WASERVICEFACTORY_SUPPORTNONLOCKINGGETINTERFACE, SupportNonLockingInterface)
  51. CB(WASERVICEFACTORY_RELEASEINTERFACE, ReleaseInterface)
  52. CB(WASERVICEFACTORY_GETTESTSTRING, GetTestString)
  53. CB(WASERVICEFACTORY_SERVICENOTIFY, ServiceNotify)
  54. END_DISPATCH;