blob: b7a5ffa4166878c54bf2c72b6ba574ebe8bfb726 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef PKE_EVENT_HPP
#define PKE_EVENT_HPP
#include "macros.hpp"
#include "dynamic-array.hpp"
#include <cassert>
#include <cstdint>
#include <cstring>
typedef void (*EventHandler)();
void Event_RegisterCallback(const char *name, EventHandler handler);
void Event_UnregisterCallback(const char *name, EventHandler handler);
void Event_Dispatch(const char *name);
#endif /* PKE_EVENT_HPP */
|