diff options
Diffstat (limited to 'src/event.hpp')
| -rw-r--r-- | src/event.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/event.hpp b/src/event.hpp new file mode 100644 index 0000000..505d82a --- /dev/null +++ b/src/event.hpp @@ -0,0 +1,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 RegisterCallback(const char *name, EventHandler handler); +void UnregisterCallback(const char *name, EventHandler handler); +void DispatchCabllack(const char *name); + +#endif /* PKE_EVENT_HPP */ |
