summaryrefslogtreecommitdiff
path: root/src/hooks.h
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-12-21 16:06:49 +0100
committerBardur Arantsson <bardur@scientician.net>2014-12-23 12:09:35 +0100
commitbc77660df705f46e55c8c733a924c5cc85dcdc48 (patch)
tree1c7f5506b5aebed0990d7cdd9f80789a0883f8c7 /src/hooks.h
parent95c915c371a4cb44ccc150a09ac6573ac50e9687 (diff)
Remove old-style hooks code
Diffstat (limited to 'src/hooks.h')
-rw-r--r--src/hooks.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/hooks.h b/src/hooks.h
index 51da4adf..76587faf 100644
--- a/src/hooks.h
+++ b/src/hooks.h
@@ -6,19 +6,11 @@
extern "C" {
#endif
-extern void wipe_hooks(void);
-extern void init_hooks(void);
-extern hooks_chain* add_hook(int h_idx, hook_type hook, cptr name);
-extern void add_hook_new(int h_idx, bool_ (*hook_f)(void *, void *, void *), cptr name, void *data);
-extern void del_hook(int h_idx, hook_type hook);
-extern void del_hook_new(int h_idx, bool_ (*hook_f)(void *, void *, void *));
-extern s32b get_next_arg(const char *fmt);
-extern char* get_next_arg_str(const char *fmt);
-extern object_type *get_next_arg_obj();
+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 hook_return process_hooks_return[20];
-extern bool_ process_hooks_ret(int h_idx, const char *ret, const char *fmt, ...);
-extern bool_ process_hooks(int h_idx, const char *fmt, ...);
extern bool_ process_hooks_new(int h_idx, void *in, void *out);
#ifdef __cplusplus