summaryrefslogtreecommitdiff
path: root/src/hooks.h
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2013-03-26 17:11:00 +0100
committerBardur Arantsson <bardur@scientician.net>2013-09-27 14:46:41 +0200
commit9eb646ef8c1f2824a113a111516d1c73d798746c (patch)
tree5b2485a05320acf88ff06fcc8523e93da776e39d /src/hooks.h
parent8cdd45b0b475e910ebe393bc96e6497b2ffeb292 (diff)
Constness fixes
Diffstat (limited to 'src/hooks.h')
-rw-r--r--src/hooks.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/hooks.h b/src/hooks.h
index 0c83cf84..8ea87bc3 100644
--- a/src/hooks.h
+++ b/src/hooks.h
@@ -2,6 +2,10 @@
#include "angband.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern FILE *hook_file;
extern void wipe_hooks(void);
extern void init_hooks(void);
@@ -13,6 +17,10 @@ extern char* get_next_arg_str(const char *fmt);
extern object_type *get_next_arg_obj();
extern int process_hooks_restart;
extern hook_return process_hooks_return[20];
-extern bool_ process_hooks_ret(int h_idx, char *ret, char *fmt, ...);
-extern bool_ process_hooks(int h_idx, char *fmt, ...);
+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
+} // extern "C"
+#endif