/* -*- Mode: C; c-basic-offset: 4 -*- */ %% headers #define NO_IMPORT_PYGOBJECT #include #include #include #include #include #ifdef HAVE_CONFIG_H # include #endif /* Boonky define that allows for backwards compatibility with Python 2.4 */ #if PY_VERSION_HEX < 0x02050000 #define Py_ssize_t int #endif void pyges_register_classes(PyObject *d); void pyges_add_constants(PyObject *module, const gchar *strip_prefix); %% import gobject.GObject as PyGObject_Type import gobject.MainContext as PyGMainContext_Type import gobject.GObject as PyGInitiallyUnowned_Type import gst.Bin as PyGstBin_Type import gst.Pipeline as PyGstPipeline_Type %% override ges_track_get_timeline kwargs static PyObject * _wrap_ges_track_get_timeline(PyGObject *self) { const GESTimeline *ret; pyg_begin_allow_threads; ret = ges_track_get_timeline(GES_TRACK(self->obj)); pyg_end_allow_threads; /* pygobject_new handles NULL checking */ return pygobject_new((GObject *)ret); }