Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/python/hulahopmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/hulahopmodule.c')
-rw-r--r--python/hulahopmodule.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/python/hulahopmodule.c b/python/hulahopmodule.c
new file mode 100644
index 0000000..ccbb773
--- /dev/null
+++ b/python/hulahopmodule.c
@@ -0,0 +1,26 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <pygobject.h>
+
+void py_hulahop_register_classes (PyObject *d);
+
+extern PyMethodDef pyhulahop_functions[];
+
+DL_EXPORT(void)
+init_hulahop(void)
+{
+ PyObject *m, *d;
+
+ init_pygobject ();
+
+ m = Py_InitModule ("_hulahop", pyhulahop_functions);
+ d = PyModule_GetDict (m);
+
+ pyhulahop_register_classes (d);
+
+ if (PyErr_Occurred ()) {
+ Py_FatalError ("can't initialise module hulahop");
+ }
+}