1 #define NO_IMPORT_PYGOBJECT
5 void empathy_register_classes (PyObject *d);
6 void empathy_add_constants(PyObject *module, const gchar *strip_prefix);
7 DL_EXPORT(void) initempathygtk(void);
8 extern PyMethodDef empathy_functions[];
10 DL_EXPORT(void) initempathygtk(void)
16 m = Py_InitModule ("empathygtk", empathy_functions);
17 d = PyModule_GetDict (m);
19 empathy_register_classes (d);
20 empathy_add_constants(m, "EMPATHY_");
22 if (PyErr_Occurred ()) {
24 Py_FatalError ("can't initialise module empathygtk");