summaryrefslogtreecommitdiffstats
path: root/src/scripting/ffi.h
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-08-25 05:22:44 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-08-25 05:22:44 (EDT)
commit970942b41aa603672e7589ecf3dbedf480b25a62 (patch)
tree659aed03ae4da15ab1f9336a3124ca12b6ec2cc2 /src/scripting/ffi.h
parent0fb9afa52e05a1b474fab2bfb267a9a6f7268cce (diff)
downloadoverworld-rpg-970942b41aa603672e7589ecf3dbedf480b25a62.zip
overworld-rpg-970942b41aa603672e7589ecf3dbedf480b25a62.tar.gz
overworld-rpg-970942b41aa603672e7589ecf3dbedf480b25a62.tar.bz2
Save pointer to namespace struct in bindings TU
Diffstat (limited to 'src/scripting/ffi.h')
-rw-r--r--src/scripting/ffi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scripting/ffi.h b/src/scripting/ffi.h
index b635d6f..471cd16 100644
--- a/src/scripting/ffi.h
+++ b/src/scripting/ffi.h
@@ -35,7 +35,8 @@ struct ffi_namespace {
struct ffi_namespace *next;
};
-void ffi_add_namespace(struct ffi_namespace *parent, const char *name);
+struct ffi_namespace *ffi_add_namespace(struct ffi_namespace *parent,
+ const char *name);
void ffi_add_function(struct ffi_namespace *parent, const char *name,
void (*func)(void));
void ffi_register_functions(struct script *script);