gstreamer/bindings/python/gesmodule.c
Tim-Philipp Müller 01cd77e423 bindings: fix up pygst includes for new install directory
Changes from pygst/pygst.h to gst/pygst.h to match the source
code layout, which makes things easier in an uninstalled setup.

https://bugzilla.gnome.org/show_bug.cgi?id=657435
https://bugzilla.gnome.org/show_bug.cgi?id=657436
2011-10-12 12:37:54 +01:00

37 lines
774 B
C

/* -*- Mode: C; c-basic-offset: 4 -*- */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <Python.h>
#include <pygobject.h>
#include <pyglib.h>
#include <gst/pygst.h>
/* 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 ();
pygst_init ();
pygst_init ();
pyges_register_classes (d);
/* add anything else to the module dictionary (such as constants) */
if (PyErr_Occurred ())
Py_FatalError ("could not initialise module ges");
}