diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-08-30 22:00:54 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-09-06 17:19:09 -0400 |
| commit | 9372b51357e6179935339691f36e811b84934e8b (patch) | |
| tree | c1056c7aae7f548a75977e6de4dc71150b9feb85 /src/event.hpp | |
| parent | 4d15ed6a8b7676f3c76a466b367f253ba1794268 (diff) | |
first pass add events
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 */ |
