diff options
Diffstat (limited to 'src/hooks.hpp')
-rw-r--r-- | src/hooks.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/hooks.hpp b/src/hooks.hpp new file mode 100644 index 00000000..9c17fe56 --- /dev/null +++ b/src/hooks.hpp @@ -0,0 +1,10 @@ +#pragma once + +#include "angband.h" + +typedef bool_ (*hook_func_t)(void *, void *, void *); + +extern void add_hook_new(int h_idx, hook_func_t hook_func, cptr name, void *data); +extern void del_hook_new(int h_idx, hook_func_t hook_func); +extern int process_hooks_restart; +extern bool_ process_hooks_new(int h_idx, void *in, void *out); |