wasabi1_factory.cpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #include "api__wasabi2.h"
  2. #include "wasabi1_factory.h"
  3. static const char serviceName[] = "Wasabi 2 Service API";
  4. FOURCC Wasabi2ServiceFactory::GetServiceType()
  5. {
  6. return Wasabi::WaSvc::UNIQUE;
  7. }
  8. const char *Wasabi2ServiceFactory::GetServiceName()
  9. {
  10. return serviceName;
  11. }
  12. GUID Wasabi2ServiceFactory::GetGUID()
  13. {
  14. return api_service::GetServiceGUID();
  15. }
  16. void *Wasabi2ServiceFactory::GetInterface(int global_lock)
  17. {
  18. return (api_service *)WASABI2_API_SVC;
  19. }
  20. int Wasabi2ServiceFactory::SupportNonLockingInterface()
  21. {
  22. return 1;
  23. }
  24. int Wasabi2ServiceFactory::ReleaseInterface(void *ifc)
  25. {
  26. return 1;
  27. }
  28. const char *Wasabi2ServiceFactory::GetTestString()
  29. {
  30. return NULL;
  31. }
  32. int Wasabi2ServiceFactory::ServiceNotify(int msg, int param1, int param2)
  33. {
  34. return 1;
  35. }
  36. #ifdef CBCLASS
  37. #undef CBCLASS
  38. #endif
  39. #define CBCLASS Wasabi2ServiceFactory
  40. START_DISPATCH;
  41. CB(WASERVICEFACTORY_GETSERVICETYPE, GetServiceType)
  42. CB(WASERVICEFACTORY_GETSERVICENAME, GetServiceName)
  43. CB(WASERVICEFACTORY_GETGUID, GetGUID)
  44. CB(WASERVICEFACTORY_GETINTERFACE, GetInterface)
  45. CB(WASERVICEFACTORY_SUPPORTNONLOCKINGGETINTERFACE, SupportNonLockingInterface)
  46. CB(WASERVICEFACTORY_RELEASEINTERFACE, ReleaseInterface)
  47. CB(WASERVICEFACTORY_GETTESTSTRING, GetTestString)
  48. CB(WASERVICEFACTORY_SERVICENOTIFY, ServiceNotify)
  49. END_DISPATCH;