Mercurial > pidgin
view finch/libgnt/pygnt/gntmodule.c @ 20335:5defb0546059
applied changes from c848ad4c20988b5dac9ac164455d3ba2d7307230
through 9d35dde0c779cca73548172223ba557f27d61882
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 19 Oct 2007 18:36:08 +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"); } }