]> git.0d.be Git - empathy.git/blob - python/pyempathy/pyempathymodule.c
Add python binding. Fixes bug #457660 (Michael Sheldon).
[empathy.git] / python / pyempathy / pyempathymodule.c
1 #include <pygobject.h>
2
3 void empathy_register_classes (PyObject *d); 
4 DL_EXPORT(void) initempathy(void);
5 extern PyMethodDef empathy_functions[];
6
7 DL_EXPORT(void)
8 initempathy(void)
9 {
10         PyObject *m, *d;
11
12         init_pygobject ();
13         
14         m = Py_InitModule ("empathy", empathy_functions);
15         d = PyModule_GetDict (m);
16         
17         empathy_register_classes (d);
18         
19         if (PyErr_Occurred ()) {
20                 PyErr_Print();
21                 Py_FatalError ("can't initialise module empathy");
22         }
23 }
24