35bddd7e2eec11449cde4619aed618b2939211d3
[platform/upstream/gst-editing-services.git] / bindings / python / gesmodule.c
1 /* -*- Mode: C; c-basic-offset: 4 -*- */
2 #ifdef HAVE_CONFIG_H
3 #  include "config.h"
4 #endif
5 #include <Python.h>
6 #include <pygobject.h>
7 #include <pyglib.h>
8
9 /* include any extra headers needed here */
10
11 void pyges_register_classes (PyObject * d);
12 extern PyMethodDef pyges_functions[];
13 DL_EXPORT (void)
14 initges (void);
15
16 DL_EXPORT (void)
17 initges (void)
18 {
19   PyObject *m, *d;
20
21   /* perform any initialisation required by the library here */
22
23   m = Py_InitModule ("ges", pyges_functions);
24   d = PyModule_GetDict (m);
25
26   init_pygobject ();
27
28   pyges_register_classes (d);
29
30   /* add anything else to the module dictionary (such as constants) */
31
32   if (PyErr_Occurred ())
33     Py_FatalError ("could not initialise module ges");
34 }