WbmSvcMgr.cpp 718 B

1234567891011121314151617181920
  1. #include "WbmSvcMgr.h"
  2. #include <api/service/waServiceFactory.h>
  3. int Add(HANDLE manifest, GUID service_guid, uint32_t service_type, const char *service_name, const char *service_test_string);
  4. int WbmSvcMgr::service_register(waServiceFactory *svc)
  5. {
  6. GUID service_guid = svc->getGuid();
  7. uint32_t service_type = svc->getServiceType();
  8. const char *service_name = svc->getServiceName();
  9. const char *service_test_string = (const char *)svc->getTestString();
  10. printf("Found service: %s\n", service_name);
  11. Add(manifest, service_guid, service_type, service_name, service_test_string);
  12. return 1;
  13. }
  14. #define CBCLASS WbmSvcMgr
  15. START_DISPATCH;
  16. CB(API_SERVICE_SERVICE_REGISTER, service_register);
  17. END_DISPATCH;
  18. #undef CBCLASS