2011-06-07 23:17:10 +00:00
|
|
|
/* -*- Mode: C; c-basic-offset: 4 -*- */
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
#include <Python.h>
|
|
|
|
#include <pygobject.h>
|
|
|
|
#include <pyglib.h>
|
2011-08-09 15:16:44 +00:00
|
|
|
#include <pygst/pygst.h>
|
2011-06-07 23:17:10 +00:00
|
|
|
|
|
|
|
/* include any extra headers needed here */
|
|
|
|
|
|
|
|
void pyges_register_classes (PyObject * d);
|
|
|
|
extern PyMethodDef pyges_functions[];
|
|
|
|
DL_EXPORT (void)
|
|
|
|
initges (void);
|
|
|
|
|
|
|
|
DL_EXPORT (void)
|
|
|
|
initges (void)
|
|
|
|
{
|
|
|
|
PyObject *m, *d;
|
|
|
|
|
|
|
|
/* perform any initialisation required by the library here */
|
|
|
|
|
|
|
|
m = Py_InitModule ("ges", pyges_functions);
|
|
|
|
d = PyModule_GetDict (m);
|
|
|
|
|
|
|
|
init_pygobject ();
|
2011-08-09 15:16:44 +00:00
|
|
|
pygst_init ();
|
2011-06-07 23:17:10 +00:00
|
|
|
|
2011-08-09 15:16:44 +00:00
|
|
|
pygst_init ();
|
2011-06-07 23:17:10 +00:00
|
|
|
pyges_register_classes (d);
|
|
|
|
|
|
|
|
/* add anything else to the module dictionary (such as constants) */
|
|
|
|
|
|
|
|
if (PyErr_Occurred ())
|
|
|
|
Py_FatalError ("could not initialise module ges");
|
|
|
|
}
|