12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- #ifndef __SYSCALLBACK_H
- #define __SYSCALLBACK_H
- #include <bfc/dispatch.h>
- #include <bfc/platform/types.h>
- #include <bfc/std_mkncc.h>
- #include <stddef.h>
- class SysCallback: public Dispatchable {
- protected:
- SysCallback() {}
- ~SysCallback() {}
- public:
-
- public:
- enum {
- NONE = 0,
- RUNLEVEL = MK4CC('r','u','n','l'),
- CONSOLE = MK3CC('c','o','n'),
- SKINCB = MK4CC('s','k','i','n'),
- DB = MK2CC('d','b'),
- WINDOW = MK3CC('w','n','d'),
- GC = MK2CC('g','c'),
- POPUPEXIT = MK4CC('p','o','p','x'),
- CMDLINE = MK4CC('c','m','d','l'),
- SYSMEM = MK4CC('s','y','s','m'),
- SERVICE = MK3CC('s','v','c'),
- BROWSER = MK3CC('u','r','l'),
- META = MK4CC('m','e','t','a'),
- AUTH = MK4CC('a','u','t','h'),
- };
- public:
- FOURCC getEventType();
- int notify(int msg, intptr_t param1 = 0, intptr_t param2 = 0);
-
- protected:
- enum {
- SYSCALLBACK_GETEVENTTYPE = 101,
- SYSCALLBACK_NOTIFY = 200,
- };
- };
- inline FOURCC SysCallback::getEventType() {
- FOURCC __retval = _call(SYSCALLBACK_GETEVENTTYPE, (FOURCC)NULL);
- return __retval;
- }
- #pragma warning(push)
- #pragma warning(disable:4244)
- inline int SysCallback::notify(int msg, intptr_t param1, intptr_t param2) {
- int __retval = _call(SYSCALLBACK_NOTIFY, (int)0, msg, param1, param2);
- return __retval;
- }
- #pragma warning(pop)
- #endif
|