ServiceFactory.cpp 837 B

12345678910111213141516171819202122232425
  1. #include "main.h"
  2. #include "api.h"
  3. #include <api/service/waservicefactorybase.h>
  4. #ifdef CBCLASS
  5. #undef CBCLASS
  6. #endif
  7. #define CBCLASS waServiceFactoryX
  8. START_DISPATCH;
  9. CB(WASERVICEFACTORY_GETSERVICETYPE, x_getServiceType);
  10. CB(WASERVICEFACTORY_GETSERVICENAME, x_getServiceName);
  11. CB(WASERVICEFACTORY_GETGUID, getGuid);
  12. case WASERVICEFACTORY_GETINTERFACE:
  13. switch (nparam) {
  14. default: cb<CBCLASS>(&CBCLASS::getInterface, retval, params); break;
  15. case 0: cb<CBCLASS>(&CBCLASS::_RETIRED_getInterface, retval, params); break;
  16. }
  17. break;
  18. CB(WASERVICEFACTORY_SUPPORTNONLOCKINGGETINTERFACE, supportNonLockingGetInterface);
  19. CB(WASERVICEFACTORY_RELEASEINTERFACE, releaseInterface);
  20. CB(WASERVICEFACTORY_GETTESTSTRING, getTestString);
  21. CB(WASERVICEFACTORY_SERVICENOTIFY, serviceNotify);
  22. END_DISPATCH;
  23. #undef CBCLASS