]> git.0d.be Git - empathy.git/blob - python/pyempathygtk/pyempathygtkmodule.c
Update python bindings
[empathy.git] / python / pyempathygtk / pyempathygtkmodule.c
1 #define NO_IMPORT_PYGOBJECT
2
3 #include <pygobject.h>
4
5 void empathy_register_classes (PyObject *d);
6 DL_EXPORT(void) initempathygtk(void);
7 extern PyMethodDef empathy_functions[];
8
9 DL_EXPORT(void) initempathygtk(void)
10 {
11         PyObject *m, *d;
12
13         init_pygobject ();
14         
15         m = Py_InitModule ("empathygtk", empathy_functions);
16         d = PyModule_GetDict (m);
17         
18         empathy_register_classes (d);
19         
20         if (PyErr_Occurred ()) {
21                 PyErr_Print();
22                 Py_FatalError ("can't initialise module empathygtk");
23         }
24 }
25