diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-05-21 12:41:16 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-05-21 12:41:16 (GMT) |
commit | e4a8e189e7cf25236ffebc72ac8d7bed6893b70d (patch) | |
tree | e2bef921f0fb1161e1cc89b6df6312a6c1ae3c5f /python/hulahopmodule.c | |
parent | d8d3d5a63b7934f0740cdebb5f3b1d8fc99ed16b (diff) |
Split the python bindings to their own directory
Diffstat (limited to 'python/hulahopmodule.c')
-rw-r--r-- | python/hulahopmodule.c | 26 |
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"); + } +} |