summaryrefslogtreecommitdiffstats
path: root/src/scripting/bindings.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-08-25 13:10:39 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-08-25 13:10:39 (EDT)
commita22741efd694332f3b69e087ed77e353ed75a85d (patch)
tree2e0deb024870eac54a6ecf4f4969d156444a3265 /src/scripting/bindings.c
parent2c4ba39153c8fd7b03e81689ed6103dc91ce0168 (diff)
downloadoverworld-rpg-a22741efd694332f3b69e087ed77e353ed75a85d.zip
overworld-rpg-a22741efd694332f3b69e087ed77e353ed75a85d.tar.gz
overworld-rpg-a22741efd694332f3b69e087ed77e353ed75a85d.tar.bz2
Add bouken.viewport bindings
Diffstat (limited to 'src/scripting/bindings.c')
-rw-r--r--src/scripting/bindings.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/scripting/bindings.c b/src/scripting/bindings.c
index 1edc1e3..7e45146 100644
--- a/src/scripting/bindings.c
+++ b/src/scripting/bindings.c
@@ -16,14 +16,17 @@
* <http://www.gnu.org/licenses/>.
*/
+#define _SCRIPTING_BINDINGS_C_
+
#include <stdlib.h>
#include "ffi.h"
#include "bindings.h"
-static struct ffi_namespace *ns;
+struct ffi_namespace *top_ns;
void
bindings_init(void)
{
- ns = ffi_add_namespace(NULL, "bouken");
+ top_ns = ffi_add_namespace(NULL, "bouken");
+ bindings_viewport_init();
}