finch/libgnt/pygnt/gntmodule.c

changeset 15992
76e7972b3ff9
child 19173
467db4a9cc44
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/finch/libgnt/pygnt/gntmodule.c	Mon Mar 26 04:19:35 2007 +0000
@@ -0,0 +1,22 @@
+#include <pygobject.h>
+ 
+void gnt_register_classes (PyObject *d); 
+extern PyMethodDef gnt_functions[];
+ 
+DL_EXPORT(void)
+initgnt(void)
+{
+    PyObject *m, *d;
+ 
+    init_pygobject ();
+ 
+    m = Py_InitModule ("gnt", gnt_functions);
+    d = PyModule_GetDict (m);
+ 
+    gnt_register_classes (d);
+ 
+    if (PyErr_Occurred ()) {
+        Py_FatalError ("can't initialise module sad");
+    }
+}
+

mercurial