diff options
Diffstat (limited to 'src/hulahopmodule.c')
-rw-r--r-- | src/hulahopmodule.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/hulahopmodule.c b/src/hulahopmodule.c new file mode 100644 index 0000000..ccbb773 --- /dev/null +++ b/src/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"); + } +} |