Logo Search packages:      
Sourcecode: galago-python version File versions  Download package

galagomodule.c

#include <pygobject.h>

void pygalago_register_classes(PyObject *d);
extern PyMethodDef pygalago_functions[];

DL_EXPORT(void)
init_galago(void)
{
      PyObject *m, *d;

      init_pygobject();

      m = Py_InitModule("galago._galago", pygalago_functions);
      d = PyModule_GetDict(m);

      pygalago_register_classes(d);
      pygalago_add_constants(m, "GALAGO_");

      if (PyErr_Occurred()) {
            Py_FatalError("can't initialize module galago");
      }
}

Generated by  Doxygen 1.6.0   Back to index