blob: 9448665c39a393afeb4eb2cd8f8287756dde13c9 (
plain) (
tree)
|
|
#define NO_IMPORT_PYGOBJECT
#include <pygobject.h>
void empathy_register_classes (PyObject *d);
DL_EXPORT(void) initempathy(void);
extern PyMethodDef empathy_functions[];
DL_EXPORT(void)
initempathy(void)
{
PyObject *m, *d;
init_pygobject ();
m = Py_InitModule ("empathy", empathy_functions);
d = PyModule_GetDict (m);
empathy_register_classes (d);
if (PyErr_Occurred ()) {
PyErr_Print();
Py_FatalError ("can't initialise module empathy");
}
}
|