diff options
Diffstat (limited to 'farstream/python/pytpfarstreammodule.c')
-rw-r--r-- | farstream/python/pytpfarstreammodule.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/farstream/python/pytpfarstreammodule.c b/farstream/python/pytpfarstreammodule.c new file mode 100644 index 000000000..f6e6f8669 --- /dev/null +++ b/farstream/python/pytpfarstreammodule.c @@ -0,0 +1,30 @@ +#include <pygobject.h> + +#include <gst/gst.h> +#include <telepathy-farstream/telepathy-farstream.h> + +void tf_register_classes (PyObject *d); + +DL_EXPORT(void) inittpfarstream(void); +extern PyMethodDef tf_functions[]; + +GST_DEBUG_CATEGORY (pygst_debug); /* for python code */ + +DL_EXPORT(void) +inittpfarstream(void) +{ + PyObject *m, *d; + + tf_init (); + init_pygobject (); + + m = Py_InitModule ("tpfarstream", tf_functions); + d = PyModule_GetDict (m); + + tf_register_classes (d); + + if (PyErr_Occurred ()) { + PyErr_Print(); + Py_FatalError ("can't initialise module tpfarstream"); + } +} |