summaryrefslogtreecommitdiffstats
path: root/bindings/python/wrapper_bottom.c
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-08-05 14:52:52 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-08-05 14:52:52 +0000
commit1fae093527f69de086934f5df750cf374eaa2f48 (patch)
treec182d67081132607753c96da70f7ce0995909ff4 /bindings/python/wrapper_bottom.c
parent0930e6046f5c6e30b9d16fef5bb7a543e8750281 (diff)
downloadlasso-1fae093527f69de086934f5df750cf374eaa2f48.tar.gz
lasso-1fae093527f69de086934f5df750cf374eaa2f48.tar.xz
lasso-1fae093527f69de086934f5df750cf374eaa2f48.zip
Move all python binding related files inside the python subdirectory
Diffstat (limited to 'bindings/python/wrapper_bottom.c')
-rw-r--r--bindings/python/wrapper_bottom.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/bindings/python/wrapper_bottom.c b/bindings/python/wrapper_bottom.c
new file mode 100644
index 00000000..51de44b0
--- /dev/null
+++ b/bindings/python/wrapper_bottom.c
@@ -0,0 +1,18 @@
+PyMODINIT_FUNC
+init_lasso(void)
+{
+ PyObject *m, *d;
+
+ if (PyType_Ready(&PyGObjectPtrType) < 0)
+ return;
+
+ m = Py_InitModule3("_lasso", lasso_methods, "_lasso wrapper module");
+ d = PyModule_GetDict(m);
+ register_constants(d);
+
+ lasso_wrapper_key = g_quark_from_static_string("PyLasso::wrapper");
+
+ Py_INCREF(&PyGObjectPtrType);
+ PyModule_AddObject(m, "PyGObjectPtr", (PyObject *)&PyGObjectPtrType);
+}
+