api_syscbi.cpp 918 B

1234567891011121314151617181920212223242526272829303132333435
  1. #include <precomp.h>
  2. #ifndef NOCBMGR
  3. //<?#include "<class data="implementationheader"/>"
  4. #include "api_syscbi.h"
  5. //?>
  6. #include <api/api.h>
  7. //#include <api/syscb/cbmgr.h>
  8. api_syscb *sysCallbackApi = NULL;
  9. int api_syscbI::syscb_registerCallback(SysCallback *cb, void *param) {
  10. #ifdef WASABI_COMPILE_COMPONENTS
  11. WASABI_API_SYSCB->syscb_registerCallback(cb, param, WASABI_API_COMPONENT->getThisComponent());
  12. #else
  13. WASABI_API_SYSCB->syscb_registerCallback(cb, param);
  14. #endif
  15. return 1;
  16. }
  17. int api_syscbI::syscb_deregisterCallback(SysCallback *cb) {
  18. #ifdef WASABI_COMPILE_COMPONENTS
  19. WASABI_API_SYSCB->syscb_deregisterCallback(cb, WASABI_API_COMPONENT->getThisComponent());
  20. #else
  21. WASABI_API_SYSCB->syscb_deregisterCallback(cb);
  22. #endif
  23. return 1;
  24. }
  25. int api_syscbI::syscb_issueCallback(int eventtype, int msg, int p1, int p2) {
  26. WASABI_API_SYSCB->syscb_issueCallback(eventtype, msg, p1, p2);
  27. return 1;
  28. }
  29. #endif