Mercurial > pidgin
view finch/libgnt/pygnt/gntmodule.c @ 19770:ebf4fe12ad10
merge of '568fa1d06eec5b85c215976c97bba59da8c139a7'
and 'b5d08ea2ffcf40d88397c533814778a4675f6cf5'
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 12 Sep 2007 13:00:42 +0000 |
parents | 254823d66aa5 |
children | dc129248eb7c |
line wrap: on
line source
#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); gnt_add_constants(m, "GNT_"); if (PyErr_Occurred ()) { Py_FatalError ("can't initialise module sad"); } }