aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/syscb/cbmgr.h
blob: 54efdd75987345474a243addf741eea09a5a175d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _CBMGR_H
#define _CBMGR_H

#include <bfc/std.h>

class SysCallback;
class WaComponent;

class CallbackManager {
public:
  static void registerCallback(SysCallback *cb, void *param, WaComponent *owner);
  static void deregisterCallback(SysCallback *cb, WaComponent *owner);

  static void issueCallback(int eventtype, int msg, intptr_t param1 = 0, intptr_t param2 = 0);
  static int getNumCallbacks();
};

#endif