summaryrefslogtreecommitdiffstats
path: root/src/scripting/bindings/viewport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripting/bindings/viewport.c')
-rw-r--r--src/scripting/bindings/viewport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scripting/bindings/viewport.c b/src/scripting/bindings/viewport.c
index 8fcc041..7e23d7d 100644
--- a/src/scripting/bindings/viewport.c
+++ b/src/scripting/bindings/viewport.c
@@ -21,8 +21,6 @@
#include "../ffi.h"
#include "../bindings.h"
-static struct ffi_namespace *ns;
-
static void
binding_set_size(struct ffi_function *fn)
{
@@ -36,8 +34,10 @@ binding_set_size(struct ffi_function *fn)
}
void
-bindings_viewport_init(void)
+bindings_viewport_init(struct ffi_namespace *top_ns)
{
+ struct ffi_namespace *ns;
+
ns = ffi_add_namespace(top_ns, "viewport");
ffi_add_function(ns, "set_size", binding_set_size);
}