1
0

ifc_syscallback.h 696 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "foundation/dispatch.h"
  3. #include "foundation/types.h"
  4. // ----------------------------------------------------------------------------
  5. class ifc_sysCallback : public Wasabi2::Dispatchable
  6. {
  7. protected:
  8. ifc_sysCallback() : Dispatchable(DISPATCHABLE_VERSION) {}
  9. ~ifc_sysCallback() {}
  10. public:
  11. public:
  12. GUID GetEventType() { return SysCallback_GetEventType(); }
  13. int Notify(int msg, intptr_t param1 = 0, intptr_t param2 = 0) { return SysCallback_Notify(msg, param1, param2); }
  14. enum
  15. {
  16. DISPATCHABLE_VERSION,
  17. };
  18. protected:
  19. virtual GUID WASABICALL SysCallback_GetEventType()=0;
  20. virtual int WASABICALL SysCallback_Notify(int msg, intptr_t param1, intptr_t param2)=0;
  21. };