From 7cae4e56294a37dd15f1ce414719ec97c2478e19 Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Mon, 17 Jun 2002 02:01:54 +0000 Subject: [PATCH] various updates to work with cvs code Original commit message from CVS: various updates to work with cvs code --- common | 2 +- configure.ac | 10 + examples/gst/Makefile.am | 6 +- examples/gst/cp.py | 4 +- examples/gst/dvdplay.py | 92 +- examples/gst/ilat.py | 2 +- examples/gstreamer/Makefile.am | 6 +- examples/gstreamer/cp.py | 4 +- examples/gstreamer/dvdplay.py | 92 +- examples/gstreamer/ilat.py | 2 +- gst/Makefile.am | 30 +- gst/gstreamer-base.defs | 3669 ---------------------------------------- gst/gstreamer-extra.defs | 8 - gst/gstreamer-fixes.c | 2 - gst/gstreamer-fixes.h | 1 - gst/tmp-enum-types.c | 424 ----- gst/tmp-enum-types.h | 112 -- gstreamer/Makefile.am | 30 +- gstreamer/gstreamer-base.defs | 3669 ---------------------------------------- gstreamer/gstreamer-extra.defs | 8 - gstreamer/gstreamer-fixes.c | 2 - gstreamer/gstreamer-fixes.h | 1 - gstreamer/tmp-enum-types.c | 424 ----- gstreamer/tmp-enum-types.h | 112 -- 24 files changed, 181 insertions(+), 8531 deletions(-) delete mode 100644 gst/gstreamer-base.defs delete mode 100644 gst/tmp-enum-types.c delete mode 100644 gst/tmp-enum-types.h delete mode 100644 gstreamer/gstreamer-base.defs delete mode 100644 gstreamer/tmp-enum-types.c delete mode 100644 gstreamer/tmp-enum-types.h diff --git a/common b/common index 3ce22b8..4dab760 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 3ce22b87b251e36d30660b72b8020011246b0c64 +Subproject commit 4dab76096cb84988dc2b6366cf5bd964fe5857d7 diff --git a/configure.ac b/configure.ac index 78d2480..70d89c8 100644 --- a/configure.ac +++ b/configure.ac @@ -58,6 +58,11 @@ PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0` AC_SUBST(PYGTK_DEFSDIR) AC_MSG_RESULT($PYGTK_DEFSDIR) +AC_MSG_CHECKING(for pygtk h2def) +PYGTK_H2DEF=`$PKG_CONFIG --variable=datadir pygtk-2.0`/pygtk/2.0/codegen/h2def.py +AC_SUBST(PYGTK_H2DEF) +AC_MSG_RESULT($PYGTK_H2DEF) + dnl required version substitutions for use in the spec file PYGTK_VERSION=pygtk_required_version GTK_VERSION=gtk_required_version @@ -74,6 +79,11 @@ AM_PATH_GTK_2_0(gtk_required_version,,[AC_MSG_ERROR(maybe you want the gtk-gnome dnl check to make sure we can find gstreamer PKG_CHECK_MODULES(GST, gstreamer >= gstreamer_required_version, HAVE_GST="yes", HAVE_GST="no") +AC_MSG_CHECKING(for gstreamer include dir) +GST_INCLUDEDIR=`$PKG_CONFIG --variable=includedir gstreamer` +AC_SUBST(GST_INCLUDEDIR) +AC_MSG_RESULT($GST_INCLUDEDIR) + if test "x$HAVE_GST" = "xno"; then AC_MSG_ERROR(need GStreamer $gstreamer_required_version) fi diff --git a/examples/gst/Makefile.am b/examples/gst/Makefile.am index 08d322a..835ae1c 100644 --- a/examples/gst/Makefile.am +++ b/examples/gst/Makefile.am @@ -2,4 +2,8 @@ EXTRA_DIST = \ f2f.py \ oggplay.py \ cp.py \ - dvdplay.py + dvdplay.py \ + identity.py \ + ilat.py \ + lat.py \ + rot13.py diff --git a/examples/gst/cp.py b/examples/gst/cp.py index 8ef8387..a3e6cc8 100755 --- a/examples/gst/cp.py +++ b/examples/gst/cp.py @@ -44,9 +44,9 @@ def filter(filters): return -1 filesrc.set_property('location', sys.argv[1]) - filesink = gst_element_factory_make ('disksink', 'sink') + filesink = gst_element_factory_make ('filesink', 'sink') if not filesink: - print 'could not find plugin \"disksink\"' + print 'could not find plugin \"filesink\"' return -1 filesink.set_property('location', sys.argv[2]) diff --git a/examples/gst/dvdplay.py b/examples/gst/dvdplay.py index b89b930..dfec9d4 100755 --- a/examples/gst/dvdplay.py +++ b/examples/gst/dvdplay.py @@ -27,7 +27,7 @@ from gstreamer import * from gobject import GObject import gtk -class DVDPlay(object): +class DVDPlayer(object): def __init__(self): pass @@ -77,8 +77,22 @@ class DVDPlay(object): if ret: return ret - ret = self.run() - return ret + return self.run() + + def run(self): + print 'setting to PLAYING state' + + self.pipeline.set_state(STATE_PLAYING) + + gtk.idle_add(self.idle,self.pipeline) + + #gtk.threads_enter() + gtk.main() + #gtk.threads_leave() + + self.pipeline.set_state(STATE_NULL) + + return 0 def build_video_thread(self): # ***** pre-construct the video thread ***** @@ -94,15 +108,43 @@ class DVDPlay(object): self.color = gst_element_factory_make('colorspace','color') assert self.color - self.show = gst_element_factory_make('sdlvideosink','show') + self.efx = gst_element_factory_make('identity','identity') + #self.efx = gst_element_factory_make('edgeTV','EdgeTV') + #self.efx = gst_element_factory_make('agingTV','AgingTV') + #effectv: diceTV: DiceTV + #effectv: warpTV: WarpTV + #effectv: shagadelicTV: ShagadelicTV + #effectv: vertigoTV: VertigoTV + #self.efx = gst_element_factory_make('revTV','RevTV') + #self.efx = gst_element_factory_make('quarkTV','QuarkTV') + assert self.efx + + self.color2 = gst_element_factory_make('colorspace','color2') + assert self.color2 + + self.show = gst_element_factory_make('videosink','show') + #self.show = gst_element_factory_make('sdlvideosink','show') + #self.show = gst_element_factory_make('fakesink','fakesinkv') assert self.show + #self.show.set_property('silent', 0) + #self.show.set_property('sync', 1) - for e in (self.v_queue, self.v_decode, self.color, self.show): + #self.deinterlace = gst_element_factory_make('deinterlace','deinterlace') + self.deinterlace = gst_element_factory_make('identity','deinterlace') + assert self.deinterlace + + last = None + for e in (self.v_queue, self.v_decode, self.color, self.efx, self.color2, self.deinterlace, self.show): self.v_thread.add(e) + if last: + last.connect(e) + last = e - self.v_queue.connect(self.v_decode) - self.v_decode.connect(self.color) - self.color.connect(self.show) + #self.v_queue.connect(self.v_decode) + #self.v_decode.connect(self.color) + #self.color.connect(self.efx) + #self.efx.connect(self.color2) + #self.color2.connect(self.show) def build_audio_thread(self): # ***** pre-construct the audio thread ***** @@ -116,7 +158,10 @@ class DVDPlay(object): assert self.a_decode self.osssink = gst_element_factory_make('osssink','osssink') + #self.osssink = gst_element_factory_make('fakesink','fakesinka') assert self.osssink + #self.osssink.set_property('silent', 0) + #self.osssink.set_property('sync', 0) for e in (self.a_queue, self.a_decode, self.osssink): self.a_thread.add(e) @@ -129,9 +174,10 @@ class DVDPlay(object): self.pipeline = gst_pipeline_new('pipeline') assert self.pipeline - self.src = gst_element_factory_make('dvdsrc','src'); + self.src = gst_element_factory_make('dvdreadsrc','src'); assert self.src + #GObject.connect(self.src,'deep_notify',self.dnprint) self.src.set_property('location', self.location) self.src.set_property('title', self.title) self.src.set_property('chapter', self.chapter) @@ -139,6 +185,7 @@ class DVDPlay(object): self.parse = gst_element_factory_make('mpegdemux','parse') assert self.parse + self.parse.set_property('sync', 0) self.pipeline.add(self.src) self.pipeline.add(self.parse) @@ -166,26 +213,21 @@ class DVDPlay(object): GObject.connect(self.src,'eos',self.eof) #GObject.connect(show,'have_size',self.mpegparse_have_size, self.pipeline) - return 0 - - def run(self): - print 'setting to PLAYING state' - - self.pipeline.set_state(STATE_PLAYING) + #GObject.connect(self.pipeline,'error',self.pipeline_error) + #GObject.connect(self.pipeline,'deep_notify',self.dnprint) - gtk.idle_add(self.idle,self.pipeline) - - #gtk.threads_enter() - gtk.main() - #gtk.threads_leave() + return 0 - self.pipeline.set_state(STATE_NULL) + def pipeline_error(self, sender, obj, error): + print "(%s) ERROR: %s: %s" % (self, obj.name(), error) - return 0 + def dnprint(self, sender, obj, param): + str = obj.get_property(param.name) + print '%s: %s = %s' % (sender.get_name(), param.name, str) if __name__ == '__main__': - #gst_debug_set_categories(-1) - #gst_info_set_categories(-1) - player = DVDPlay() + #gst_debug_set_categories(0xFFFFFFFFL) + #gst_info_set_categories(0xFFFFFFFFL) + player = DVDPlayer() ret = player.main() sys.exit(ret) diff --git a/examples/gst/ilat.py b/examples/gst/ilat.py index bd4e108..0db8dc2 100755 --- a/examples/gst/ilat.py +++ b/examples/gst/ilat.py @@ -95,7 +95,7 @@ def check(f, n, b): def main(): "Identity timer and latency check" - gst_debug_set_categories(0) + gst_debug_set_categories(0L) if len(sys.argv) < 3: print 'usage: %s identites buffers' % (sys.argv[0],) diff --git a/examples/gstreamer/Makefile.am b/examples/gstreamer/Makefile.am index 08d322a..835ae1c 100644 --- a/examples/gstreamer/Makefile.am +++ b/examples/gstreamer/Makefile.am @@ -2,4 +2,8 @@ EXTRA_DIST = \ f2f.py \ oggplay.py \ cp.py \ - dvdplay.py + dvdplay.py \ + identity.py \ + ilat.py \ + lat.py \ + rot13.py diff --git a/examples/gstreamer/cp.py b/examples/gstreamer/cp.py index 8ef8387..a3e6cc8 100755 --- a/examples/gstreamer/cp.py +++ b/examples/gstreamer/cp.py @@ -44,9 +44,9 @@ def filter(filters): return -1 filesrc.set_property('location', sys.argv[1]) - filesink = gst_element_factory_make ('disksink', 'sink') + filesink = gst_element_factory_make ('filesink', 'sink') if not filesink: - print 'could not find plugin \"disksink\"' + print 'could not find plugin \"filesink\"' return -1 filesink.set_property('location', sys.argv[2]) diff --git a/examples/gstreamer/dvdplay.py b/examples/gstreamer/dvdplay.py index b89b930..dfec9d4 100755 --- a/examples/gstreamer/dvdplay.py +++ b/examples/gstreamer/dvdplay.py @@ -27,7 +27,7 @@ from gstreamer import * from gobject import GObject import gtk -class DVDPlay(object): +class DVDPlayer(object): def __init__(self): pass @@ -77,8 +77,22 @@ class DVDPlay(object): if ret: return ret - ret = self.run() - return ret + return self.run() + + def run(self): + print 'setting to PLAYING state' + + self.pipeline.set_state(STATE_PLAYING) + + gtk.idle_add(self.idle,self.pipeline) + + #gtk.threads_enter() + gtk.main() + #gtk.threads_leave() + + self.pipeline.set_state(STATE_NULL) + + return 0 def build_video_thread(self): # ***** pre-construct the video thread ***** @@ -94,15 +108,43 @@ class DVDPlay(object): self.color = gst_element_factory_make('colorspace','color') assert self.color - self.show = gst_element_factory_make('sdlvideosink','show') + self.efx = gst_element_factory_make('identity','identity') + #self.efx = gst_element_factory_make('edgeTV','EdgeTV') + #self.efx = gst_element_factory_make('agingTV','AgingTV') + #effectv: diceTV: DiceTV + #effectv: warpTV: WarpTV + #effectv: shagadelicTV: ShagadelicTV + #effectv: vertigoTV: VertigoTV + #self.efx = gst_element_factory_make('revTV','RevTV') + #self.efx = gst_element_factory_make('quarkTV','QuarkTV') + assert self.efx + + self.color2 = gst_element_factory_make('colorspace','color2') + assert self.color2 + + self.show = gst_element_factory_make('videosink','show') + #self.show = gst_element_factory_make('sdlvideosink','show') + #self.show = gst_element_factory_make('fakesink','fakesinkv') assert self.show + #self.show.set_property('silent', 0) + #self.show.set_property('sync', 1) - for e in (self.v_queue, self.v_decode, self.color, self.show): + #self.deinterlace = gst_element_factory_make('deinterlace','deinterlace') + self.deinterlace = gst_element_factory_make('identity','deinterlace') + assert self.deinterlace + + last = None + for e in (self.v_queue, self.v_decode, self.color, self.efx, self.color2, self.deinterlace, self.show): self.v_thread.add(e) + if last: + last.connect(e) + last = e - self.v_queue.connect(self.v_decode) - self.v_decode.connect(self.color) - self.color.connect(self.show) + #self.v_queue.connect(self.v_decode) + #self.v_decode.connect(self.color) + #self.color.connect(self.efx) + #self.efx.connect(self.color2) + #self.color2.connect(self.show) def build_audio_thread(self): # ***** pre-construct the audio thread ***** @@ -116,7 +158,10 @@ class DVDPlay(object): assert self.a_decode self.osssink = gst_element_factory_make('osssink','osssink') + #self.osssink = gst_element_factory_make('fakesink','fakesinka') assert self.osssink + #self.osssink.set_property('silent', 0) + #self.osssink.set_property('sync', 0) for e in (self.a_queue, self.a_decode, self.osssink): self.a_thread.add(e) @@ -129,9 +174,10 @@ class DVDPlay(object): self.pipeline = gst_pipeline_new('pipeline') assert self.pipeline - self.src = gst_element_factory_make('dvdsrc','src'); + self.src = gst_element_factory_make('dvdreadsrc','src'); assert self.src + #GObject.connect(self.src,'deep_notify',self.dnprint) self.src.set_property('location', self.location) self.src.set_property('title', self.title) self.src.set_property('chapter', self.chapter) @@ -139,6 +185,7 @@ class DVDPlay(object): self.parse = gst_element_factory_make('mpegdemux','parse') assert self.parse + self.parse.set_property('sync', 0) self.pipeline.add(self.src) self.pipeline.add(self.parse) @@ -166,26 +213,21 @@ class DVDPlay(object): GObject.connect(self.src,'eos',self.eof) #GObject.connect(show,'have_size',self.mpegparse_have_size, self.pipeline) - return 0 - - def run(self): - print 'setting to PLAYING state' - - self.pipeline.set_state(STATE_PLAYING) + #GObject.connect(self.pipeline,'error',self.pipeline_error) + #GObject.connect(self.pipeline,'deep_notify',self.dnprint) - gtk.idle_add(self.idle,self.pipeline) - - #gtk.threads_enter() - gtk.main() - #gtk.threads_leave() + return 0 - self.pipeline.set_state(STATE_NULL) + def pipeline_error(self, sender, obj, error): + print "(%s) ERROR: %s: %s" % (self, obj.name(), error) - return 0 + def dnprint(self, sender, obj, param): + str = obj.get_property(param.name) + print '%s: %s = %s' % (sender.get_name(), param.name, str) if __name__ == '__main__': - #gst_debug_set_categories(-1) - #gst_info_set_categories(-1) - player = DVDPlay() + #gst_debug_set_categories(0xFFFFFFFFL) + #gst_info_set_categories(0xFFFFFFFFL) + player = DVDPlayer() ret = player.main() sys.exit(ret) diff --git a/examples/gstreamer/ilat.py b/examples/gstreamer/ilat.py index bd4e108..0db8dc2 100755 --- a/examples/gstreamer/ilat.py +++ b/examples/gstreamer/ilat.py @@ -95,7 +95,7 @@ def check(f, n, b): def main(): "Identity timer and latency check" - gst_debug_set_categories(0) + gst_debug_set_categories(0L) if len(sys.argv) < 3: print 'usage: %s identites buffers' % (sys.argv[0],) diff --git a/gst/Makefile.am b/gst/Makefile.am index 0f6f0c2..f7b5256 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -14,10 +14,18 @@ _gstreamermodule_la_CFLAGS = $(GST_CFLAGS) _gstreamermodule_la_LIBADD = $(GST_LIBS) _gstreamermodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex initgstreamer nodist__gstreamermodule_la_SOURCES = gstreamer.c -CLEANFILES = gstreamer.c -EXTRA_DIST = gstreamer.defs gstreamer.override +CLEANFILES = gstreamer.c gstreamer-base.defs +EXTRA_DIST = gstreamer-extra.defs gstreamer.override gstreamer.c: gstreamer.defs gstreamer.override +GST_INCLUDES=$(wildcard $(GST_INCLUDEDIR)/gst/*.h) + +gstreamer-base.defs: $(GST_INCLUDES) + $(PYTHON) $(PYGTK_H2DEF) $(GST_INCLUDES) > gstreamer-base.defs + +gstreamer.defs: gstreamer-base.defs gstreamer-extra.defs + cat gstreamer-base.defs gstreamer-extra.defs > gstreamer.defs + .defs.c: (cd $(srcdir) \ && $(PYGTK_CODEGEN) \ @@ -32,21 +40,3 @@ gstreamer.c: gstreamer.defs gstreamer.override # --register $(PYGTK_DEFSDIR)/gtk-types.defs \ # --register $(top_srcdir)/bonobo/bonobo-types.defs \ # --register $(top_srcdir)/bonobo/bonoboui-types.defs \ - -# this should go in core - -enums: - glib-mkenums \ - --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include \n\nG_BEGIN_DECLS\n" \ - --fprod "/* enumerations from \"@filename@\" */\n" \ - --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ - --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \ - /usr/include/gst/*.h > tmp-enum-types.h - - glib-mkenums \ - --fhead "#include " \ - --fprod "\n/* enumerations from \"@filename@\" */" \ - --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \ - --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ - --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \ - /usr/include/gst/*.h > tmp-enum-types.c diff --git a/gst/gstreamer-base.defs b/gst/gstreamer-base.defs deleted file mode 100644 index d273504..0000000 --- a/gst/gstreamer-base.defs +++ /dev/null @@ -1,3669 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -(define-object Object - (in-module "Gst") - (parent "GObject") - (c-name "GstObject") - (gtype-id "GST_TYPE_OBJECT") -) - -(define-object Element - (in-module "Gst") - (parent "GstObject") - (c-name "GstElement") - (gtype-id "GST_TYPE_ELEMENT") -) - -(define-object Bin - (in-module "Gst") - (parent "GstElement") - (c-name "GstBin") - (gtype-id "GST_TYPE_BIN") -) - -(define-object Clock - (in-module "Gst") - (parent "GstObject") - (c-name "GstClock") - (gtype-id "GST_TYPE_CLOCK") -) - -(define-object Autoplug - (in-module "Gst") - (parent "GstObject") - (c-name "GstAutoplug") - (gtype-id "GST_TYPE_AUTOPLUG") -) - -(define-object Pad - (in-module "Gst") - (parent "GstObject") - (c-name "GstPad") - (gtype-id "GST_TYPE_PAD") -) - -(define-object GhostPad - (in-module "Gst") - (parent "GstPad") - (c-name "GstGhostPad") - (gtype-id "GST_TYPE_GHOST_PAD") -) - -(define-object PadTemplate - (in-module "Gst") - (parent "GstObject") - (c-name "GstPadTemplate") - (gtype-id "GST_TYPE_PAD_TEMPLATE") -) - -(define-object Pipeline - (in-module "Gst") - (parent "GstBin") - (c-name "GstPipeline") - (gtype-id "GST_TYPE_PIPELINE") -) - -(define-object PluginFeature - (in-module "Gst") - (parent "GstObject") - (c-name "GstPluginFeature") - (gtype-id "GST_TYPE_PLUGIN_FEATURE") -) - -(define-object ElementFactory - (in-module "Gst") - (parent "GstPluginFeature") - (c-name "GstElementFactory") - (gtype-id "GST_TYPE_ELEMENT_FACTORY") -) - -(define-object AutoplugFactory - (in-module "Gst") - (parent "GstPluginFeature") - (c-name "GstAutoplugFactory") - (gtype-id "GST_TYPE_AUTOPLUG_FACTORY") -) - -(define-object Queue - (in-module "Gst") - (parent "GstElement") - (c-name "GstQueue") - (gtype-id "GST_TYPE_QUEUE") -) - -(define-object RealPad - (in-module "Gst") - (parent "GstPad") - (c-name "GstRealPad") - (gtype-id "GST_TYPE_REAL_PAD") -) - -(define-object Scheduler - (in-module "Gst") - (parent "GstObject") - (c-name "GstScheduler") - (gtype-id "GST_TYPE_SCHEDULER") -) - -(define-object SchedulerFactory - (in-module "Gst") - (parent "GstPluginFeature") - (c-name "GstSchedulerFactory") - (gtype-id "GST_TYPE_SCHEDULER_FACTORY") -) - -(define-object SystemClock - (in-module "Gst") - (parent "GstClock") - (c-name "GstSystemClock") - (gtype-id "GST_TYPE_SYSTEM_CLOCK") -) - -(define-object Thread - (in-module "Gst") - (parent "GstBin") - (c-name "GstThread") - (gtype-id "GST_TYPE_THREAD") -) - -(define-object TimeCache - (in-module "Gst") - (parent "GstObject") - (c-name "GstTimeCache") - (gtype-id "GST_TYPE_TIME_CACHE") -) - -(define-object TypeFactory - (in-module "Gst") - (parent "GstPluginFeature") - (c-name "GstTypeFactory") - (gtype-id "GST_TYPE_TYPE_FACTORY") -) - -(define-object TypeFind - (in-module "Gst") - (parent "GstElement") - (c-name "GstTypeFind") - (gtype-id "GST_TYPE_TYPE_FIND") -) - -(define-object XML - (in-module "Gst") - (parent "GstObject") - (c-name "GstXML") - (gtype-id "GST_TYPE_XML") -) - -;; Enumerations and flags ... - -(define-enum AutoplugFlags - (in-module "Gst") - (c-name "GstAutoplugFlags") - (gtype-id "GST_TYPE_AUTOPLUG_FLAGS") - (values - '("to-caps" "GST_AUTOPLUG_TO_CAPS") - '("to-renderer" "GST_AUTOPLUG_TO_RENDERER") - '("flag-last" "GST_AUTOPLUG_FLAG_LAST") - ) -) - -(define-enum BinFlags - (in-module "Gst") - (c-name "GstBinFlags") - (gtype-id "GST_TYPE_BIN_FLAGS") - (values - '("flag-manager" "GST_BIN_FLAG_MANAGER") - '("self-schedulable" "GST_BIN_SELF_SCHEDULABLE") - '("flag-prefer-cothreads" "GST_BIN_FLAG_PREFER_COTHREADS") - '("flag-fixed-clock" "GST_BIN_FLAG_FIXED_CLOCK") - '("flag-last" "GST_BIN_FLAG_LAST") - ) -) - -(define-enum BufferFlags - (in-module "Gst") - (c-name "GstBufferFlags") - (gtype-id "GST_TYPE_BUFFER_FLAGS") - (values - '("readonly" "GST_BUFFER_READONLY") - '("original" "GST_BUFFER_ORIGINAL") - '("dontfree" "GST_BUFFER_DONTFREE") - ) -) - -(define-enum ClockReturn - (in-module "Gst") - (c-name "GstClockReturn") - (gtype-id "GST_TYPE_CLOCK_RETURN") - (values - '("stopped" "GST_CLOCK_STOPPED") - '("timeout" "GST_CLOCK_TIMEOUT") - '("early" "GST_CLOCK_EARLY") - '("error" "GST_CLOCK_ERROR") - ) -) - -(define-flags CPUFlags - (in-module "Gst") - (c-name "GstCPUFlags") - (gtype-id "GST_TYPE_CPU_FLAGS") - (values - '("mmx" "GST_CPU_FLAG_MMX") - '("sse" "GST_CPU_FLAG_SSE") - '("mmxext" "GST_CPU_FLAG_MMXEXT") - '("3dnow" "GST_CPU_FLAG_3DNOW") - ) -) - -(define-enum ElementFlags - (in-module "Gst") - (c-name "GstElementFlags") - (gtype-id "GST_TYPE_ELEMENT_FLAGS") - (values - '("complex" "GST_ELEMENT_COMPLEX") - '("decoupled" "GST_ELEMENT_DECOUPLED") - '("thread-suggested" "GST_ELEMENT_THREAD_SUGGESTED") - '("no-seek" "GST_ELEMENT_NO_SEEK") - '("infinite-loop" "GST_ELEMENT_INFINITE_LOOP") - '("scheduler-private1" "GST_ELEMENT_SCHEDULER_PRIVATE1") - '("scheduler-private2" "GST_ELEMENT_SCHEDULER_PRIVATE2") - '("new-loopfunc" "GST_ELEMENT_NEW_LOOPFUNC") - '("event-aware" "GST_ELEMENT_EVENT_AWARE") - '("flag-last" "GST_ELEMENT_FLAG_LAST") - ) -) - -(define-enum EventType - (in-module "Gst") - (c-name "GstEventType") - (gtype-id "GST_TYPE_EVENT_TYPE") - (values - '("unknown" "GST_EVENT_UNKNOWN") - '("eos" "GST_EVENT_EOS") - '("flush" "GST_EVENT_FLUSH") - '("empty" "GST_EVENT_EMPTY") - '("seek" "GST_EVENT_SEEK") - '("discontinuous" "GST_EVENT_DISCONTINUOUS") - '("new-media" "GST_EVENT_NEW_MEDIA") - '("info" "GST_EVENT_INFO") - '("error" "GST_EVENT_ERROR") - ) -) - -(define-enum SeekType - (in-module "Gst") - (c-name "GstSeekType") - (gtype-id "GST_TYPE_SEEK_TYPE") - (values - '("any" "GST_SEEK_ANY") - '("timeoffset-set" "GST_SEEK_TIMEOFFSET_SET") - '("byteoffset-set" "GST_SEEK_BYTEOFFSET_SET") - '("byteoffset-cur" "GST_SEEK_BYTEOFFSET_CUR") - '("byteoffset-end" "GST_SEEK_BYTEOFFSET_END") - ) -) - -(define-enum ObjectFlags - (in-module "Gst") - (c-name "GstObjectFlags") - (gtype-id "GST_TYPE_OBJECT_FLAGS") - (values - '("destroyed" "GST_DESTROYED") - '("floating" "GST_FLOATING") - '("object-flag-last" "GST_OBJECT_FLAG_LAST") - ) -) - -(define-enum RegionType - (in-module "Gst") - (c-name "GstRegionType") - (gtype-id "GST_TYPE_REGION_TYPE") - (values - '("void" "GST_REGION_VOID") - '("offset-len" "GST_REGION_OFFSET_LEN") - '("time-len" "GST_REGION_TIME_LEN") - ) -) - -(define-enum PadConnectReturn - (in-module "Gst") - (c-name "GstPadConnectReturn") - (gtype-id "GST_TYPE_PAD_CONNECT_RETURN") - (values - '("refused" "GST_PAD_CONNECT_REFUSED") - '("delayed" "GST_PAD_CONNECT_DELAYED") - '("ok" "GST_PAD_CONNECT_OK") - '("done" "GST_PAD_CONNECT_DONE") - ) -) - -(define-enum PadDirection - (in-module "Gst") - (c-name "GstPadDirection") - (gtype-id "GST_TYPE_PAD_DIRECTION") - (values - '("unknown" "GST_PAD_UNKNOWN") - '("src" "GST_PAD_SRC") - '("sink" "GST_PAD_SINK") - ) -) - -(define-enum PadFlags - (in-module "Gst") - (c-name "GstPadFlags") - (gtype-id "GST_TYPE_PAD_FLAGS") - (values - '("disabled" "GST_PAD_DISABLED") - '("eos" "GST_PAD_EOS") - '("flag-last" "GST_PAD_FLAG_LAST") - ) -) - -(define-enum PadPresence - (in-module "Gst") - (c-name "GstPadPresence") - (gtype-id "GST_TYPE_PAD_PRESENCE") - (values - '("always" "GST_PAD_ALWAYS") - '("sometimes" "GST_PAD_SOMETIMES") - '("request" "GST_PAD_REQUEST") - ) -) - -(define-enum ParseError - (in-module "Gst") - (c-name "GstParseError") - (gtype-id "GST_TYPE_PARSE_ERROR") - (values - '("syntax" "GST_PARSE_ERROR_SYNTAX") - '("no-such-element" "GST_PARSE_ERROR_NO_SUCH_ELEMENT") - '("no-such-property" "GST_PARSE_ERROR_NO_SUCH_PROPERTY") - '("connect" "GST_PARSE_ERROR_CONNECT") - ) -) - -(define-enum PropsType - (in-module "Gst") - (c-name "GstPropsType") - (gtype-id "GST_TYPE_PROPS_TYPE") - (values - '("end-type" "GST_PROPS_END_TYPE") - '("invalid-type" "GST_PROPS_INVALID_TYPE") - '("int-type" "GST_PROPS_INT_TYPE") - '("float-type" "GST_PROPS_FLOAT_TYPE") - '("fourcc-type" "GST_PROPS_FOURCC_TYPE") - '("bool-type" "GST_PROPS_BOOL_TYPE") - '("string-type" "GST_PROPS_STRING_TYPE") - '("var-type" "GST_PROPS_VAR_TYPE") - '("list-type" "GST_PROPS_LIST_TYPE") - '("float-range-type" "GST_PROPS_FLOAT_RANGE_TYPE") - '("int-range-type" "GST_PROPS_INT_RANGE_TYPE") - '("last-type" "GST_PROPS_LAST_TYPE") - ) -) - -(define-enum SchedulerFlags - (in-module "Gst") - (c-name "GstSchedulerFlags") - (gtype-id "GST_TYPE_SCHEDULER_FLAGS") - (values - '("fixed-clock" "GST_SCHEDULER_FLAG_FIXED_CLOCK") - '("last" "GST_SCHEDULER_FLAG_LAST") - ) -) - -(define-enum SchedulerState - (in-module "Gst") - (c-name "GstSchedulerState") - (gtype-id "GST_TYPE_SCHEDULER_STATE") - (values - '("none" "GST_SCHEDULER_STATE_NONE") - '("running" "GST_SCHEDULER_STATE_RUNNING") - '("stopped" "GST_SCHEDULER_STATE_STOPPED") - '("error" "GST_SCHEDULER_STATE_ERROR") - ) -) - -(define-enum ThreadState - (in-module "Gst") - (c-name "GstThreadState") - (gtype-id "GST_TYPE_THREAD_STATE") - (values - '("state-started" "GST_THREAD_STATE_STARTED") - '("state-spinning" "GST_THREAD_STATE_SPINNING") - '("state-reaping" "GST_THREAD_STATE_REAPING") - '("flag-last" "GST_THREAD_FLAG_LAST") - ) -) - -(define-enum TimeCacheCertainty - (in-module "Gst") - (c-name "GstTimeCacheCertainty") - (gtype-id "GST_TYPE_TIME_CACHE_CERTAINTY") - (values - '("unknown" "GST_TIME_CACHE_UNKNOWN") - '("certain" "GST_TIME_CACHE_CERTAIN") - '("fuzzy-location" "GST_TIME_CACHE_FUZZY_LOCATION") - '("fuzzy-timestamp" "GST_TIME_CACHE_FUZZY_TIMESTAMP") - '("fuzzy" "GST_TIME_CACHE_FUZZY") - ) -) - -(define-flags ElementState - (in-module "Gst") - (c-name "GstElementState") - (gtype-id "GST_TYPE_ELEMENT_STATE") - (values - '("void-pending" "GST_STATE_VOID_PENDING") - '("null" "GST_STATE_NULL") - '("ready" "GST_STATE_READY") - '("paused" "GST_STATE_PAUSED") - '("playing" "GST_STATE_PLAYING") - ) -) - -(define-enum ElementStateReturn - (in-module "Gst") - (c-name "GstElementStateReturn") - (gtype-id "GST_TYPE_ELEMENT_STATE_RETURN") - (values - '("failure" "GST_STATE_FAILURE") - '("success" "GST_STATE_SUCCESS") - '("async" "GST_STATE_ASYNC") - ) -) - - -;; From /usr/include/gst/gst.h - -(define-function gst_init_with_popt_table - (c-name "gst_init_with_popt_table") - (return-type "none") - (parameters - '("int*" "argc") - '("char**[]" "argv") - '("const-struct-poptOption*" "popt_options") - ) -) - -(define-function gst_main - (c-name "gst_main") - (return-type "none") -) - -(define-function gst_main_quit - (c-name "gst_main_quit") - (return-type "none") -) - - - -;; From /usr/include/gst/gstautoplug.h - -(define-function gst_autoplug_get_type - (c-name "gst_autoplug_get_type") - (return-type "GType") -) - -(define-method signal_new_object - (of-object "GstAutoplug") - (c-name "gst_autoplug_signal_new_object") - (return-type "none") - (parameters - '("GstObject*" "object") - ) -) - -(define-method to_caps - (of-object "GstAutoplug") - (c-name "gst_autoplug_to_caps") - (return-type "GstElement*") - (parameters - '("GstCaps*" "srccaps") - '("GstCaps*" "sinkcaps") - ) - (varargs #t) -) - -(define-method to_renderers - (of-object "GstAutoplug") - (c-name "gst_autoplug_to_renderers") - (return-type "GstElement*") - (parameters - '("GstCaps*" "srccaps") - '("GstElement*" "target") - ) - (varargs #t) -) - -(define-function gst_autoplug_factory_get_type - (c-name "gst_autoplug_factory_get_type") - (return-type "GType") -) - -(define-function gst_autoplug_factory_new - (c-name "gst_autoplug_factory_new") - (return-type "GstAutoplugFactory*") - (parameters - '("const-gchar*" "name") - '("const-gchar*" "longdesc") - '("GType" "type") - ) -) - -(define-method destroy - (of-object "GstAutoplugFactory") - (c-name "gst_autoplug_factory_destroy") - (return-type "none") -) - -(define-function gst_autoplug_factory_find - (c-name "gst_autoplug_factory_find") - (return-type "GstAutoplugFactory*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_autoplug_factory_get_list - (c-name "gst_autoplug_factory_get_list") - (return-type "GList*") -) - -(define-method create - (of-object "GstAutoplugFactory") - (c-name "gst_autoplug_factory_create") - (return-type "GstAutoplug*") -) - -(define-function gst_autoplug_factory_make - (c-name "gst_autoplug_factory_make") - (return-type "GstAutoplug*") - (parameters - '("const-gchar*" "name") - ) -) - - - -;; From /usr/include/gst/gstbin.h - -(define-function gst_bin_get_type - (c-name "gst_bin_get_type") - (return-type "GType") -) - -(define-function gst_bin_new - (c-name "gst_bin_new") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method add - (of-object "GstBin") - (c-name "gst_bin_add") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method add_many - (of-object "GstBin") - (c-name "gst_bin_add_many") - (return-type "none") - (parameters - '("GstElement*" "element_1") - ) - (varargs #t) -) - -(define-method remove - (of-object "GstBin") - (c-name "gst_bin_remove") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method get_by_name - (of-object "GstBin") - (c-name "gst_bin_get_by_name") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_by_name_recurse_up - (of-object "GstBin") - (c-name "gst_bin_get_by_name_recurse_up") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_list - (of-object "GstBin") - (c-name "gst_bin_get_list") - (return-type "GList*") -) - -(define-method set_state_type - (of-object "GstBin") - (c-name "gst_bin_set_state_type") - (return-type "gboolean") - (parameters - '("GstElementState" "state") - '("GType" "type") - ) -) - -(define-method iterate - (of-object "GstBin") - (c-name "gst_bin_iterate") - (return-type "gboolean") -) - -(define-method use_clock - (of-object "GstBin") - (c-name "gst_bin_use_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method get_clock - (of-object "GstBin") - (c-name "gst_bin_get_clock") - (return-type "GstClock*") -) - -(define-method auto_clock - (of-object "GstBin") - (c-name "gst_bin_auto_clock") - (return-type "none") -) - -(define-method child_state_change - (of-object "GstBin") - (c-name "gst_bin_child_state_change") - (return-type "none") - (parameters - '("GstElementState" "oldstate") - '("GstElementState" "newstate") - '("GstElement*" "child") - ) -) - - - -;; From /usr/include/gst/gstbuffer.h - -(define-function _gst_buffer_initialize - (c-name "_gst_buffer_initialize") - (return-type "none") -) - -(define-function gst_buffer_new - (c-name "gst_buffer_new") - (return-type "GstBuffer*") -) - -(define-function gst_buffer_new_from_pool - (c-name "gst_buffer_new_from_pool") - (return-type "GstBuffer*") - (parameters - '("GstBufferPool*" "pool") - '("guint32" "offset") - '("guint32" "size") - ) -) - -(define-method create_sub - (of-object "GstBuffer") - (c-name "gst_buffer_create_sub") - (return-type "GstBuffer*") - (parameters - '("guint32" "offset") - '("guint32" "size") - ) -) - -(define-method ref - (of-object "GstBuffer") - (c-name "gst_buffer_ref") - (return-type "none") -) - -(define-method ref_by_count - (of-object "GstBuffer") - (c-name "gst_buffer_ref_by_count") - (return-type "none") - (parameters - '("gint" "count") - ) -) - -(define-method unref - (of-object "GstBuffer") - (c-name "gst_buffer_unref") - (return-type "none") -) - -(define-method destroy - (of-object "GstBuffer") - (c-name "gst_buffer_destroy") - (return-type "none") -) - -(define-method copy - (of-object "GstBuffer") - (c-name "gst_buffer_copy") - (return-type "GstBuffer*") -) - -(define-method merge - (of-object "GstBuffer") - (c-name "gst_buffer_merge") - (return-type "GstBuffer*") - (parameters - '("GstBuffer*" "buf2") - ) -) - -(define-method span - (of-object "GstBuffer") - (c-name "gst_buffer_span") - (return-type "GstBuffer*") - (parameters - '("guint32" "offset") - '("GstBuffer*" "buf2") - '("guint32" "len") - ) -) - -(define-method append - (of-object "GstBuffer") - (c-name "gst_buffer_append") - (return-type "GstBuffer*") - (parameters - '("GstBuffer*" "append") - ) -) - -(define-method is_span_fast - (of-object "GstBuffer") - (c-name "gst_buffer_is_span_fast") - (return-type "gboolean") - (parameters - '("GstBuffer*" "buf2") - ) -) - -(define-function gst_buffer_print_stats - (c-name "gst_buffer_print_stats") - (return-type "none") -) - - - -;; From /usr/include/gst/gstbufferpool.h - -(define-function _gst_buffer_pool_initialize - (c-name "_gst_buffer_pool_initialize") - (return-type "none") -) - -(define-function gst_buffer_pool_new - (c-name "gst_buffer_pool_new") - (return-type "GstBufferPool*") -) - -(define-method ref - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_ref") - (return-type "none") -) - -(define-method ref_by_count - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_ref_by_count") - (return-type "none") - (parameters - '("int" "count") - ) -) - -(define-method unref - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_unref") - (return-type "none") -) - -(define-method set_buffer_new_function - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_set_buffer_new_function") - (return-type "none") - (parameters - '("GstBufferPoolBufferNewFunction" "create") - ) -) - -(define-method set_buffer_free_function - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_set_buffer_free_function") - (return-type "none") - (parameters - '("GstBufferFreeFunc" "destroy") - ) -) - -(define-method set_buffer_copy_function - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_set_buffer_copy_function") - (return-type "none") - (parameters - '("GstBufferCopyFunc" "copy") - ) -) - -(define-method set_destroy_hook - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_set_destroy_hook") - (return-type "none") - (parameters - '("GstBufferPoolDestroyHook" "destroy") - ) -) - -(define-method set_user_data - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_set_user_data") - (return-type "none") - (parameters - '("gpointer" "user_data") - ) -) - -(define-method get_user_data - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_get_user_data") - (return-type "gpointer") -) - -(define-method destroy - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_destroy") - (return-type "none") -) - -(define-function gst_buffer_pool_get_default - (c-name "gst_buffer_pool_get_default") - (return-type "GstBufferPool*") - (parameters - '("guint" "buffer_size") - '("guint" "pool_size") - ) -) - - - -;; From /usr/include/gst/gstcaps.h - -(define-function gst_caps_new - (c-name "gst_caps_new") - (return-type "GstCaps*") - (parameters - '("const-gchar*" "name") - '("const-gchar*" "mime") - '("GstProps*" "props") - ) -) - -(define-function gst_caps_new_id - (c-name "gst_caps_new_id") - (return-type "GstCaps*") - (parameters - '("const-gchar*" "name") - '("const-guint16" "id") - '("GstProps*" "props") - ) -) - -(define-method unref - (of-object "GstCaps") - (c-name "gst_caps_unref") - (return-type "GstCaps*") -) - -(define-method ref - (of-object "GstCaps") - (c-name "gst_caps_ref") - (return-type "GstCaps*") -) - -(define-method destroy - (of-object "GstCaps") - (c-name "gst_caps_destroy") - (return-type "none") -) - -(define-method debug - (of-object "GstCaps") - (c-name "gst_caps_debug") - (return-type "none") - (parameters - '("const-gchar*" "label") - ) -) - -(define-method copy - (of-object "GstCaps") - (c-name "gst_caps_copy") - (return-type "GstCaps*") -) - -(define-method copy_first - (of-object "GstCaps") - (c-name "gst_caps_copy_first") - (return-type "GstCaps*") -) - -(define-method copy_on_write - (of-object "GstCaps") - (c-name "gst_caps_copy_on_write") - (return-type "GstCaps*") -) - -(define-method get_name - (of-object "GstCaps") - (c-name "gst_caps_get_name") - (return-type "const-gchar*") -) - -(define-method set_name - (of-object "GstCaps") - (c-name "gst_caps_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_mime - (of-object "GstCaps") - (c-name "gst_caps_get_mime") - (return-type "const-gchar*") -) - -(define-method set_mime - (of-object "GstCaps") - (c-name "gst_caps_set_mime") - (return-type "none") - (parameters - '("const-gchar*" "mime") - ) -) - -(define-method get_type_id - (of-object "GstCaps") - (c-name "gst_caps_get_type_id") - (return-type "guint16") -) - -(define-method set_type_id - (of-object "GstCaps") - (c-name "gst_caps_set_type_id") - (return-type "none") - (parameters - '("guint16" "type_id") - ) -) - -(define-method set_props - (of-object "GstCaps") - (c-name "gst_caps_set_props") - (return-type "GstCaps*") - (parameters - '("GstProps*" "props") - ) -) - -(define-method get_props - (of-object "GstCaps") - (c-name "gst_caps_get_props") - (return-type "GstProps*") -) - -(define-method get_by_name - (of-object "GstCaps") - (c-name "gst_caps_get_by_name") - (return-type "GstCaps*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method chain - (of-object "GstCaps") - (c-name "gst_caps_chain") - (return-type "GstCaps*") - (parameters - ) - (varargs #t) -) - -(define-method append - (of-object "GstCaps") - (c-name "gst_caps_append") - (return-type "GstCaps*") - (parameters - '("GstCaps*" "capstoadd") - ) -) - -(define-method prepend - (of-object "GstCaps") - (c-name "gst_caps_prepend") - (return-type "GstCaps*") - (parameters - '("GstCaps*" "capstoadd") - ) -) - -(define-method check_compatibility - (of-object "GstCaps") - (c-name "gst_caps_check_compatibility") - (return-type "gboolean") - (parameters - '("GstCaps*" "tocaps") - ) -) - -(define-method intersect - (of-object "GstCaps") - (c-name "gst_caps_intersect") - (return-type "GstCaps*") - (parameters - '("GstCaps*" "caps2") - ) -) - -(define-method normalize - (of-object "GstCaps") - (c-name "gst_caps_normalize") - (return-type "GstCaps*") -) - -(define-method save_thyself - (of-object "GstCaps") - (c-name "gst_caps_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-function gst_caps_load_thyself - (c-name "gst_caps_load_thyself") - (return-type "GstCaps*") - (parameters - '("xmlNodePtr" "parent") - ) -) - - - -;; From /usr/include/gst/gstclock.h - -(define-function gst_clock_get_type - (c-name "gst_clock_get_type") - (return-type "GType") -) - -(define-method set_speed - (of-object "GstClock") - (c-name "gst_clock_set_speed") - (return-type "none") - (parameters - '("gdouble" "speed") - ) -) - -(define-method get_speed - (of-object "GstClock") - (c-name "gst_clock_get_speed") - (return-type "gdouble") -) - -(define-method activate - (of-object "GstClock") - (c-name "gst_clock_activate") - (return-type "none") - (parameters - '("gboolean" "active") - ) -) - -(define-method is_active - (of-object "GstClock") - (c-name "gst_clock_is_active") - (return-type "gboolean") -) - -(define-method reset - (of-object "GstClock") - (c-name "gst_clock_reset") - (return-type "none") -) - -(define-method async_supported - (of-object "GstClock") - (c-name "gst_clock_async_supported") - (return-type "gboolean") -) - -(define-method get_time - (of-object "GstClock") - (c-name "gst_clock_get_time") - (return-type "GstClockTime") -) - -(define-method wait - (of-object "GstClock") - (c-name "gst_clock_wait") - (return-type "GstClockReturn") - (parameters - '("GstClockTime" "time") - ) -) - -(define-method wait_async - (of-object "GstClock") - (c-name "gst_clock_wait_async") - (return-type "GstClockID") - (parameters - '("GstClockTime" "time") - '("GstClockCallback" "func") - '("gpointer" "user_data") - ) -) - -(define-method cancel_wait_async - (of-object "GstClock") - (c-name "gst_clock_cancel_wait_async") - (return-type "none") - (parameters - '("GstClockID" "id") - ) -) - -(define-method notify_async - (of-object "GstClock") - (c-name "gst_clock_notify_async") - (return-type "GstClockID") - (parameters - '("GstClockTime" "interval") - '("GstClockCallback" "func") - '("gpointer" "user_data") - ) -) - -(define-method remove_notify_async - (of-object "GstClock") - (c-name "gst_clock_remove_notify_async") - (return-type "none") - (parameters - '("GstClockID" "id") - ) -) - -(define-method wait_id - (of-object "GstClock") - (c-name "gst_clock_wait_id") - (return-type "GstClockReturn") - (parameters - '("GstClockID" "id") - ) -) - -(define-method get_next_id - (of-object "GstClock") - (c-name "gst_clock_get_next_id") - (return-type "GstClockID") -) - -(define-method unlock_id - (of-object "GstClock") - (c-name "gst_clock_unlock_id") - (return-type "none") - (parameters - '("GstClockID" "id") - ) -) - -(define-method get_time - (of-object "GstClockID") - (c-name "gst_clock_id_get_time") - (return-type "GstClockTime") -) - -(define-method set_resolution - (of-object "GstClock") - (c-name "gst_clock_set_resolution") - (return-type "none") - (parameters - '("guint64" "resolution") - ) -) - -(define-method get_resolution - (of-object "GstClock") - (c-name "gst_clock_get_resolution") - (return-type "guint64") -) - - - -;; From /usr/include/gst/gstconfig.h - - - -;; From /usr/include/gst/gstcpu.h - -(define-function gst_cpu_get_flags - (c-name "gst_cpu_get_flags") - (return-type "GstCPUFlags") -) - - - -;; From /usr/include/gst/gstdata.h - - - -;; From /usr/include/gst/gstelement.h - -(define-method add_pad_template - (of-object "GstElementClass") - (c-name "gst_element_class_add_pad_template") - (return-type "none") - (parameters - '("GstPadTemplate*" "templ") - ) -) - -(define-function gst_element_get_type - (c-name "gst_element_get_type") - (return-type "GType") -) - -(define-method set_loop_function - (of-object "GstElement") - (c-name "gst_element_set_loop_function") - (return-type "none") - (parameters - '("GstElementLoopFunction" "loop") - ) -) - -(define-method set_name - (of-object "GstElement") - (c-name "gst_element_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_name - (of-object "GstElement") - (c-name "gst_element_get_name") - (return-type "const-gchar*") -) - -(define-method set_parent - (of-object "GstElement") - (c-name "gst_element_set_parent") - (return-type "none") - (parameters - '("GstObject*" "parent") - ) -) - -(define-method get_parent - (of-object "GstElement") - (c-name "gst_element_get_parent") - (return-type "GstObject*") -) - -(define-method get_clock - (of-object "GstElement") - (c-name "gst_element_get_clock") - (return-type "GstClock*") -) - -(define-method set_clock - (of-object "GstElement") - (c-name "gst_element_set_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method clock_wait - (of-object "GstElement") - (c-name "gst_element_clock_wait") - (return-type "GstClockReturn") - (parameters - '("GstClock*" "clock") - '("GstClockTime" "time") - ) -) - -(define-method yield - (of-object "GstElement") - (c-name "gst_element_yield") - (return-type "none") -) - -(define-method interrupt - (of-object "GstElement") - (c-name "gst_element_interrupt") - (return-type "gboolean") -) - -(define-method set_sched - (of-object "GstElement") - (c-name "gst_element_set_sched") - (return-type "none") - (parameters - '("GstScheduler*" "sched") - ) -) - -(define-method get_sched - (of-object "GstElement") - (c-name "gst_element_get_sched") - (return-type "GstScheduler*") -) - -(define-method add_pad - (of-object "GstElement") - (c-name "gst_element_add_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method remove_pad - (of-object "GstElement") - (c-name "gst_element_remove_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method add_ghost_pad - (of-object "GstElement") - (c-name "gst_element_add_ghost_pad") - (return-type "GstPad*") - (parameters - '("GstPad*" "pad") - '("gchar*" "name") - ) -) - -(define-method remove_ghost_pad - (of-object "GstElement") - (c-name "gst_element_remove_ghost_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method get_pad - (of-object "GstElement") - (c-name "gst_element_get_pad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_static_pad - (of-object "GstElement") - (c-name "gst_element_get_static_pad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_request_pad - (of-object "GstElement") - (c-name "gst_element_get_request_pad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_pad_list - (of-object "GstElement") - (c-name "gst_element_get_pad_list") - (return-type "GList*") -) - -(define-method get_compatible_pad - (of-object "GstElement") - (c-name "gst_element_get_compatible_pad") - (return-type "GstPad*") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method get_compatible_pad_filtered - (of-object "GstElement") - (c-name "gst_element_get_compatible_pad_filtered") - (return-type "GstPad*") - (parameters - '("GstPad*" "pad") - '("GstCaps*" "filtercaps") - ) -) - -(define-method get_pad_template - (of-object "GstElement") - (c-name "gst_element_get_pad_template") - (return-type "GstPadTemplate*") - (parameters - '("const-guchar*" "name") - ) -) - -(define-method get_pad_template_list - (of-object "GstElement") - (c-name "gst_element_get_pad_template_list") - (return-type "GList*") -) - -(define-method get_compatible_pad_template - (of-object "GstElement") - (c-name "gst_element_get_compatible_pad_template") - (return-type "GstPadTemplate*") - (parameters - '("GstPadTemplate*" "compattempl") - ) -) - -(define-method connect - (of-object "GstElement") - (c-name "gst_element_connect") - (return-type "gboolean") - (parameters - '("GstElement*" "dest") - ) -) - -(define-method connect_many - (of-object "GstElement") - (c-name "gst_element_connect_many") - (return-type "gboolean") - (parameters - '("GstElement*" "element_2") - ) - (varargs #t) -) - -(define-method connect_filtered - (of-object "GstElement") - (c-name "gst_element_connect_filtered") - (return-type "gboolean") - (parameters - '("GstElement*" "dest") - '("GstCaps*" "filtercaps") - ) -) - -(define-method disconnect - (of-object "GstElement") - (c-name "gst_element_disconnect") - (return-type "none") - (parameters - '("GstElement*" "dest") - ) -) - -(define-method disconnect_many - (of-object "GstElement") - (c-name "gst_element_disconnect_many") - (return-type "none") - (parameters - '("GstElement*" "element_2") - ) - (varargs #t) -) - -(define-method connect_pads - (of-object "GstElement") - (c-name "gst_element_connect_pads") - (return-type "gboolean") - (parameters - '("const-gchar*" "srcpadname") - '("GstElement*" "dest") - '("const-gchar*" "destpadname") - ) -) - -(define-method connect_pads_filtered - (of-object "GstElement") - (c-name "gst_element_connect_pads_filtered") - (return-type "gboolean") - (parameters - '("const-gchar*" "srcpadname") - '("GstElement*" "dest") - '("const-gchar*" "destpadname") - '("GstCaps*" "filtercaps") - ) -) - -(define-method disconnect_pads - (of-object "GstElement") - (c-name "gst_element_disconnect_pads") - (return-type "none") - (parameters - '("const-gchar*" "srcpadname") - '("GstElement*" "dest") - '("const-gchar*" "destpadname") - ) -) - -(define-method set_eos - (of-object "GstElement") - (c-name "gst_element_set_eos") - (return-type "none") -) - -(define-method error - (of-object "GstElement") - (c-name "gst_element_error") - (return-type "none") - (parameters - '("const-gchar*" "error") - ) - (varargs #t) -) - -(define-method get_state - (of-object "GstElement") - (c-name "gst_element_get_state") - (return-type "GstElementState") -) - -(define-method set_state - (of-object "GstElement") - (c-name "gst_element_set_state") - (return-type "gint") - (parameters - '("GstElementState" "state") - ) -) - -(define-method wait_state_change - (of-object "GstElement") - (c-name "gst_element_wait_state_change") - (return-type "none") -) - -(define-method name - (of-object "GstElementState") - (c-name "gst_element_statename") - (return-type "const-gchar*") -) - -(define-method get_factory - (of-object "GstElement") - (c-name "gst_element_get_factory") - (return-type "GstElementFactory*") -) - -(define-method install_std_props - (of-object "GstElementClass") - (c-name "gst_element_class_install_std_props") - (return-type "none") - (parameters - '("const-char*" "first_name") - ) - (varargs #t) -) - -(define-method get_managing_bin - (of-object "GstElement") - (c-name "gst_element_get_managing_bin") - (return-type "GstBin*") -) - -(define-function gst_element_factory_get_type - (c-name "gst_element_factory_get_type") - (return-type "GType") -) - -(define-function gst_element_factory_new - (c-name "gst_element_factory_new") - (return-type "GstElementFactory*") - (parameters - '("const-gchar*" "name") - '("GType" "type") - '("GstElementDetails*" "details") - ) -) - -(define-function gst_element_factory_find - (c-name "gst_element_factory_find") - (return-type "GstElementFactory*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_element_factory_get_list - (c-name "gst_element_factory_get_list") - (return-type "const-GList*") -) - -(define-method add_pad_template - (of-object "GstElementFactory") - (c-name "gst_element_factory_add_pad_template") - (return-type "none") - (parameters - '("GstPadTemplate*" "templ") - ) -) - -(define-method can_src_caps - (of-object "GstElementFactory") - (c-name "gst_element_factory_can_src_caps") - (return-type "gboolean") - (parameters - '("GstCaps*" "caps") - ) -) - -(define-method can_sink_caps - (of-object "GstElementFactory") - (c-name "gst_element_factory_can_sink_caps") - (return-type "gboolean") - (parameters - '("GstCaps*" "caps") - ) -) - -(define-method create - (of-object "GstElementFactory") - (c-name "gst_element_factory_create") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_element_factory_make - (c-name "gst_element_factory_make") - (return-type "GstElement*") - (parameters - '("const-gchar*" "factoryname") - '("const-gchar*" "name") - ) -) - - - -;; From /usr/include/gst/gstevent.h - -(define-function _gst_event_initialize - (c-name "_gst_event_initialize") - (return-type "none") -) - -(define-function gst_event_new - (c-name "gst_event_new") - (return-type "GstEvent*") - (parameters - '("GstEventType" "type") - ) -) - -(define-method copy - (of-object "GstEvent") - (c-name "gst_event_copy") - (return-type "GstEvent*") -) - -(define-method free - (of-object "GstEvent") - (c-name "gst_event_free") - (return-type "none") -) - -(define-function gst_event_new_seek - (c-name "gst_event_new_seek") - (return-type "GstEvent*") - (parameters - '("GstSeekType" "type") - '("gint64" "offset") - '("gboolean" "flush") - ) -) - -(define-function gst_event_new_info - (c-name "gst_event_new_info") - (return-type "GstEvent*") - (parameters - '("const-gchar*" "firstname") - ) - (varargs #t) -) - - - -;; From /usr/include/gst/gstextratypes.h - - - -;; From /usr/include/gst/gstinfo.h - -(define-function gst_get_category_name - (c-name "gst_get_category_name") - (return-type "const-gchar*") - (parameters - '("gint" "category") - ) -) - -(define-function gst_default_debug_handler - (c-name "gst_default_debug_handler") - (return-type "none") - (parameters - '("gint" "category") - '("gboolean" "incore") - '("const-gchar*" "file") - '("const-gchar*" "function") - '("gint" "line") - '("const-gchar*" "debug_string") - '("void*" "element") - '("gchar*" "string") - ) -) - -(define-function gst_info_get_categories - (c-name "gst_info_get_categories") - (return-type "guint32") -) - -(define-function gst_info_enable_category - (c-name "gst_info_enable_category") - (return-type "none") - (parameters - '("gint" "category") - ) -) - -(define-function gst_info_disable_category - (c-name "gst_info_disable_category") - (return-type "none") - (parameters - '("gint" "category") - ) -) - -(define-function gst_debug_set_categories - (c-name "gst_debug_set_categories") - (return-type "none") - (parameters - '("guint32" "categories") - ) -) - -(define-function gst_debug_get_categories - (c-name "gst_debug_get_categories") - (return-type "guint32") -) - -(define-function gst_debug_enable_category - (c-name "gst_debug_enable_category") - (return-type "none") - (parameters - '("gint" "category") - ) -) - -(define-function gst_debug_disable_category - (c-name "gst_debug_disable_category") - (return-type "none") - (parameters - '("gint" "category") - ) -) - -(define-function gst_default_error_handler - (c-name "gst_default_error_handler") - (return-type "none") - (parameters - '("gchar*" "file") - '("gchar*" "function") - '("gint" "line") - '("gchar*" "debug_string") - '("void*" "element") - '("void*" "object") - '("gchar*" "string") - ) -) - -(define-function gst_debug_print_stack_trace - (c-name "gst_debug_print_stack_trace") - (return-type "none") -) - - - -;; From /usr/include/gst/gstlog.h - - - -;; From /usr/include/gst/gstmarshal.h - - - -;; From /usr/include/gst/gstobject.h - -(define-function gst_object_get_type - (c-name "gst_object_get_type") - (return-type "GType") -) - -(define-method set_name - (of-object "GstObject") - (c-name "gst_object_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_name - (of-object "GstObject") - (c-name "gst_object_get_name") - (return-type "const-gchar*") -) - -(define-method set_parent - (of-object "GstObject") - (c-name "gst_object_set_parent") - (return-type "none") - (parameters - '("GstObject*" "parent") - ) -) - -(define-method get_parent - (of-object "GstObject") - (c-name "gst_object_get_parent") - (return-type "GstObject*") -) - -(define-method unparent - (of-object "GstObject") - (c-name "gst_object_unparent") - (return-type "none") -) - -(define-function gst_object_check_uniqueness - (c-name "gst_object_check_uniqueness") - (return-type "gboolean") - (parameters - '("GList*" "list") - '("const-gchar*" "name") - ) -) - -(define-method save_thyself - (of-object "GstObject") - (c-name "gst_object_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-method restore_thyself - (of-object "GstObject") - (c-name "gst_object_restore_thyself") - (return-type "none") - (parameters - '("xmlNodePtr" "self") - ) -) - -(define-method ref - (of-object "GstObject") - (c-name "gst_object_ref") - (return-type "GstObject*") -) - -(define-method unref - (of-object "GstObject") - (c-name "gst_object_unref") - (return-type "none") -) - -(define-method sink - (of-object "GstObject") - (c-name "gst_object_sink") - (return-type "none") -) - -(define-method destroy - (of-object "GstObject") - (c-name "gst_object_destroy") - (return-type "none") -) - -(define-method get_path_string - (of-object "GstObject") - (c-name "gst_object_get_path_string") - (return-type "gchar*") -) - -(define-function gst_class_signal_connect - (c-name "gst_class_signal_connect") - (return-type "guint") - (parameters - '("GstObjectClass*" "klass") - '("const-gchar*" "name") - '("gpointer" "func") - '("gpointer" "func_data") - ) -) - -(define-function gst_class_signal_emit_by_name - (c-name "gst_class_signal_emit_by_name") - (return-type "none") - (parameters - '("GstObject*" "object") - '("const-gchar*" "name") - '("xmlNodePtr" "self") - ) -) - - - -;; From /usr/include/gst/gstpad.h - -(define-function gst_real_pad_get_type - (c-name "gst_real_pad_get_type") - (return-type "GType") -) - -(define-function gst_ghost_pad_get_type - (c-name "gst_ghost_pad_get_type") - (return-type "GType") -) - -(define-function gst_pad_new - (c-name "gst_pad_new") - (return-type "GstPad*") - (parameters - '("gchar*" "name") - '("GstPadDirection" "direction") - ) -) - -(define-function gst_pad_new_from_template - (c-name "gst_pad_new_from_template") - (return-type "GstPad*") - (parameters - '("GstPadTemplate*" "templ") - '("gchar*" "name") - ) -) - -(define-method get_direction - (of-object "GstPad") - (c-name "gst_pad_get_direction") - (return-type "GstPadDirection") -) - -(define-method set_chain_function - (of-object "GstPad") - (c-name "gst_pad_set_chain_function") - (return-type "none") - (parameters - '("GstPadChainFunction" "chain") - ) -) - -(define-method set_get_function - (of-object "GstPad") - (c-name "gst_pad_set_get_function") - (return-type "none") - (parameters - '("GstPadGetFunction" "get") - ) -) - -(define-method set_event_function - (of-object "GstPad") - (c-name "gst_pad_set_event_function") - (return-type "none") - (parameters - '("GstPadEventFunction" "event") - ) -) - -(define-method set_getregion_function - (of-object "GstPad") - (c-name "gst_pad_set_getregion_function") - (return-type "none") - (parameters - '("GstPadGetRegionFunction" "getregion") - ) -) - -(define-method set_connect_function - (of-object "GstPad") - (c-name "gst_pad_set_connect_function") - (return-type "none") - (parameters - '("GstPadConnectFunction" "connect") - ) -) - -(define-method set_getcaps_function - (of-object "GstPad") - (c-name "gst_pad_set_getcaps_function") - (return-type "none") - (parameters - '("GstPadGetCapsFunction" "getcaps") - ) -) - -(define-method set_bufferpool_function - (of-object "GstPad") - (c-name "gst_pad_set_bufferpool_function") - (return-type "none") - (parameters - '("GstPadBufferPoolFunction" "bufpool") - ) -) - -(define-method get_caps - (of-object "GstPad") - (c-name "gst_pad_get_caps") - (return-type "GstCaps*") -) - -(define-method get_pad_template_caps - (of-object "GstPad") - (c-name "gst_pad_get_pad_template_caps") - (return-type "GstCaps*") -) - -(define-method try_set_caps - (of-object "GstPad") - (c-name "gst_pad_try_set_caps") - (return-type "gboolean") - (parameters - '("GstCaps*" "caps") - ) -) - -(define-method check_compatibility - (of-object "GstPad") - (c-name "gst_pad_check_compatibility") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method set_element_private - (of-object "GstPad") - (c-name "gst_pad_set_element_private") - (return-type "none") - (parameters - '("gpointer" "priv") - ) -) - -(define-method get_element_private - (of-object "GstPad") - (c-name "gst_pad_get_element_private") - (return-type "gpointer") -) - -(define-method set_name - (of-object "GstPad") - (c-name "gst_pad_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_name - (of-object "GstPad") - (c-name "gst_pad_get_name") - (return-type "const-gchar*") -) - -(define-method set_parent - (of-object "GstPad") - (c-name "gst_pad_set_parent") - (return-type "none") - (parameters - '("GstObject*" "parent") - ) -) - -(define-method get_parent - (of-object "GstPad") - (c-name "gst_pad_get_parent") - (return-type "GstElement*") -) - -(define-method get_real_parent - (of-object "GstPad") - (c-name "gst_pad_get_real_parent") - (return-type "GstElement*") -) - -(define-method set_sched - (of-object "GstPad") - (c-name "gst_pad_set_sched") - (return-type "none") - (parameters - '("GstScheduler*" "sched") - ) -) - -(define-method get_sched - (of-object "GstPad") - (c-name "gst_pad_get_sched") - (return-type "GstScheduler*") -) - -(define-method unset_sched - (of-object "GstPad") - (c-name "gst_pad_unset_sched") - (return-type "none") -) - -(define-method add_ghost_pad - (of-object "GstPad") - (c-name "gst_pad_add_ghost_pad") - (return-type "none") - (parameters - '("GstPad*" "ghostpad") - ) -) - -(define-method remove_ghost_pad - (of-object "GstPad") - (c-name "gst_pad_remove_ghost_pad") - (return-type "none") - (parameters - '("GstPad*" "ghostpad") - ) -) - -(define-method get_ghost_pad_list - (of-object "GstPad") - (c-name "gst_pad_get_ghost_pad_list") - (return-type "GList*") -) - -(define-method get_pad_template - (of-object "GstPad") - (c-name "gst_pad_get_pad_template") - (return-type "GstPadTemplate*") -) - -(define-method get_peer - (of-object "GstPad") - (c-name "gst_pad_get_peer") - (return-type "GstPad*") -) - -(define-method get_bufferpool - (of-object "GstPad") - (c-name "gst_pad_get_bufferpool") - (return-type "GstBufferPool*") -) - -(define-method can_connect - (of-object "GstPad") - (c-name "gst_pad_can_connect") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method can_connect_filtered - (of-object "GstPad") - (c-name "gst_pad_can_connect_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("GstCaps*" "filtercaps") - ) -) - -(define-method connect - (of-object "GstPad") - (c-name "gst_pad_connect") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method connect_filtered - (of-object "GstPad") - (c-name "gst_pad_connect_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("GstCaps*" "filtercaps") - ) -) - -(define-method disconnect - (of-object "GstPad") - (c-name "gst_pad_disconnect") - (return-type "none") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method proxy_connect - (of-object "GstPad") - (c-name "gst_pad_proxy_connect") - (return-type "GstPadConnectReturn") - (parameters - '("GstCaps*" "caps") - ) -) - -(define-method reconnect_filtered - (of-object "GstPad") - (c-name "gst_pad_reconnect_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("GstCaps*" "filtercaps") - ) -) - -(define-method perform_negotiate - (of-object "GstPad") - (c-name "gst_pad_perform_negotiate") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method try_reconnect_filtered - (of-object "GstPad") - (c-name "gst_pad_try_reconnect_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("GstCaps*" "filtercaps") - ) -) - -(define-method get_allowed_caps - (of-object "GstPad") - (c-name "gst_pad_get_allowed_caps") - (return-type "GstCaps*") -) - -(define-method recalc_allowed_caps - (of-object "GstPad") - (c-name "gst_pad_recalc_allowed_caps") - (return-type "gboolean") -) - -(define-method push - (of-object "GstPad") - (c-name "gst_pad_push") - (return-type "none") - (parameters - '("GstBuffer*" "buf") - ) -) - -(define-method pullregion - (of-object "GstPad") - (c-name "gst_pad_pullregion") - (return-type "GstBuffer*") - (parameters - '("GstRegionType" "type") - '("guint64" "offset") - '("guint64" "len") - ) -) - -(define-method event_default - (of-object "GstPad") - (c-name "gst_pad_event_default") - (return-type "none") - (parameters - '("GstEvent*" "event") - ) -) - -(define-method peek - (of-object "GstPad") - (c-name "gst_pad_peek") - (return-type "GstBuffer*") -) - -(define-function gst_pad_select - (c-name "gst_pad_select") - (return-type "GstPad*") - (parameters - '("GList*" "padlist") - ) -) - -(define-method selectv - (of-object "GstPad") - (c-name "gst_pad_selectv") - (return-type "GstPad*") - (parameters - ) - (varargs #t) -) - -(define-function gst_pad_load_and_connect - (c-name "gst_pad_load_and_connect") - (return-type "none") - (parameters - '("xmlNodePtr" "self") - '("GstObject*" "parent") - ) -) - -(define-function gst_ghost_pad_new - (c-name "gst_ghost_pad_new") - (return-type "GstPad*") - (parameters - '("gchar*" "name") - '("GstPad*" "pad") - ) -) - -(define-function gst_pad_template_get_type - (c-name "gst_pad_template_get_type") - (return-type "GType") -) - -(define-function gst_pad_template_new - (c-name "gst_pad_template_new") - (return-type "GstPadTemplate*") - (parameters - '("gchar*" "name_template") - '("GstPadDirection" "direction") - '("GstPadPresence" "presence") - '("GstCaps*" "caps") - ) - (varargs #t) -) - -(define-method get_caps - (of-object "GstPadTemplate") - (c-name "gst_pad_template_get_caps") - (return-type "GstCaps*") -) - -(define-method get_caps_by_name - (of-object "GstPadTemplate") - (c-name "gst_pad_template_get_caps_by_name") - (return-type "GstCaps*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method save_thyself - (of-object "GstPadTemplate") - (c-name "gst_pad_template_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-function gst_pad_template_load_thyself - (c-name "gst_pad_template_load_thyself") - (return-type "GstPadTemplate*") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-method ghost_save_thyself - (of-object "GstPad") - (c-name "gst_pad_ghost_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("GstElement*" "bin") - '("xmlNodePtr" "parent") - ) -) - - - -;; From /usr/include/gst/gstparse.h - -(define-function gst_parse_launch - (c-name "gst_parse_launch") - (return-type "GstBin*") - (parameters - '("const-gchar*" "pipeline_description") - '("GError**" "error") - ) -) - -(define-function gst_parse_launchv - (c-name "gst_parse_launchv") - (return-type "GstBin*") - (parameters - '("const-gchar**" "argv") - '("GError**" "error") - ) -) - - - -;; From /usr/include/gst/gstpipeline.h - -(define-function gst_pipeline_get_type - (c-name "gst_pipeline_get_type") - (return-type "GType") -) - -(define-function gst_pipeline_new - (c-name "gst_pipeline_new") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - - - -;; From /usr/include/gst/gstplugin.h - -(define-function _gst_plugin_register_static - (c-name "_gst_plugin_register_static") - (return-type "none") - (parameters - '("GstPluginDesc*" "desc") - ) -) - -(define-function gst_plugin_add_path - (c-name "gst_plugin_add_path") - (return-type "none") - (parameters - '("const-gchar*" "path") - ) -) - -(define-method get_name - (of-object "GstPlugin") - (c-name "gst_plugin_get_name") - (return-type "const-gchar*") -) - -(define-method set_name - (of-object "GstPlugin") - (c-name "gst_plugin_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_longname - (of-object "GstPlugin") - (c-name "gst_plugin_get_longname") - (return-type "const-gchar*") -) - -(define-method set_longname - (of-object "GstPlugin") - (c-name "gst_plugin_set_longname") - (return-type "none") - (parameters - '("const-gchar*" "longname") - ) -) - -(define-method get_filename - (of-object "GstPlugin") - (c-name "gst_plugin_get_filename") - (return-type "const-gchar*") -) - -(define-method is_loaded - (of-object "GstPlugin") - (c-name "gst_plugin_is_loaded") - (return-type "gboolean") -) - -(define-method get_feature_list - (of-object "GstPlugin") - (c-name "gst_plugin_get_feature_list") - (return-type "GList*") -) - -(define-function gst_plugin_load_all - (c-name "gst_plugin_load_all") - (return-type "none") -) - -(define-function gst_plugin_unload_all - (c-name "gst_plugin_unload_all") - (return-type "none") -) - -(define-function gst_plugin_load - (c-name "gst_plugin_load") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_plugin_load_absolute - (c-name "gst_plugin_load_absolute") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_library_load - (c-name "gst_library_load") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method load_plugin - (of-object "GstPlugin") - (c-name "gst_plugin_load_plugin") - (return-type "gboolean") -) - -(define-method add_feature - (of-object "GstPlugin") - (c-name "gst_plugin_add_feature") - (return-type "none") - (parameters - '("GstPluginFeature*" "feature") - ) -) - -(define-function gst_plugin_find - (c-name "gst_plugin_find") - (return-type "GstPlugin*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_plugin_get_list - (c-name "gst_plugin_get_list") - (return-type "GList*") -) - -(define-function gst_plugin_save_thyself - (c-name "gst_plugin_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-function gst_plugin_load_thyself - (c-name "gst_plugin_load_thyself") - (return-type "none") - (parameters - '("xmlNodePtr" "parent") - ) -) - - - -;; From /usr/include/gst/gstpluginfeature.h - -(define-function gst_plugin_feature_get_type - (c-name "gst_plugin_feature_get_type") - (return-type "GType") -) - -(define-method ensure_loaded - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_ensure_loaded") - (return-type "gboolean") -) - -(define-method unload_thyself - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_unload_thyself") - (return-type "none") -) - - - -;; From /usr/include/gst/gstprops.h - -(define-function _gst_props_initialize - (c-name "_gst_props_initialize") - (return-type "none") -) - -(define-function gst_props_new - (c-name "gst_props_new") - (return-type "GstProps*") - (parameters - '("const-gchar*" "firstname") - ) - (varargs #t) -) - -(define-function gst_props_newv - (c-name "gst_props_newv") - (return-type "GstProps*") - (parameters - '("const-gchar*" "firstname") - '("va_list" "var_args") - ) -) - -(define-method unref - (of-object "GstProps") - (c-name "gst_props_unref") - (return-type "none") -) - -(define-method ref - (of-object "GstProps") - (c-name "gst_props_ref") - (return-type "none") -) - -(define-method destroy - (of-object "GstProps") - (c-name "gst_props_destroy") - (return-type "none") -) - -(define-method debug - (of-object "GstProps") - (c-name "gst_props_debug") - (return-type "none") -) - -(define-method copy - (of-object "GstProps") - (c-name "gst_props_copy") - (return-type "GstProps*") -) - -(define-method copy_on_write - (of-object "GstProps") - (c-name "gst_props_copy_on_write") - (return-type "GstProps*") -) - -(define-method merge - (of-object "GstProps") - (c-name "gst_props_merge") - (return-type "GstProps*") - (parameters - '("GstProps*" "tomerge") - ) -) - -(define-method check_compatibility - (of-object "GstProps") - (c-name "gst_props_check_compatibility") - (return-type "gboolean") - (parameters - '("GstProps*" "toprops") - ) -) - -(define-method intersect - (of-object "GstProps") - (c-name "gst_props_intersect") - (return-type "GstProps*") - (parameters - '("GstProps*" "props2") - ) -) - -(define-method normalize - (of-object "GstProps") - (c-name "gst_props_normalize") - (return-type "GList*") -) - -(define-method set - (of-object "GstProps") - (c-name "gst_props_set") - (return-type "GstProps*") - (parameters - '("const-gchar*" "name") - ) - (varargs #t) -) - -(define-method get - (of-object "GstProps") - (c-name "gst_props_get") - (return-type "gboolean") - (parameters - '("gchar*" "first_name") - ) - (varargs #t) -) - -(define-method has_property - (of-object "GstProps") - (c-name "gst_props_has_property") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method has_property_typed - (of-object "GstProps") - (c-name "gst_props_has_property_typed") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - '("GstPropsType" "type") - ) -) - -(define-method has_fixed_property - (of-object "GstProps") - (c-name "gst_props_has_fixed_property") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_entry - (of-object "GstProps") - (c-name "gst_props_get_entry") - (return-type "const-GstPropsEntry*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_type - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_type") - (return-type "GstPropsType") -) - -(define-method get_name - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_name") - (return-type "const-gchar*") -) - -(define-method is_fixed - (of-object "GstPropsEntry") - (c-name "gst_props_entry_is_fixed") - (return-type "gboolean") -) - -(define-method get - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get") - (return-type "gboolean") - (parameters - ) - (varargs #t) -) - -(define-method get_int - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_int") - (return-type "gboolean") - (parameters - '("gint*" "val") - ) -) - -(define-method get_float - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_float") - (return-type "gboolean") - (parameters - '("gfloat*" "val") - ) -) - -(define-method get_fourcc_int - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_fourcc_int") - (return-type "gboolean") - (parameters - '("guint32*" "val") - ) -) - -(define-method get_boolean - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_boolean") - (return-type "gboolean") - (parameters - '("gboolean*" "val") - ) -) - -(define-method get_string - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_string") - (return-type "gboolean") - (parameters - '("const-gchar**" "val") - ) -) - -(define-method get_int_range - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_int_range") - (return-type "gboolean") - (parameters - '("gint*" "min") - '("gint*" "max") - ) -) - -(define-method get_float_range - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_float_range") - (return-type "gboolean") - (parameters - '("gfloat*" "min") - '("gfloat*" "max") - ) -) - -(define-method get_list - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_list") - (return-type "gboolean") - (parameters - '("const-GList**" "val") - ) -) - -(define-method save_thyself - (of-object "GstProps") - (c-name "gst_props_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-function gst_props_load_thyself - (c-name "gst_props_load_thyself") - (return-type "GstProps*") - (parameters - '("xmlNodePtr" "parent") - ) -) - - - -;; From /usr/include/gst/gstqueue.h - -(define-function gst_queue_get_type - (c-name "gst_queue_get_type") - (return-type "GType") -) - - - -;; From /usr/include/gst/gstregistry.h - -(define-function gst_registry_write_get - (c-name "gst_registry_write_get") - (return-type "GstRegistryWrite*") -) - -(define-function gst_registry_read_get - (c-name "gst_registry_read_get") - (return-type "GstRegistryRead*") -) - -(define-function gst_registry_option_set - (c-name "gst_registry_option_set") - (return-type "none") - (parameters - '("const-gchar*" "registry") - ) -) - - - -;; From /usr/include/gst/gstscheduler.h - -(define-function gst_scheduler_get_type - (c-name "gst_scheduler_get_type") - (return-type "GType") -) - -(define-method setup - (of-object "GstScheduler") - (c-name "gst_scheduler_setup") - (return-type "none") -) - -(define-method reset - (of-object "GstScheduler") - (c-name "gst_scheduler_reset") - (return-type "none") -) - -(define-method add_element - (of-object "GstScheduler") - (c-name "gst_scheduler_add_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method remove_element - (of-object "GstScheduler") - (c-name "gst_scheduler_remove_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method add_scheduler - (of-object "GstScheduler") - (c-name "gst_scheduler_add_scheduler") - (return-type "none") - (parameters - '("GstScheduler*" "sched2") - ) -) - -(define-method remove_scheduler - (of-object "GstScheduler") - (c-name "gst_scheduler_remove_scheduler") - (return-type "none") - (parameters - '("GstScheduler*" "sched2") - ) -) - -(define-method state_transition - (of-object "GstScheduler") - (c-name "gst_scheduler_state_transition") - (return-type "GstElementStateReturn") - (parameters - '("GstElement*" "element") - '("gint" "transition") - ) -) - -(define-method lock_element - (of-object "GstScheduler") - (c-name "gst_scheduler_lock_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method unlock_element - (of-object "GstScheduler") - (c-name "gst_scheduler_unlock_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method yield - (of-object "GstScheduler") - (c-name "gst_scheduler_yield") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method interrupt - (of-object "GstScheduler") - (c-name "gst_scheduler_interrupt") - (return-type "gboolean") - (parameters - '("GstElement*" "element") - ) -) - -(define-method error - (of-object "GstScheduler") - (c-name "gst_scheduler_error") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method pad_connect - (of-object "GstScheduler") - (c-name "gst_scheduler_pad_connect") - (return-type "none") - (parameters - '("GstPad*" "srcpad") - '("GstPad*" "sinkpad") - ) -) - -(define-method pad_disconnect - (of-object "GstScheduler") - (c-name "gst_scheduler_pad_disconnect") - (return-type "none") - (parameters - '("GstPad*" "srcpad") - '("GstPad*" "sinkpad") - ) -) - -(define-method pad_select - (of-object "GstScheduler") - (c-name "gst_scheduler_pad_select") - (return-type "GstPad*") - (parameters - '("GList*" "padlist") - ) -) - -(define-method clock_wait - (of-object "GstScheduler") - (c-name "gst_scheduler_clock_wait") - (return-type "GstClockReturn") - (parameters - '("GstElement*" "element") - '("GstClock*" "clock") - '("GstClockTime" "time") - ) -) - -(define-method iterate - (of-object "GstScheduler") - (c-name "gst_scheduler_iterate") - (return-type "gboolean") -) - -(define-method use_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_use_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method set_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_set_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method get_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_get_clock") - (return-type "GstClock*") -) - -(define-method auto_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_auto_clock") - (return-type "none") -) - -(define-method show - (of-object "GstScheduler") - (c-name "gst_scheduler_show") - (return-type "none") -) - -(define-function gst_scheduler_factory_get_type - (c-name "gst_scheduler_factory_get_type") - (return-type "GType") -) - -(define-function gst_scheduler_factory_new - (c-name "gst_scheduler_factory_new") - (return-type "GstSchedulerFactory*") - (parameters - '("const-gchar*" "name") - '("const-gchar*" "longdesc") - '("GType" "type") - ) -) - -(define-method destroy - (of-object "GstSchedulerFactory") - (c-name "gst_scheduler_factory_destroy") - (return-type "none") -) - -(define-function gst_scheduler_factory_find - (c-name "gst_scheduler_factory_find") - (return-type "GstSchedulerFactory*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_scheduler_factory_get_list - (c-name "gst_scheduler_factory_get_list") - (return-type "GList*") -) - -(define-method create - (of-object "GstSchedulerFactory") - (c-name "gst_scheduler_factory_create") - (return-type "GstScheduler*") - (parameters - '("GstElement*" "parent") - ) -) - -(define-function gst_scheduler_factory_make - (c-name "gst_scheduler_factory_make") - (return-type "GstScheduler*") - (parameters - '("const-gchar*" "name") - '("GstElement*" "parent") - ) -) - -(define-function gst_scheduler_factory_set_default_name - (c-name "gst_scheduler_factory_set_default_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_scheduler_factory_get_default_name - (c-name "gst_scheduler_factory_get_default_name") - (return-type "const-gchar*") -) - - - -;; From /usr/include/gst/gstsystemclock.h - -(define-function gst_system_clock_get_type - (c-name "gst_system_clock_get_type") - (return-type "GType") -) - -(define-function gst_system_clock_obtain - (c-name "gst_system_clock_obtain") - (return-type "GstClock*") -) - - - -;; From /usr/include/gst/gstthread.h - -(define-function gst_thread_get_type - (c-name "gst_thread_get_type") - (return-type "GType") -) - -(define-function gst_thread_new - (c-name "gst_thread_new") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - - - -;; From /usr/include/gst/gsttimecache.h - -(define-function gst_time_cache_get_type - (c-name "gst_time_cache_get_type") - (return-type "GType") -) - -(define-function gst_time_cache_new - (c-name "gst_time_cache_new") - (return-type "GstTimeCache*") -) - -(define-method get_group - (of-object "GstTimeCache") - (c-name "gst_time_cache_get_group") - (return-type "gint") -) - -(define-method new_group - (of-object "GstTimeCache") - (c-name "gst_time_cache_new_group") - (return-type "gint") -) - -(define-method set_group - (of-object "GstTimeCache") - (c-name "gst_time_cache_set_group") - (return-type "gboolean") - (parameters - '("gint" "groupnum") - ) -) - -(define-method set_certainty - (of-object "GstTimeCache") - (c-name "gst_time_cache_set_certainty") - (return-type "none") - (parameters - '("GstTimeCacheCertainty" "certainty") - ) -) - -(define-method get_certainty - (of-object "GstTimeCache") - (c-name "gst_time_cache_get_certainty") - (return-type "GstTimeCacheCertainty") -) - -(define-method add_entry - (of-object "GstTimeCache") - (c-name "gst_time_cache_add_entry") - (return-type "none") - (parameters - '("guint64" "location") - '("gint64" "timestamp") - ) -) - -(define-method find_location - (of-object "GstTimeCache") - (c-name "gst_time_cache_find_location") - (return-type "gboolean") - (parameters - '("guint64" "location") - '("gint64*" "timestamp") - ) -) - -(define-method find_timestamp - (of-object "GstTimeCache") - (c-name "gst_time_cache_find_timestamp") - (return-type "gboolean") - (parameters - '("gint64" "timestamp") - '("guint64*" "location") - ) -) - - - -;; From /usr/include/gst/gsttrace.h - -(define-function gst_trace_new - (c-name "gst_trace_new") - (return-type "GstTrace*") - (parameters - '("guchar*" "filename") - '("gint" "size") - ) -) - -(define-method destroy - (of-object "GstTrace") - (c-name "gst_trace_destroy") - (return-type "none") -) - -(define-method flush - (of-object "GstTrace") - (c-name "gst_trace_flush") - (return-type "none") -) - -(define-method text_flush - (of-object "GstTrace") - (c-name "gst_trace_text_flush") - (return-type "none") -) - -(define-method set_default - (of-object "GstTrace") - (c-name "gst_trace_set_default") - (return-type "none") -) - -(define-method _add_entry - (of-object "GstTrace") - (c-name "_gst_trace_add_entry") - (return-type "none") - (parameters - '("guint32" "seq") - '("guint32" "data") - '("gchar*" "msg") - ) -) - -(define-function gst_trace_read_tsc - (c-name "gst_trace_read_tsc") - (return-type "none") - (parameters - '("guint64*" "dst") - ) -) - - - -;; From /usr/include/gst/gsttype.h - -(define-function gst_type_factory_get_type - (c-name "gst_type_factory_get_type") - (return-type "GType") -) - -(define-function gst_type_factory_new - (c-name "gst_type_factory_new") - (return-type "GstTypeFactory*") - (parameters - '("GstTypeDefinition*" "definition") - ) -) - -(define-function gst_type_factory_find - (c-name "gst_type_factory_find") - (return-type "GstTypeFactory*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_type_factory_get_list - (c-name "gst_type_factory_get_list") - (return-type "GList*") -) - -(define-function gst_type_register - (c-name "gst_type_register") - (return-type "guint16") - (parameters - '("GstTypeFactory*" "factory") - ) -) - -(define-function gst_type_find_by_mime - (c-name "gst_type_find_by_mime") - (return-type "guint16") - (parameters - '("const-gchar*" "mime") - ) -) - -(define-function gst_type_find_by_ext - (c-name "gst_type_find_by_ext") - (return-type "guint16") - (parameters - '("const-gchar*" "ext") - ) -) - -(define-function gst_type_find_by_id - (c-name "gst_type_find_by_id") - (return-type "GstType*") - (parameters - '("guint16" "id") - ) -) - -(define-function gst_type_get_list - (c-name "gst_type_get_list") - (return-type "GList*") -) - - - -;; From /usr/include/gst/gsttypefind.h - -(define-function gst_type_find_get_type - (c-name "gst_type_find_get_type") - (return-type "GType") -) - - - -;; From /usr/include/gst/gsttypes.h - - - -;; From /usr/include/gst/gstutils.h - -(define-function gst_util_get_int_arg - (c-name "gst_util_get_int_arg") - (return-type "gint") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_get_bool_arg - (c-name "gst_util_get_bool_arg") - (return-type "gboolean") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_get_long_arg - (c-name "gst_util_get_long_arg") - (return-type "glong") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_get_int64_arg - (c-name "gst_util_get_int64_arg") - (return-type "gint64") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_get_float_arg - (c-name "gst_util_get_float_arg") - (return-type "gfloat") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_get_double_arg - (c-name "gst_util_get_double_arg") - (return-type "gdouble") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_get_string_arg - (c-name "gst_util_get_string_arg") - (return-type "const-gchar*") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_get_pointer_arg - (c-name "gst_util_get_pointer_arg") - (return-type "gpointer") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_set_value_from_string - (c-name "gst_util_set_value_from_string") - (return-type "none") - (parameters - '("GValue*" "value") - '("const-gchar*" "value_str") - ) -) - -(define-function gst_util_set_object_arg - (c-name "gst_util_set_object_arg") - (return-type "none") - (parameters - '("GObject*" "object") - '("const-gchar*" "name") - '("const-gchar*" "value") - ) -) - -(define-function gst_util_dump_mem - (c-name "gst_util_dump_mem") - (return-type "none") - (parameters - '("guchar*" "mem") - '("guint" "size") - ) -) - -(define-function gst_print_pad_caps - (c-name "gst_print_pad_caps") - (return-type "none") - (parameters - '("GString*" "buf") - '("gint" "indent") - '("GstPad*" "pad") - ) -) - -(define-function gst_print_element_args - (c-name "gst_print_element_args") - (return-type "none") - (parameters - '("GString*" "buf") - '("gint" "indent") - '("GstElement*" "element") - ) -) - - - -;; From /usr/include/gst/gstversion.h - - - -;; From /usr/include/gst/gstxml.h - -(define-function gst_xml_get_type - (c-name "gst_xml_get_type") - (return-type "GType") -) - -(define-function gst_xml_write - (c-name "gst_xml_write") - (return-type "xmlDocPtr") - (parameters - '("GstElement*" "element") - ) -) - -(define-function gst_xml_write_file - (c-name "gst_xml_write_file") - (return-type "gint") - (parameters - '("GstElement*" "element") - '("FILE*" "out") - ) -) - -(define-function gst_xml_new - (c-name "gst_xml_new") - (return-type "GstXML*") -) - -(define-method parse_doc - (of-object "GstXML") - (c-name "gst_xml_parse_doc") - (return-type "gboolean") - (parameters - '("xmlDocPtr" "doc") - '("const-guchar*" "root") - ) -) - -(define-method parse_file - (of-object "GstXML") - (c-name "gst_xml_parse_file") - (return-type "gboolean") - (parameters - '("const-guchar*" "fname") - '("const-guchar*" "root") - ) -) - -(define-method parse_memory - (of-object "GstXML") - (c-name "gst_xml_parse_memory") - (return-type "gboolean") - (parameters - '("guchar*" "buffer") - '("guint" "size") - '("const-gchar*" "root") - ) -) - -(define-method get_element - (of-object "GstXML") - (c-name "gst_xml_get_element") - (return-type "GstElement*") - (parameters - '("const-guchar*" "name") - ) -) - -(define-method get_topelements - (of-object "GstXML") - (c-name "gst_xml_get_topelements") - (return-type "GList*") -) - -(define-function gst_xml_make_element - (c-name "gst_xml_make_element") - (return-type "GstElement*") - (parameters - '("xmlNodePtr" "cur") - '("GstObject*" "parent") - ) -) - - diff --git a/gst/gstreamer-extra.defs b/gst/gstreamer-extra.defs index b2cd63b..e44d543 100644 --- a/gst/gstreamer-extra.defs +++ b/gst/gstreamer-extra.defs @@ -18,11 +18,3 @@ '("char*" "data") ) ) - -(define-function gst_info_set_categories - (c-name "gst_info_set_categories") - (return-type "none") - (parameters - '("guint32" "categories") - ) -) diff --git a/gst/gstreamer-fixes.c b/gst/gstreamer-fixes.c index d31f942..9705c34 100644 --- a/gst/gstreamer-fixes.c +++ b/gst/gstreamer-fixes.c @@ -22,5 +22,3 @@ #include #include "gstreamer-fixes.h" - -#include "tmp-enum-types.c" diff --git a/gst/gstreamer-fixes.h b/gst/gstreamer-fixes.h index 45d874e..06a0174 100644 --- a/gst/gstreamer-fixes.h +++ b/gst/gstreamer-fixes.h @@ -24,4 +24,3 @@ #include #include -#include "tmp-enum-types.h" diff --git a/gst/tmp-enum-types.c b/gst/tmp-enum-types.c deleted file mode 100644 index 103b2f3..0000000 --- a/gst/tmp-enum-types.c +++ /dev/null @@ -1,424 +0,0 @@ - -/* Generated data (by glib-mkenums) */ - -#include - -/* enumerations from "/usr/include/gst/gstautoplug.h" */ -GType -gst_autoplug_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_AUTOPLUG_TO_CAPS, "GST_AUTOPLUG_TO_CAPS", "to-caps" }, - { GST_AUTOPLUG_TO_RENDERER, "GST_AUTOPLUG_TO_RENDERER", "to-renderer" }, - { GST_AUTOPLUG_FLAG_LAST, "GST_AUTOPLUG_FLAG_LAST", "flag-last" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstAutoplugFlags", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstbin.h" */ -GType -gst_bin_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_BIN_FLAG_MANAGER, "GST_BIN_FLAG_MANAGER", "flag-manager" }, - { GST_BIN_SELF_SCHEDULABLE, "GST_BIN_SELF_SCHEDULABLE", "self-schedulable" }, - { GST_BIN_FLAG_PREFER_COTHREADS, "GST_BIN_FLAG_PREFER_COTHREADS", "flag-prefer-cothreads" }, - { GST_BIN_FLAG_FIXED_CLOCK, "GST_BIN_FLAG_FIXED_CLOCK", "flag-fixed-clock" }, - { GST_BIN_FLAG_LAST, "GST_BIN_FLAG_LAST", "flag-last" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstBinFlags", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstbuffer.h" */ -GType -gst_buffer_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_BUFFER_READONLY, "GST_BUFFER_READONLY", "readonly" }, - { GST_BUFFER_ORIGINAL, "GST_BUFFER_ORIGINAL", "original" }, - { GST_BUFFER_DONTFREE, "GST_BUFFER_DONTFREE", "dontfree" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstBufferFlags", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstclock.h" */ -GType -gst_clock_return_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_CLOCK_STOPPED, "GST_CLOCK_STOPPED", "stopped" }, - { GST_CLOCK_TIMEOUT, "GST_CLOCK_TIMEOUT", "timeout" }, - { GST_CLOCK_EARLY, "GST_CLOCK_EARLY", "early" }, - { GST_CLOCK_ERROR, "GST_CLOCK_ERROR", "error" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstClockReturn", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstcpu.h" */ -GType -gst_cpu_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GFlagsValue values[] = { - { GST_CPU_FLAG_MMX, "GST_CPU_FLAG_MMX", "mmx" }, - { GST_CPU_FLAG_SSE, "GST_CPU_FLAG_SSE", "sse" }, - { GST_CPU_FLAG_MMXEXT, "GST_CPU_FLAG_MMXEXT", "mmxext" }, - { GST_CPU_FLAG_3DNOW, "GST_CPU_FLAG_3DNOW", "3dnow" }, - { 0, NULL, NULL } - }; - etype = g_flags_register_static ("GstCPUFlags", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstelement.h" */ -GType -gst_element_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_ELEMENT_COMPLEX, "GST_ELEMENT_COMPLEX", "complex" }, - { GST_ELEMENT_DECOUPLED, "GST_ELEMENT_DECOUPLED", "decoupled" }, - { GST_ELEMENT_THREAD_SUGGESTED, "GST_ELEMENT_THREAD_SUGGESTED", "thread-suggested" }, - { GST_ELEMENT_NO_SEEK, "GST_ELEMENT_NO_SEEK", "no-seek" }, - { GST_ELEMENT_INFINITE_LOOP, "GST_ELEMENT_INFINITE_LOOP", "infinite-loop" }, - { GST_ELEMENT_SCHEDULER_PRIVATE1, "GST_ELEMENT_SCHEDULER_PRIVATE1", "scheduler-private1" }, - { GST_ELEMENT_SCHEDULER_PRIVATE2, "GST_ELEMENT_SCHEDULER_PRIVATE2", "scheduler-private2" }, - { GST_ELEMENT_NEW_LOOPFUNC, "GST_ELEMENT_NEW_LOOPFUNC", "new-loopfunc" }, - { GST_ELEMENT_EVENT_AWARE, "GST_ELEMENT_EVENT_AWARE", "event-aware" }, - { GST_ELEMENT_FLAG_LAST, "GST_ELEMENT_FLAG_LAST", "flag-last" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstElementFlags", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstevent.h" */ -GType -gst_event_type_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_EVENT_UNKNOWN, "GST_EVENT_UNKNOWN", "unknown" }, - { GST_EVENT_EOS, "GST_EVENT_EOS", "eos" }, - { GST_EVENT_FLUSH, "GST_EVENT_FLUSH", "flush" }, - { GST_EVENT_EMPTY, "GST_EVENT_EMPTY", "empty" }, - { GST_EVENT_SEEK, "GST_EVENT_SEEK", "seek" }, - { GST_EVENT_DISCONTINUOUS, "GST_EVENT_DISCONTINUOUS", "discontinuous" }, - { GST_EVENT_NEW_MEDIA, "GST_EVENT_NEW_MEDIA", "new-media" }, - { GST_EVENT_INFO, "GST_EVENT_INFO", "info" }, - { GST_EVENT_ERROR, "GST_EVENT_ERROR", "error" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstEventType", values); - } - return etype; -} - -GType -gst_seek_type_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_SEEK_ANY, "GST_SEEK_ANY", "any" }, - { GST_SEEK_TIMEOFFSET_SET, "GST_SEEK_TIMEOFFSET_SET", "timeoffset-set" }, - { GST_SEEK_BYTEOFFSET_SET, "GST_SEEK_BYTEOFFSET_SET", "byteoffset-set" }, - { GST_SEEK_BYTEOFFSET_CUR, "GST_SEEK_BYTEOFFSET_CUR", "byteoffset-cur" }, - { GST_SEEK_BYTEOFFSET_END, "GST_SEEK_BYTEOFFSET_END", "byteoffset-end" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstSeekType", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstobject.h" */ -GType -gst_object_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_DESTROYED, "GST_DESTROYED", "destroyed" }, - { GST_FLOATING, "GST_FLOATING", "floating" }, - { GST_OBJECT_FLAG_LAST, "GST_OBJECT_FLAG_LAST", "object-flag-last" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstObjectFlags", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstpad.h" */ -GType -gst_region_type_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_REGION_VOID, "GST_REGION_VOID", "void" }, - { GST_REGION_OFFSET_LEN, "GST_REGION_OFFSET_LEN", "offset-len" }, - { GST_REGION_TIME_LEN, "GST_REGION_TIME_LEN", "time-len" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstRegionType", values); - } - return etype; -} - -GType -gst_pad_connect_return_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_PAD_CONNECT_REFUSED, "GST_PAD_CONNECT_REFUSED", "refused" }, - { GST_PAD_CONNECT_DELAYED, "GST_PAD_CONNECT_DELAYED", "delayed" }, - { GST_PAD_CONNECT_OK, "GST_PAD_CONNECT_OK", "ok" }, - { GST_PAD_CONNECT_DONE, "GST_PAD_CONNECT_DONE", "done" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstPadConnectReturn", values); - } - return etype; -} - -GType -gst_pad_direction_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_PAD_UNKNOWN, "GST_PAD_UNKNOWN", "unknown" }, - { GST_PAD_SRC, "GST_PAD_SRC", "src" }, - { GST_PAD_SINK, "GST_PAD_SINK", "sink" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstPadDirection", values); - } - return etype; -} - -GType -gst_pad_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_PAD_DISABLED, "GST_PAD_DISABLED", "disabled" }, - { GST_PAD_EOS, "GST_PAD_EOS", "eos" }, - { GST_PAD_FLAG_LAST, "GST_PAD_FLAG_LAST", "flag-last" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstPadFlags", values); - } - return etype; -} - -GType -gst_pad_presence_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_PAD_ALWAYS, "GST_PAD_ALWAYS", "always" }, - { GST_PAD_SOMETIMES, "GST_PAD_SOMETIMES", "sometimes" }, - { GST_PAD_REQUEST, "GST_PAD_REQUEST", "request" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstPadPresence", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstparse.h" */ -GType -gst_parse_error_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_PARSE_ERROR_SYNTAX, "GST_PARSE_ERROR_SYNTAX", "syntax" }, - { GST_PARSE_ERROR_NO_SUCH_ELEMENT, "GST_PARSE_ERROR_NO_SUCH_ELEMENT", "no-such-element" }, - { GST_PARSE_ERROR_NO_SUCH_PROPERTY, "GST_PARSE_ERROR_NO_SUCH_PROPERTY", "no-such-property" }, - { GST_PARSE_ERROR_CONNECT, "GST_PARSE_ERROR_CONNECT", "connect" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstParseError", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstprops.h" */ -GType -gst_props_type_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_PROPS_END_TYPE, "GST_PROPS_END_TYPE", "end-type" }, - { GST_PROPS_INVALID_TYPE, "GST_PROPS_INVALID_TYPE", "invalid-type" }, - { GST_PROPS_INT_TYPE, "GST_PROPS_INT_TYPE", "int-type" }, - { GST_PROPS_FLOAT_TYPE, "GST_PROPS_FLOAT_TYPE", "float-type" }, - { GST_PROPS_FOURCC_TYPE, "GST_PROPS_FOURCC_TYPE", "fourcc-type" }, - { GST_PROPS_BOOL_TYPE, "GST_PROPS_BOOL_TYPE", "bool-type" }, - { GST_PROPS_STRING_TYPE, "GST_PROPS_STRING_TYPE", "string-type" }, - { GST_PROPS_VAR_TYPE, "GST_PROPS_VAR_TYPE", "var-type" }, - { GST_PROPS_LIST_TYPE, "GST_PROPS_LIST_TYPE", "list-type" }, - { GST_PROPS_FLOAT_RANGE_TYPE, "GST_PROPS_FLOAT_RANGE_TYPE", "float-range-type" }, - { GST_PROPS_INT_RANGE_TYPE, "GST_PROPS_INT_RANGE_TYPE", "int-range-type" }, - { GST_PROPS_LAST_TYPE, "GST_PROPS_LAST_TYPE", "last-type" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstPropsType", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstscheduler.h" */ -GType -gst_scheduler_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_SCHEDULER_FLAG_FIXED_CLOCK, "GST_SCHEDULER_FLAG_FIXED_CLOCK", "fixed-clock" }, - { GST_SCHEDULER_FLAG_LAST, "GST_SCHEDULER_FLAG_LAST", "last" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstSchedulerFlags", values); - } - return etype; -} - -GType -gst_scheduler_state_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_SCHEDULER_STATE_NONE, "GST_SCHEDULER_STATE_NONE", "none" }, - { GST_SCHEDULER_STATE_RUNNING, "GST_SCHEDULER_STATE_RUNNING", "running" }, - { GST_SCHEDULER_STATE_STOPPED, "GST_SCHEDULER_STATE_STOPPED", "stopped" }, - { GST_SCHEDULER_STATE_ERROR, "GST_SCHEDULER_STATE_ERROR", "error" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstSchedulerState", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstthread.h" */ -GType -gst_thread_state_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_THREAD_STATE_STARTED, "GST_THREAD_STATE_STARTED", "state-started" }, - { GST_THREAD_STATE_SPINNING, "GST_THREAD_STATE_SPINNING", "state-spinning" }, - { GST_THREAD_STATE_REAPING, "GST_THREAD_STATE_REAPING", "state-reaping" }, - { GST_THREAD_FLAG_LAST, "GST_THREAD_FLAG_LAST", "flag-last" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstThreadState", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gsttimecache.h" */ -GType -gst_time_cache_certainty_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_TIME_CACHE_UNKNOWN, "GST_TIME_CACHE_UNKNOWN", "unknown" }, - { GST_TIME_CACHE_CERTAIN, "GST_TIME_CACHE_CERTAIN", "certain" }, - { GST_TIME_CACHE_FUZZY_LOCATION, "GST_TIME_CACHE_FUZZY_LOCATION", "fuzzy-location" }, - { GST_TIME_CACHE_FUZZY_TIMESTAMP, "GST_TIME_CACHE_FUZZY_TIMESTAMP", "fuzzy-timestamp" }, - { GST_TIME_CACHE_FUZZY, "GST_TIME_CACHE_FUZZY", "fuzzy" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstTimeCacheCertainty", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gsttypes.h" */ -GType -gst_element_state_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GFlagsValue values[] = { - { GST_STATE_VOID_PENDING, "GST_STATE_VOID_PENDING", "void-pending" }, - { GST_STATE_NULL, "GST_STATE_NULL", "null" }, - { GST_STATE_READY, "GST_STATE_READY", "ready" }, - { GST_STATE_PAUSED, "GST_STATE_PAUSED", "paused" }, - { GST_STATE_PLAYING, "GST_STATE_PLAYING", "playing" }, - { 0, NULL, NULL } - }; - etype = g_flags_register_static ("GstElementState", values); - } - return etype; -} - -GType -gst_element_state_return_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_STATE_FAILURE, "GST_STATE_FAILURE", "failure" }, - { GST_STATE_SUCCESS, "GST_STATE_SUCCESS", "success" }, - { GST_STATE_ASYNC, "GST_STATE_ASYNC", "async" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstElementStateReturn", values); - } - return etype; -} - - -/* Generated data ends here */ - diff --git a/gst/tmp-enum-types.h b/gst/tmp-enum-types.h deleted file mode 100644 index 9a57656..0000000 --- a/gst/tmp-enum-types.h +++ /dev/null @@ -1,112 +0,0 @@ - -/* Generated data (by glib-mkenums) */ - -#ifndef __GST_ENUM_TYPES_H__ -#define __GST_ENUM_TYPES_H__ - -#include - -G_BEGIN_DECLS - -/* enumerations from "/usr/include/gst/gstautoplug.h" */ - -GType gst_autoplug_flags_get_type (void); -#define GST_TYPE_AUTOPLUG_FLAGS (gst_autoplug_flags_get_type()) - -/* enumerations from "/usr/include/gst/gstbin.h" */ - -GType gst_bin_flags_get_type (void); -#define GST_TYPE_BIN_FLAGS (gst_bin_flags_get_type()) - -/* enumerations from "/usr/include/gst/gstbuffer.h" */ - -GType gst_buffer_flags_get_type (void); -#define GST_TYPE_BUFFER_FLAGS (gst_buffer_flags_get_type()) - -/* enumerations from "/usr/include/gst/gstclock.h" */ - -GType gst_clock_return_get_type (void); -#define GST_TYPE_CLOCK_RETURN (gst_clock_return_get_type()) - -/* enumerations from "/usr/include/gst/gstcpu.h" */ - -GType gst_cpu_flags_get_type (void); -#define GST_TYPE_CPU_FLAGS (gst_cpu_flags_get_type()) - -/* enumerations from "/usr/include/gst/gstelement.h" */ - -GType gst_element_flags_get_type (void); -#define GST_TYPE_ELEMENT_FLAGS (gst_element_flags_get_type()) - -/* enumerations from "/usr/include/gst/gstevent.h" */ - -GType gst_event_type_get_type (void); -#define GST_TYPE_EVENT_TYPE (gst_event_type_get_type()) - -GType gst_seek_type_get_type (void); -#define GST_TYPE_SEEK_TYPE (gst_seek_type_get_type()) - -/* enumerations from "/usr/include/gst/gstobject.h" */ - -GType gst_object_flags_get_type (void); -#define GST_TYPE_OBJECT_FLAGS (gst_object_flags_get_type()) - -/* enumerations from "/usr/include/gst/gstpad.h" */ - -GType gst_region_type_get_type (void); -#define GST_TYPE_REGION_TYPE (gst_region_type_get_type()) - -GType gst_pad_connect_return_get_type (void); -#define GST_TYPE_PAD_CONNECT_RETURN (gst_pad_connect_return_get_type()) - -GType gst_pad_direction_get_type (void); -#define GST_TYPE_PAD_DIRECTION (gst_pad_direction_get_type()) - -GType gst_pad_flags_get_type (void); -#define GST_TYPE_PAD_FLAGS (gst_pad_flags_get_type()) - -GType gst_pad_presence_get_type (void); -#define GST_TYPE_PAD_PRESENCE (gst_pad_presence_get_type()) - -/* enumerations from "/usr/include/gst/gstparse.h" */ - -GType gst_parse_error_get_type (void); -#define GST_TYPE_PARSE_ERROR (gst_parse_error_get_type()) - -/* enumerations from "/usr/include/gst/gstprops.h" */ - -GType gst_props_type_get_type (void); -#define GST_TYPE_PROPS_TYPE (gst_props_type_get_type()) - -/* enumerations from "/usr/include/gst/gstscheduler.h" */ - -GType gst_scheduler_flags_get_type (void); -#define GST_TYPE_SCHEDULER_FLAGS (gst_scheduler_flags_get_type()) - -GType gst_scheduler_state_get_type (void); -#define GST_TYPE_SCHEDULER_STATE (gst_scheduler_state_get_type()) - -/* enumerations from "/usr/include/gst/gstthread.h" */ - -GType gst_thread_state_get_type (void); -#define GST_TYPE_THREAD_STATE (gst_thread_state_get_type()) - -/* enumerations from "/usr/include/gst/gsttimecache.h" */ - -GType gst_time_cache_certainty_get_type (void); -#define GST_TYPE_TIME_CACHE_CERTAINTY (gst_time_cache_certainty_get_type()) - -/* enumerations from "/usr/include/gst/gsttypes.h" */ - -GType gst_element_state_get_type (void); -#define GST_TYPE_ELEMENT_STATE (gst_element_state_get_type()) - -GType gst_element_state_return_get_type (void); -#define GST_TYPE_ELEMENT_STATE_RETURN (gst_element_state_return_get_type()) - -G_END_DECLS - -#endif /* __GST_ENUM_TYPES_H__ */ - -/* Generated data ends here */ - diff --git a/gstreamer/Makefile.am b/gstreamer/Makefile.am index 0f6f0c2..f7b5256 100644 --- a/gstreamer/Makefile.am +++ b/gstreamer/Makefile.am @@ -14,10 +14,18 @@ _gstreamermodule_la_CFLAGS = $(GST_CFLAGS) _gstreamermodule_la_LIBADD = $(GST_LIBS) _gstreamermodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex initgstreamer nodist__gstreamermodule_la_SOURCES = gstreamer.c -CLEANFILES = gstreamer.c -EXTRA_DIST = gstreamer.defs gstreamer.override +CLEANFILES = gstreamer.c gstreamer-base.defs +EXTRA_DIST = gstreamer-extra.defs gstreamer.override gstreamer.c: gstreamer.defs gstreamer.override +GST_INCLUDES=$(wildcard $(GST_INCLUDEDIR)/gst/*.h) + +gstreamer-base.defs: $(GST_INCLUDES) + $(PYTHON) $(PYGTK_H2DEF) $(GST_INCLUDES) > gstreamer-base.defs + +gstreamer.defs: gstreamer-base.defs gstreamer-extra.defs + cat gstreamer-base.defs gstreamer-extra.defs > gstreamer.defs + .defs.c: (cd $(srcdir) \ && $(PYGTK_CODEGEN) \ @@ -32,21 +40,3 @@ gstreamer.c: gstreamer.defs gstreamer.override # --register $(PYGTK_DEFSDIR)/gtk-types.defs \ # --register $(top_srcdir)/bonobo/bonobo-types.defs \ # --register $(top_srcdir)/bonobo/bonoboui-types.defs \ - -# this should go in core - -enums: - glib-mkenums \ - --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include \n\nG_BEGIN_DECLS\n" \ - --fprod "/* enumerations from \"@filename@\" */\n" \ - --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ - --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \ - /usr/include/gst/*.h > tmp-enum-types.h - - glib-mkenums \ - --fhead "#include " \ - --fprod "\n/* enumerations from \"@filename@\" */" \ - --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \ - --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ - --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \ - /usr/include/gst/*.h > tmp-enum-types.c diff --git a/gstreamer/gstreamer-base.defs b/gstreamer/gstreamer-base.defs deleted file mode 100644 index d273504..0000000 --- a/gstreamer/gstreamer-base.defs +++ /dev/null @@ -1,3669 +0,0 @@ -;; -*- scheme -*- -; object definitions ... -(define-object Object - (in-module "Gst") - (parent "GObject") - (c-name "GstObject") - (gtype-id "GST_TYPE_OBJECT") -) - -(define-object Element - (in-module "Gst") - (parent "GstObject") - (c-name "GstElement") - (gtype-id "GST_TYPE_ELEMENT") -) - -(define-object Bin - (in-module "Gst") - (parent "GstElement") - (c-name "GstBin") - (gtype-id "GST_TYPE_BIN") -) - -(define-object Clock - (in-module "Gst") - (parent "GstObject") - (c-name "GstClock") - (gtype-id "GST_TYPE_CLOCK") -) - -(define-object Autoplug - (in-module "Gst") - (parent "GstObject") - (c-name "GstAutoplug") - (gtype-id "GST_TYPE_AUTOPLUG") -) - -(define-object Pad - (in-module "Gst") - (parent "GstObject") - (c-name "GstPad") - (gtype-id "GST_TYPE_PAD") -) - -(define-object GhostPad - (in-module "Gst") - (parent "GstPad") - (c-name "GstGhostPad") - (gtype-id "GST_TYPE_GHOST_PAD") -) - -(define-object PadTemplate - (in-module "Gst") - (parent "GstObject") - (c-name "GstPadTemplate") - (gtype-id "GST_TYPE_PAD_TEMPLATE") -) - -(define-object Pipeline - (in-module "Gst") - (parent "GstBin") - (c-name "GstPipeline") - (gtype-id "GST_TYPE_PIPELINE") -) - -(define-object PluginFeature - (in-module "Gst") - (parent "GstObject") - (c-name "GstPluginFeature") - (gtype-id "GST_TYPE_PLUGIN_FEATURE") -) - -(define-object ElementFactory - (in-module "Gst") - (parent "GstPluginFeature") - (c-name "GstElementFactory") - (gtype-id "GST_TYPE_ELEMENT_FACTORY") -) - -(define-object AutoplugFactory - (in-module "Gst") - (parent "GstPluginFeature") - (c-name "GstAutoplugFactory") - (gtype-id "GST_TYPE_AUTOPLUG_FACTORY") -) - -(define-object Queue - (in-module "Gst") - (parent "GstElement") - (c-name "GstQueue") - (gtype-id "GST_TYPE_QUEUE") -) - -(define-object RealPad - (in-module "Gst") - (parent "GstPad") - (c-name "GstRealPad") - (gtype-id "GST_TYPE_REAL_PAD") -) - -(define-object Scheduler - (in-module "Gst") - (parent "GstObject") - (c-name "GstScheduler") - (gtype-id "GST_TYPE_SCHEDULER") -) - -(define-object SchedulerFactory - (in-module "Gst") - (parent "GstPluginFeature") - (c-name "GstSchedulerFactory") - (gtype-id "GST_TYPE_SCHEDULER_FACTORY") -) - -(define-object SystemClock - (in-module "Gst") - (parent "GstClock") - (c-name "GstSystemClock") - (gtype-id "GST_TYPE_SYSTEM_CLOCK") -) - -(define-object Thread - (in-module "Gst") - (parent "GstBin") - (c-name "GstThread") - (gtype-id "GST_TYPE_THREAD") -) - -(define-object TimeCache - (in-module "Gst") - (parent "GstObject") - (c-name "GstTimeCache") - (gtype-id "GST_TYPE_TIME_CACHE") -) - -(define-object TypeFactory - (in-module "Gst") - (parent "GstPluginFeature") - (c-name "GstTypeFactory") - (gtype-id "GST_TYPE_TYPE_FACTORY") -) - -(define-object TypeFind - (in-module "Gst") - (parent "GstElement") - (c-name "GstTypeFind") - (gtype-id "GST_TYPE_TYPE_FIND") -) - -(define-object XML - (in-module "Gst") - (parent "GstObject") - (c-name "GstXML") - (gtype-id "GST_TYPE_XML") -) - -;; Enumerations and flags ... - -(define-enum AutoplugFlags - (in-module "Gst") - (c-name "GstAutoplugFlags") - (gtype-id "GST_TYPE_AUTOPLUG_FLAGS") - (values - '("to-caps" "GST_AUTOPLUG_TO_CAPS") - '("to-renderer" "GST_AUTOPLUG_TO_RENDERER") - '("flag-last" "GST_AUTOPLUG_FLAG_LAST") - ) -) - -(define-enum BinFlags - (in-module "Gst") - (c-name "GstBinFlags") - (gtype-id "GST_TYPE_BIN_FLAGS") - (values - '("flag-manager" "GST_BIN_FLAG_MANAGER") - '("self-schedulable" "GST_BIN_SELF_SCHEDULABLE") - '("flag-prefer-cothreads" "GST_BIN_FLAG_PREFER_COTHREADS") - '("flag-fixed-clock" "GST_BIN_FLAG_FIXED_CLOCK") - '("flag-last" "GST_BIN_FLAG_LAST") - ) -) - -(define-enum BufferFlags - (in-module "Gst") - (c-name "GstBufferFlags") - (gtype-id "GST_TYPE_BUFFER_FLAGS") - (values - '("readonly" "GST_BUFFER_READONLY") - '("original" "GST_BUFFER_ORIGINAL") - '("dontfree" "GST_BUFFER_DONTFREE") - ) -) - -(define-enum ClockReturn - (in-module "Gst") - (c-name "GstClockReturn") - (gtype-id "GST_TYPE_CLOCK_RETURN") - (values - '("stopped" "GST_CLOCK_STOPPED") - '("timeout" "GST_CLOCK_TIMEOUT") - '("early" "GST_CLOCK_EARLY") - '("error" "GST_CLOCK_ERROR") - ) -) - -(define-flags CPUFlags - (in-module "Gst") - (c-name "GstCPUFlags") - (gtype-id "GST_TYPE_CPU_FLAGS") - (values - '("mmx" "GST_CPU_FLAG_MMX") - '("sse" "GST_CPU_FLAG_SSE") - '("mmxext" "GST_CPU_FLAG_MMXEXT") - '("3dnow" "GST_CPU_FLAG_3DNOW") - ) -) - -(define-enum ElementFlags - (in-module "Gst") - (c-name "GstElementFlags") - (gtype-id "GST_TYPE_ELEMENT_FLAGS") - (values - '("complex" "GST_ELEMENT_COMPLEX") - '("decoupled" "GST_ELEMENT_DECOUPLED") - '("thread-suggested" "GST_ELEMENT_THREAD_SUGGESTED") - '("no-seek" "GST_ELEMENT_NO_SEEK") - '("infinite-loop" "GST_ELEMENT_INFINITE_LOOP") - '("scheduler-private1" "GST_ELEMENT_SCHEDULER_PRIVATE1") - '("scheduler-private2" "GST_ELEMENT_SCHEDULER_PRIVATE2") - '("new-loopfunc" "GST_ELEMENT_NEW_LOOPFUNC") - '("event-aware" "GST_ELEMENT_EVENT_AWARE") - '("flag-last" "GST_ELEMENT_FLAG_LAST") - ) -) - -(define-enum EventType - (in-module "Gst") - (c-name "GstEventType") - (gtype-id "GST_TYPE_EVENT_TYPE") - (values - '("unknown" "GST_EVENT_UNKNOWN") - '("eos" "GST_EVENT_EOS") - '("flush" "GST_EVENT_FLUSH") - '("empty" "GST_EVENT_EMPTY") - '("seek" "GST_EVENT_SEEK") - '("discontinuous" "GST_EVENT_DISCONTINUOUS") - '("new-media" "GST_EVENT_NEW_MEDIA") - '("info" "GST_EVENT_INFO") - '("error" "GST_EVENT_ERROR") - ) -) - -(define-enum SeekType - (in-module "Gst") - (c-name "GstSeekType") - (gtype-id "GST_TYPE_SEEK_TYPE") - (values - '("any" "GST_SEEK_ANY") - '("timeoffset-set" "GST_SEEK_TIMEOFFSET_SET") - '("byteoffset-set" "GST_SEEK_BYTEOFFSET_SET") - '("byteoffset-cur" "GST_SEEK_BYTEOFFSET_CUR") - '("byteoffset-end" "GST_SEEK_BYTEOFFSET_END") - ) -) - -(define-enum ObjectFlags - (in-module "Gst") - (c-name "GstObjectFlags") - (gtype-id "GST_TYPE_OBJECT_FLAGS") - (values - '("destroyed" "GST_DESTROYED") - '("floating" "GST_FLOATING") - '("object-flag-last" "GST_OBJECT_FLAG_LAST") - ) -) - -(define-enum RegionType - (in-module "Gst") - (c-name "GstRegionType") - (gtype-id "GST_TYPE_REGION_TYPE") - (values - '("void" "GST_REGION_VOID") - '("offset-len" "GST_REGION_OFFSET_LEN") - '("time-len" "GST_REGION_TIME_LEN") - ) -) - -(define-enum PadConnectReturn - (in-module "Gst") - (c-name "GstPadConnectReturn") - (gtype-id "GST_TYPE_PAD_CONNECT_RETURN") - (values - '("refused" "GST_PAD_CONNECT_REFUSED") - '("delayed" "GST_PAD_CONNECT_DELAYED") - '("ok" "GST_PAD_CONNECT_OK") - '("done" "GST_PAD_CONNECT_DONE") - ) -) - -(define-enum PadDirection - (in-module "Gst") - (c-name "GstPadDirection") - (gtype-id "GST_TYPE_PAD_DIRECTION") - (values - '("unknown" "GST_PAD_UNKNOWN") - '("src" "GST_PAD_SRC") - '("sink" "GST_PAD_SINK") - ) -) - -(define-enum PadFlags - (in-module "Gst") - (c-name "GstPadFlags") - (gtype-id "GST_TYPE_PAD_FLAGS") - (values - '("disabled" "GST_PAD_DISABLED") - '("eos" "GST_PAD_EOS") - '("flag-last" "GST_PAD_FLAG_LAST") - ) -) - -(define-enum PadPresence - (in-module "Gst") - (c-name "GstPadPresence") - (gtype-id "GST_TYPE_PAD_PRESENCE") - (values - '("always" "GST_PAD_ALWAYS") - '("sometimes" "GST_PAD_SOMETIMES") - '("request" "GST_PAD_REQUEST") - ) -) - -(define-enum ParseError - (in-module "Gst") - (c-name "GstParseError") - (gtype-id "GST_TYPE_PARSE_ERROR") - (values - '("syntax" "GST_PARSE_ERROR_SYNTAX") - '("no-such-element" "GST_PARSE_ERROR_NO_SUCH_ELEMENT") - '("no-such-property" "GST_PARSE_ERROR_NO_SUCH_PROPERTY") - '("connect" "GST_PARSE_ERROR_CONNECT") - ) -) - -(define-enum PropsType - (in-module "Gst") - (c-name "GstPropsType") - (gtype-id "GST_TYPE_PROPS_TYPE") - (values - '("end-type" "GST_PROPS_END_TYPE") - '("invalid-type" "GST_PROPS_INVALID_TYPE") - '("int-type" "GST_PROPS_INT_TYPE") - '("float-type" "GST_PROPS_FLOAT_TYPE") - '("fourcc-type" "GST_PROPS_FOURCC_TYPE") - '("bool-type" "GST_PROPS_BOOL_TYPE") - '("string-type" "GST_PROPS_STRING_TYPE") - '("var-type" "GST_PROPS_VAR_TYPE") - '("list-type" "GST_PROPS_LIST_TYPE") - '("float-range-type" "GST_PROPS_FLOAT_RANGE_TYPE") - '("int-range-type" "GST_PROPS_INT_RANGE_TYPE") - '("last-type" "GST_PROPS_LAST_TYPE") - ) -) - -(define-enum SchedulerFlags - (in-module "Gst") - (c-name "GstSchedulerFlags") - (gtype-id "GST_TYPE_SCHEDULER_FLAGS") - (values - '("fixed-clock" "GST_SCHEDULER_FLAG_FIXED_CLOCK") - '("last" "GST_SCHEDULER_FLAG_LAST") - ) -) - -(define-enum SchedulerState - (in-module "Gst") - (c-name "GstSchedulerState") - (gtype-id "GST_TYPE_SCHEDULER_STATE") - (values - '("none" "GST_SCHEDULER_STATE_NONE") - '("running" "GST_SCHEDULER_STATE_RUNNING") - '("stopped" "GST_SCHEDULER_STATE_STOPPED") - '("error" "GST_SCHEDULER_STATE_ERROR") - ) -) - -(define-enum ThreadState - (in-module "Gst") - (c-name "GstThreadState") - (gtype-id "GST_TYPE_THREAD_STATE") - (values - '("state-started" "GST_THREAD_STATE_STARTED") - '("state-spinning" "GST_THREAD_STATE_SPINNING") - '("state-reaping" "GST_THREAD_STATE_REAPING") - '("flag-last" "GST_THREAD_FLAG_LAST") - ) -) - -(define-enum TimeCacheCertainty - (in-module "Gst") - (c-name "GstTimeCacheCertainty") - (gtype-id "GST_TYPE_TIME_CACHE_CERTAINTY") - (values - '("unknown" "GST_TIME_CACHE_UNKNOWN") - '("certain" "GST_TIME_CACHE_CERTAIN") - '("fuzzy-location" "GST_TIME_CACHE_FUZZY_LOCATION") - '("fuzzy-timestamp" "GST_TIME_CACHE_FUZZY_TIMESTAMP") - '("fuzzy" "GST_TIME_CACHE_FUZZY") - ) -) - -(define-flags ElementState - (in-module "Gst") - (c-name "GstElementState") - (gtype-id "GST_TYPE_ELEMENT_STATE") - (values - '("void-pending" "GST_STATE_VOID_PENDING") - '("null" "GST_STATE_NULL") - '("ready" "GST_STATE_READY") - '("paused" "GST_STATE_PAUSED") - '("playing" "GST_STATE_PLAYING") - ) -) - -(define-enum ElementStateReturn - (in-module "Gst") - (c-name "GstElementStateReturn") - (gtype-id "GST_TYPE_ELEMENT_STATE_RETURN") - (values - '("failure" "GST_STATE_FAILURE") - '("success" "GST_STATE_SUCCESS") - '("async" "GST_STATE_ASYNC") - ) -) - - -;; From /usr/include/gst/gst.h - -(define-function gst_init_with_popt_table - (c-name "gst_init_with_popt_table") - (return-type "none") - (parameters - '("int*" "argc") - '("char**[]" "argv") - '("const-struct-poptOption*" "popt_options") - ) -) - -(define-function gst_main - (c-name "gst_main") - (return-type "none") -) - -(define-function gst_main_quit - (c-name "gst_main_quit") - (return-type "none") -) - - - -;; From /usr/include/gst/gstautoplug.h - -(define-function gst_autoplug_get_type - (c-name "gst_autoplug_get_type") - (return-type "GType") -) - -(define-method signal_new_object - (of-object "GstAutoplug") - (c-name "gst_autoplug_signal_new_object") - (return-type "none") - (parameters - '("GstObject*" "object") - ) -) - -(define-method to_caps - (of-object "GstAutoplug") - (c-name "gst_autoplug_to_caps") - (return-type "GstElement*") - (parameters - '("GstCaps*" "srccaps") - '("GstCaps*" "sinkcaps") - ) - (varargs #t) -) - -(define-method to_renderers - (of-object "GstAutoplug") - (c-name "gst_autoplug_to_renderers") - (return-type "GstElement*") - (parameters - '("GstCaps*" "srccaps") - '("GstElement*" "target") - ) - (varargs #t) -) - -(define-function gst_autoplug_factory_get_type - (c-name "gst_autoplug_factory_get_type") - (return-type "GType") -) - -(define-function gst_autoplug_factory_new - (c-name "gst_autoplug_factory_new") - (return-type "GstAutoplugFactory*") - (parameters - '("const-gchar*" "name") - '("const-gchar*" "longdesc") - '("GType" "type") - ) -) - -(define-method destroy - (of-object "GstAutoplugFactory") - (c-name "gst_autoplug_factory_destroy") - (return-type "none") -) - -(define-function gst_autoplug_factory_find - (c-name "gst_autoplug_factory_find") - (return-type "GstAutoplugFactory*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_autoplug_factory_get_list - (c-name "gst_autoplug_factory_get_list") - (return-type "GList*") -) - -(define-method create - (of-object "GstAutoplugFactory") - (c-name "gst_autoplug_factory_create") - (return-type "GstAutoplug*") -) - -(define-function gst_autoplug_factory_make - (c-name "gst_autoplug_factory_make") - (return-type "GstAutoplug*") - (parameters - '("const-gchar*" "name") - ) -) - - - -;; From /usr/include/gst/gstbin.h - -(define-function gst_bin_get_type - (c-name "gst_bin_get_type") - (return-type "GType") -) - -(define-function gst_bin_new - (c-name "gst_bin_new") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method add - (of-object "GstBin") - (c-name "gst_bin_add") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method add_many - (of-object "GstBin") - (c-name "gst_bin_add_many") - (return-type "none") - (parameters - '("GstElement*" "element_1") - ) - (varargs #t) -) - -(define-method remove - (of-object "GstBin") - (c-name "gst_bin_remove") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method get_by_name - (of-object "GstBin") - (c-name "gst_bin_get_by_name") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_by_name_recurse_up - (of-object "GstBin") - (c-name "gst_bin_get_by_name_recurse_up") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_list - (of-object "GstBin") - (c-name "gst_bin_get_list") - (return-type "GList*") -) - -(define-method set_state_type - (of-object "GstBin") - (c-name "gst_bin_set_state_type") - (return-type "gboolean") - (parameters - '("GstElementState" "state") - '("GType" "type") - ) -) - -(define-method iterate - (of-object "GstBin") - (c-name "gst_bin_iterate") - (return-type "gboolean") -) - -(define-method use_clock - (of-object "GstBin") - (c-name "gst_bin_use_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method get_clock - (of-object "GstBin") - (c-name "gst_bin_get_clock") - (return-type "GstClock*") -) - -(define-method auto_clock - (of-object "GstBin") - (c-name "gst_bin_auto_clock") - (return-type "none") -) - -(define-method child_state_change - (of-object "GstBin") - (c-name "gst_bin_child_state_change") - (return-type "none") - (parameters - '("GstElementState" "oldstate") - '("GstElementState" "newstate") - '("GstElement*" "child") - ) -) - - - -;; From /usr/include/gst/gstbuffer.h - -(define-function _gst_buffer_initialize - (c-name "_gst_buffer_initialize") - (return-type "none") -) - -(define-function gst_buffer_new - (c-name "gst_buffer_new") - (return-type "GstBuffer*") -) - -(define-function gst_buffer_new_from_pool - (c-name "gst_buffer_new_from_pool") - (return-type "GstBuffer*") - (parameters - '("GstBufferPool*" "pool") - '("guint32" "offset") - '("guint32" "size") - ) -) - -(define-method create_sub - (of-object "GstBuffer") - (c-name "gst_buffer_create_sub") - (return-type "GstBuffer*") - (parameters - '("guint32" "offset") - '("guint32" "size") - ) -) - -(define-method ref - (of-object "GstBuffer") - (c-name "gst_buffer_ref") - (return-type "none") -) - -(define-method ref_by_count - (of-object "GstBuffer") - (c-name "gst_buffer_ref_by_count") - (return-type "none") - (parameters - '("gint" "count") - ) -) - -(define-method unref - (of-object "GstBuffer") - (c-name "gst_buffer_unref") - (return-type "none") -) - -(define-method destroy - (of-object "GstBuffer") - (c-name "gst_buffer_destroy") - (return-type "none") -) - -(define-method copy - (of-object "GstBuffer") - (c-name "gst_buffer_copy") - (return-type "GstBuffer*") -) - -(define-method merge - (of-object "GstBuffer") - (c-name "gst_buffer_merge") - (return-type "GstBuffer*") - (parameters - '("GstBuffer*" "buf2") - ) -) - -(define-method span - (of-object "GstBuffer") - (c-name "gst_buffer_span") - (return-type "GstBuffer*") - (parameters - '("guint32" "offset") - '("GstBuffer*" "buf2") - '("guint32" "len") - ) -) - -(define-method append - (of-object "GstBuffer") - (c-name "gst_buffer_append") - (return-type "GstBuffer*") - (parameters - '("GstBuffer*" "append") - ) -) - -(define-method is_span_fast - (of-object "GstBuffer") - (c-name "gst_buffer_is_span_fast") - (return-type "gboolean") - (parameters - '("GstBuffer*" "buf2") - ) -) - -(define-function gst_buffer_print_stats - (c-name "gst_buffer_print_stats") - (return-type "none") -) - - - -;; From /usr/include/gst/gstbufferpool.h - -(define-function _gst_buffer_pool_initialize - (c-name "_gst_buffer_pool_initialize") - (return-type "none") -) - -(define-function gst_buffer_pool_new - (c-name "gst_buffer_pool_new") - (return-type "GstBufferPool*") -) - -(define-method ref - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_ref") - (return-type "none") -) - -(define-method ref_by_count - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_ref_by_count") - (return-type "none") - (parameters - '("int" "count") - ) -) - -(define-method unref - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_unref") - (return-type "none") -) - -(define-method set_buffer_new_function - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_set_buffer_new_function") - (return-type "none") - (parameters - '("GstBufferPoolBufferNewFunction" "create") - ) -) - -(define-method set_buffer_free_function - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_set_buffer_free_function") - (return-type "none") - (parameters - '("GstBufferFreeFunc" "destroy") - ) -) - -(define-method set_buffer_copy_function - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_set_buffer_copy_function") - (return-type "none") - (parameters - '("GstBufferCopyFunc" "copy") - ) -) - -(define-method set_destroy_hook - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_set_destroy_hook") - (return-type "none") - (parameters - '("GstBufferPoolDestroyHook" "destroy") - ) -) - -(define-method set_user_data - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_set_user_data") - (return-type "none") - (parameters - '("gpointer" "user_data") - ) -) - -(define-method get_user_data - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_get_user_data") - (return-type "gpointer") -) - -(define-method destroy - (of-object "GstBufferPool") - (c-name "gst_buffer_pool_destroy") - (return-type "none") -) - -(define-function gst_buffer_pool_get_default - (c-name "gst_buffer_pool_get_default") - (return-type "GstBufferPool*") - (parameters - '("guint" "buffer_size") - '("guint" "pool_size") - ) -) - - - -;; From /usr/include/gst/gstcaps.h - -(define-function gst_caps_new - (c-name "gst_caps_new") - (return-type "GstCaps*") - (parameters - '("const-gchar*" "name") - '("const-gchar*" "mime") - '("GstProps*" "props") - ) -) - -(define-function gst_caps_new_id - (c-name "gst_caps_new_id") - (return-type "GstCaps*") - (parameters - '("const-gchar*" "name") - '("const-guint16" "id") - '("GstProps*" "props") - ) -) - -(define-method unref - (of-object "GstCaps") - (c-name "gst_caps_unref") - (return-type "GstCaps*") -) - -(define-method ref - (of-object "GstCaps") - (c-name "gst_caps_ref") - (return-type "GstCaps*") -) - -(define-method destroy - (of-object "GstCaps") - (c-name "gst_caps_destroy") - (return-type "none") -) - -(define-method debug - (of-object "GstCaps") - (c-name "gst_caps_debug") - (return-type "none") - (parameters - '("const-gchar*" "label") - ) -) - -(define-method copy - (of-object "GstCaps") - (c-name "gst_caps_copy") - (return-type "GstCaps*") -) - -(define-method copy_first - (of-object "GstCaps") - (c-name "gst_caps_copy_first") - (return-type "GstCaps*") -) - -(define-method copy_on_write - (of-object "GstCaps") - (c-name "gst_caps_copy_on_write") - (return-type "GstCaps*") -) - -(define-method get_name - (of-object "GstCaps") - (c-name "gst_caps_get_name") - (return-type "const-gchar*") -) - -(define-method set_name - (of-object "GstCaps") - (c-name "gst_caps_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_mime - (of-object "GstCaps") - (c-name "gst_caps_get_mime") - (return-type "const-gchar*") -) - -(define-method set_mime - (of-object "GstCaps") - (c-name "gst_caps_set_mime") - (return-type "none") - (parameters - '("const-gchar*" "mime") - ) -) - -(define-method get_type_id - (of-object "GstCaps") - (c-name "gst_caps_get_type_id") - (return-type "guint16") -) - -(define-method set_type_id - (of-object "GstCaps") - (c-name "gst_caps_set_type_id") - (return-type "none") - (parameters - '("guint16" "type_id") - ) -) - -(define-method set_props - (of-object "GstCaps") - (c-name "gst_caps_set_props") - (return-type "GstCaps*") - (parameters - '("GstProps*" "props") - ) -) - -(define-method get_props - (of-object "GstCaps") - (c-name "gst_caps_get_props") - (return-type "GstProps*") -) - -(define-method get_by_name - (of-object "GstCaps") - (c-name "gst_caps_get_by_name") - (return-type "GstCaps*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method chain - (of-object "GstCaps") - (c-name "gst_caps_chain") - (return-type "GstCaps*") - (parameters - ) - (varargs #t) -) - -(define-method append - (of-object "GstCaps") - (c-name "gst_caps_append") - (return-type "GstCaps*") - (parameters - '("GstCaps*" "capstoadd") - ) -) - -(define-method prepend - (of-object "GstCaps") - (c-name "gst_caps_prepend") - (return-type "GstCaps*") - (parameters - '("GstCaps*" "capstoadd") - ) -) - -(define-method check_compatibility - (of-object "GstCaps") - (c-name "gst_caps_check_compatibility") - (return-type "gboolean") - (parameters - '("GstCaps*" "tocaps") - ) -) - -(define-method intersect - (of-object "GstCaps") - (c-name "gst_caps_intersect") - (return-type "GstCaps*") - (parameters - '("GstCaps*" "caps2") - ) -) - -(define-method normalize - (of-object "GstCaps") - (c-name "gst_caps_normalize") - (return-type "GstCaps*") -) - -(define-method save_thyself - (of-object "GstCaps") - (c-name "gst_caps_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-function gst_caps_load_thyself - (c-name "gst_caps_load_thyself") - (return-type "GstCaps*") - (parameters - '("xmlNodePtr" "parent") - ) -) - - - -;; From /usr/include/gst/gstclock.h - -(define-function gst_clock_get_type - (c-name "gst_clock_get_type") - (return-type "GType") -) - -(define-method set_speed - (of-object "GstClock") - (c-name "gst_clock_set_speed") - (return-type "none") - (parameters - '("gdouble" "speed") - ) -) - -(define-method get_speed - (of-object "GstClock") - (c-name "gst_clock_get_speed") - (return-type "gdouble") -) - -(define-method activate - (of-object "GstClock") - (c-name "gst_clock_activate") - (return-type "none") - (parameters - '("gboolean" "active") - ) -) - -(define-method is_active - (of-object "GstClock") - (c-name "gst_clock_is_active") - (return-type "gboolean") -) - -(define-method reset - (of-object "GstClock") - (c-name "gst_clock_reset") - (return-type "none") -) - -(define-method async_supported - (of-object "GstClock") - (c-name "gst_clock_async_supported") - (return-type "gboolean") -) - -(define-method get_time - (of-object "GstClock") - (c-name "gst_clock_get_time") - (return-type "GstClockTime") -) - -(define-method wait - (of-object "GstClock") - (c-name "gst_clock_wait") - (return-type "GstClockReturn") - (parameters - '("GstClockTime" "time") - ) -) - -(define-method wait_async - (of-object "GstClock") - (c-name "gst_clock_wait_async") - (return-type "GstClockID") - (parameters - '("GstClockTime" "time") - '("GstClockCallback" "func") - '("gpointer" "user_data") - ) -) - -(define-method cancel_wait_async - (of-object "GstClock") - (c-name "gst_clock_cancel_wait_async") - (return-type "none") - (parameters - '("GstClockID" "id") - ) -) - -(define-method notify_async - (of-object "GstClock") - (c-name "gst_clock_notify_async") - (return-type "GstClockID") - (parameters - '("GstClockTime" "interval") - '("GstClockCallback" "func") - '("gpointer" "user_data") - ) -) - -(define-method remove_notify_async - (of-object "GstClock") - (c-name "gst_clock_remove_notify_async") - (return-type "none") - (parameters - '("GstClockID" "id") - ) -) - -(define-method wait_id - (of-object "GstClock") - (c-name "gst_clock_wait_id") - (return-type "GstClockReturn") - (parameters - '("GstClockID" "id") - ) -) - -(define-method get_next_id - (of-object "GstClock") - (c-name "gst_clock_get_next_id") - (return-type "GstClockID") -) - -(define-method unlock_id - (of-object "GstClock") - (c-name "gst_clock_unlock_id") - (return-type "none") - (parameters - '("GstClockID" "id") - ) -) - -(define-method get_time - (of-object "GstClockID") - (c-name "gst_clock_id_get_time") - (return-type "GstClockTime") -) - -(define-method set_resolution - (of-object "GstClock") - (c-name "gst_clock_set_resolution") - (return-type "none") - (parameters - '("guint64" "resolution") - ) -) - -(define-method get_resolution - (of-object "GstClock") - (c-name "gst_clock_get_resolution") - (return-type "guint64") -) - - - -;; From /usr/include/gst/gstconfig.h - - - -;; From /usr/include/gst/gstcpu.h - -(define-function gst_cpu_get_flags - (c-name "gst_cpu_get_flags") - (return-type "GstCPUFlags") -) - - - -;; From /usr/include/gst/gstdata.h - - - -;; From /usr/include/gst/gstelement.h - -(define-method add_pad_template - (of-object "GstElementClass") - (c-name "gst_element_class_add_pad_template") - (return-type "none") - (parameters - '("GstPadTemplate*" "templ") - ) -) - -(define-function gst_element_get_type - (c-name "gst_element_get_type") - (return-type "GType") -) - -(define-method set_loop_function - (of-object "GstElement") - (c-name "gst_element_set_loop_function") - (return-type "none") - (parameters - '("GstElementLoopFunction" "loop") - ) -) - -(define-method set_name - (of-object "GstElement") - (c-name "gst_element_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_name - (of-object "GstElement") - (c-name "gst_element_get_name") - (return-type "const-gchar*") -) - -(define-method set_parent - (of-object "GstElement") - (c-name "gst_element_set_parent") - (return-type "none") - (parameters - '("GstObject*" "parent") - ) -) - -(define-method get_parent - (of-object "GstElement") - (c-name "gst_element_get_parent") - (return-type "GstObject*") -) - -(define-method get_clock - (of-object "GstElement") - (c-name "gst_element_get_clock") - (return-type "GstClock*") -) - -(define-method set_clock - (of-object "GstElement") - (c-name "gst_element_set_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method clock_wait - (of-object "GstElement") - (c-name "gst_element_clock_wait") - (return-type "GstClockReturn") - (parameters - '("GstClock*" "clock") - '("GstClockTime" "time") - ) -) - -(define-method yield - (of-object "GstElement") - (c-name "gst_element_yield") - (return-type "none") -) - -(define-method interrupt - (of-object "GstElement") - (c-name "gst_element_interrupt") - (return-type "gboolean") -) - -(define-method set_sched - (of-object "GstElement") - (c-name "gst_element_set_sched") - (return-type "none") - (parameters - '("GstScheduler*" "sched") - ) -) - -(define-method get_sched - (of-object "GstElement") - (c-name "gst_element_get_sched") - (return-type "GstScheduler*") -) - -(define-method add_pad - (of-object "GstElement") - (c-name "gst_element_add_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method remove_pad - (of-object "GstElement") - (c-name "gst_element_remove_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method add_ghost_pad - (of-object "GstElement") - (c-name "gst_element_add_ghost_pad") - (return-type "GstPad*") - (parameters - '("GstPad*" "pad") - '("gchar*" "name") - ) -) - -(define-method remove_ghost_pad - (of-object "GstElement") - (c-name "gst_element_remove_ghost_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method get_pad - (of-object "GstElement") - (c-name "gst_element_get_pad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_static_pad - (of-object "GstElement") - (c-name "gst_element_get_static_pad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_request_pad - (of-object "GstElement") - (c-name "gst_element_get_request_pad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_pad_list - (of-object "GstElement") - (c-name "gst_element_get_pad_list") - (return-type "GList*") -) - -(define-method get_compatible_pad - (of-object "GstElement") - (c-name "gst_element_get_compatible_pad") - (return-type "GstPad*") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method get_compatible_pad_filtered - (of-object "GstElement") - (c-name "gst_element_get_compatible_pad_filtered") - (return-type "GstPad*") - (parameters - '("GstPad*" "pad") - '("GstCaps*" "filtercaps") - ) -) - -(define-method get_pad_template - (of-object "GstElement") - (c-name "gst_element_get_pad_template") - (return-type "GstPadTemplate*") - (parameters - '("const-guchar*" "name") - ) -) - -(define-method get_pad_template_list - (of-object "GstElement") - (c-name "gst_element_get_pad_template_list") - (return-type "GList*") -) - -(define-method get_compatible_pad_template - (of-object "GstElement") - (c-name "gst_element_get_compatible_pad_template") - (return-type "GstPadTemplate*") - (parameters - '("GstPadTemplate*" "compattempl") - ) -) - -(define-method connect - (of-object "GstElement") - (c-name "gst_element_connect") - (return-type "gboolean") - (parameters - '("GstElement*" "dest") - ) -) - -(define-method connect_many - (of-object "GstElement") - (c-name "gst_element_connect_many") - (return-type "gboolean") - (parameters - '("GstElement*" "element_2") - ) - (varargs #t) -) - -(define-method connect_filtered - (of-object "GstElement") - (c-name "gst_element_connect_filtered") - (return-type "gboolean") - (parameters - '("GstElement*" "dest") - '("GstCaps*" "filtercaps") - ) -) - -(define-method disconnect - (of-object "GstElement") - (c-name "gst_element_disconnect") - (return-type "none") - (parameters - '("GstElement*" "dest") - ) -) - -(define-method disconnect_many - (of-object "GstElement") - (c-name "gst_element_disconnect_many") - (return-type "none") - (parameters - '("GstElement*" "element_2") - ) - (varargs #t) -) - -(define-method connect_pads - (of-object "GstElement") - (c-name "gst_element_connect_pads") - (return-type "gboolean") - (parameters - '("const-gchar*" "srcpadname") - '("GstElement*" "dest") - '("const-gchar*" "destpadname") - ) -) - -(define-method connect_pads_filtered - (of-object "GstElement") - (c-name "gst_element_connect_pads_filtered") - (return-type "gboolean") - (parameters - '("const-gchar*" "srcpadname") - '("GstElement*" "dest") - '("const-gchar*" "destpadname") - '("GstCaps*" "filtercaps") - ) -) - -(define-method disconnect_pads - (of-object "GstElement") - (c-name "gst_element_disconnect_pads") - (return-type "none") - (parameters - '("const-gchar*" "srcpadname") - '("GstElement*" "dest") - '("const-gchar*" "destpadname") - ) -) - -(define-method set_eos - (of-object "GstElement") - (c-name "gst_element_set_eos") - (return-type "none") -) - -(define-method error - (of-object "GstElement") - (c-name "gst_element_error") - (return-type "none") - (parameters - '("const-gchar*" "error") - ) - (varargs #t) -) - -(define-method get_state - (of-object "GstElement") - (c-name "gst_element_get_state") - (return-type "GstElementState") -) - -(define-method set_state - (of-object "GstElement") - (c-name "gst_element_set_state") - (return-type "gint") - (parameters - '("GstElementState" "state") - ) -) - -(define-method wait_state_change - (of-object "GstElement") - (c-name "gst_element_wait_state_change") - (return-type "none") -) - -(define-method name - (of-object "GstElementState") - (c-name "gst_element_statename") - (return-type "const-gchar*") -) - -(define-method get_factory - (of-object "GstElement") - (c-name "gst_element_get_factory") - (return-type "GstElementFactory*") -) - -(define-method install_std_props - (of-object "GstElementClass") - (c-name "gst_element_class_install_std_props") - (return-type "none") - (parameters - '("const-char*" "first_name") - ) - (varargs #t) -) - -(define-method get_managing_bin - (of-object "GstElement") - (c-name "gst_element_get_managing_bin") - (return-type "GstBin*") -) - -(define-function gst_element_factory_get_type - (c-name "gst_element_factory_get_type") - (return-type "GType") -) - -(define-function gst_element_factory_new - (c-name "gst_element_factory_new") - (return-type "GstElementFactory*") - (parameters - '("const-gchar*" "name") - '("GType" "type") - '("GstElementDetails*" "details") - ) -) - -(define-function gst_element_factory_find - (c-name "gst_element_factory_find") - (return-type "GstElementFactory*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_element_factory_get_list - (c-name "gst_element_factory_get_list") - (return-type "const-GList*") -) - -(define-method add_pad_template - (of-object "GstElementFactory") - (c-name "gst_element_factory_add_pad_template") - (return-type "none") - (parameters - '("GstPadTemplate*" "templ") - ) -) - -(define-method can_src_caps - (of-object "GstElementFactory") - (c-name "gst_element_factory_can_src_caps") - (return-type "gboolean") - (parameters - '("GstCaps*" "caps") - ) -) - -(define-method can_sink_caps - (of-object "GstElementFactory") - (c-name "gst_element_factory_can_sink_caps") - (return-type "gboolean") - (parameters - '("GstCaps*" "caps") - ) -) - -(define-method create - (of-object "GstElementFactory") - (c-name "gst_element_factory_create") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_element_factory_make - (c-name "gst_element_factory_make") - (return-type "GstElement*") - (parameters - '("const-gchar*" "factoryname") - '("const-gchar*" "name") - ) -) - - - -;; From /usr/include/gst/gstevent.h - -(define-function _gst_event_initialize - (c-name "_gst_event_initialize") - (return-type "none") -) - -(define-function gst_event_new - (c-name "gst_event_new") - (return-type "GstEvent*") - (parameters - '("GstEventType" "type") - ) -) - -(define-method copy - (of-object "GstEvent") - (c-name "gst_event_copy") - (return-type "GstEvent*") -) - -(define-method free - (of-object "GstEvent") - (c-name "gst_event_free") - (return-type "none") -) - -(define-function gst_event_new_seek - (c-name "gst_event_new_seek") - (return-type "GstEvent*") - (parameters - '("GstSeekType" "type") - '("gint64" "offset") - '("gboolean" "flush") - ) -) - -(define-function gst_event_new_info - (c-name "gst_event_new_info") - (return-type "GstEvent*") - (parameters - '("const-gchar*" "firstname") - ) - (varargs #t) -) - - - -;; From /usr/include/gst/gstextratypes.h - - - -;; From /usr/include/gst/gstinfo.h - -(define-function gst_get_category_name - (c-name "gst_get_category_name") - (return-type "const-gchar*") - (parameters - '("gint" "category") - ) -) - -(define-function gst_default_debug_handler - (c-name "gst_default_debug_handler") - (return-type "none") - (parameters - '("gint" "category") - '("gboolean" "incore") - '("const-gchar*" "file") - '("const-gchar*" "function") - '("gint" "line") - '("const-gchar*" "debug_string") - '("void*" "element") - '("gchar*" "string") - ) -) - -(define-function gst_info_get_categories - (c-name "gst_info_get_categories") - (return-type "guint32") -) - -(define-function gst_info_enable_category - (c-name "gst_info_enable_category") - (return-type "none") - (parameters - '("gint" "category") - ) -) - -(define-function gst_info_disable_category - (c-name "gst_info_disable_category") - (return-type "none") - (parameters - '("gint" "category") - ) -) - -(define-function gst_debug_set_categories - (c-name "gst_debug_set_categories") - (return-type "none") - (parameters - '("guint32" "categories") - ) -) - -(define-function gst_debug_get_categories - (c-name "gst_debug_get_categories") - (return-type "guint32") -) - -(define-function gst_debug_enable_category - (c-name "gst_debug_enable_category") - (return-type "none") - (parameters - '("gint" "category") - ) -) - -(define-function gst_debug_disable_category - (c-name "gst_debug_disable_category") - (return-type "none") - (parameters - '("gint" "category") - ) -) - -(define-function gst_default_error_handler - (c-name "gst_default_error_handler") - (return-type "none") - (parameters - '("gchar*" "file") - '("gchar*" "function") - '("gint" "line") - '("gchar*" "debug_string") - '("void*" "element") - '("void*" "object") - '("gchar*" "string") - ) -) - -(define-function gst_debug_print_stack_trace - (c-name "gst_debug_print_stack_trace") - (return-type "none") -) - - - -;; From /usr/include/gst/gstlog.h - - - -;; From /usr/include/gst/gstmarshal.h - - - -;; From /usr/include/gst/gstobject.h - -(define-function gst_object_get_type - (c-name "gst_object_get_type") - (return-type "GType") -) - -(define-method set_name - (of-object "GstObject") - (c-name "gst_object_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_name - (of-object "GstObject") - (c-name "gst_object_get_name") - (return-type "const-gchar*") -) - -(define-method set_parent - (of-object "GstObject") - (c-name "gst_object_set_parent") - (return-type "none") - (parameters - '("GstObject*" "parent") - ) -) - -(define-method get_parent - (of-object "GstObject") - (c-name "gst_object_get_parent") - (return-type "GstObject*") -) - -(define-method unparent - (of-object "GstObject") - (c-name "gst_object_unparent") - (return-type "none") -) - -(define-function gst_object_check_uniqueness - (c-name "gst_object_check_uniqueness") - (return-type "gboolean") - (parameters - '("GList*" "list") - '("const-gchar*" "name") - ) -) - -(define-method save_thyself - (of-object "GstObject") - (c-name "gst_object_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-method restore_thyself - (of-object "GstObject") - (c-name "gst_object_restore_thyself") - (return-type "none") - (parameters - '("xmlNodePtr" "self") - ) -) - -(define-method ref - (of-object "GstObject") - (c-name "gst_object_ref") - (return-type "GstObject*") -) - -(define-method unref - (of-object "GstObject") - (c-name "gst_object_unref") - (return-type "none") -) - -(define-method sink - (of-object "GstObject") - (c-name "gst_object_sink") - (return-type "none") -) - -(define-method destroy - (of-object "GstObject") - (c-name "gst_object_destroy") - (return-type "none") -) - -(define-method get_path_string - (of-object "GstObject") - (c-name "gst_object_get_path_string") - (return-type "gchar*") -) - -(define-function gst_class_signal_connect - (c-name "gst_class_signal_connect") - (return-type "guint") - (parameters - '("GstObjectClass*" "klass") - '("const-gchar*" "name") - '("gpointer" "func") - '("gpointer" "func_data") - ) -) - -(define-function gst_class_signal_emit_by_name - (c-name "gst_class_signal_emit_by_name") - (return-type "none") - (parameters - '("GstObject*" "object") - '("const-gchar*" "name") - '("xmlNodePtr" "self") - ) -) - - - -;; From /usr/include/gst/gstpad.h - -(define-function gst_real_pad_get_type - (c-name "gst_real_pad_get_type") - (return-type "GType") -) - -(define-function gst_ghost_pad_get_type - (c-name "gst_ghost_pad_get_type") - (return-type "GType") -) - -(define-function gst_pad_new - (c-name "gst_pad_new") - (return-type "GstPad*") - (parameters - '("gchar*" "name") - '("GstPadDirection" "direction") - ) -) - -(define-function gst_pad_new_from_template - (c-name "gst_pad_new_from_template") - (return-type "GstPad*") - (parameters - '("GstPadTemplate*" "templ") - '("gchar*" "name") - ) -) - -(define-method get_direction - (of-object "GstPad") - (c-name "gst_pad_get_direction") - (return-type "GstPadDirection") -) - -(define-method set_chain_function - (of-object "GstPad") - (c-name "gst_pad_set_chain_function") - (return-type "none") - (parameters - '("GstPadChainFunction" "chain") - ) -) - -(define-method set_get_function - (of-object "GstPad") - (c-name "gst_pad_set_get_function") - (return-type "none") - (parameters - '("GstPadGetFunction" "get") - ) -) - -(define-method set_event_function - (of-object "GstPad") - (c-name "gst_pad_set_event_function") - (return-type "none") - (parameters - '("GstPadEventFunction" "event") - ) -) - -(define-method set_getregion_function - (of-object "GstPad") - (c-name "gst_pad_set_getregion_function") - (return-type "none") - (parameters - '("GstPadGetRegionFunction" "getregion") - ) -) - -(define-method set_connect_function - (of-object "GstPad") - (c-name "gst_pad_set_connect_function") - (return-type "none") - (parameters - '("GstPadConnectFunction" "connect") - ) -) - -(define-method set_getcaps_function - (of-object "GstPad") - (c-name "gst_pad_set_getcaps_function") - (return-type "none") - (parameters - '("GstPadGetCapsFunction" "getcaps") - ) -) - -(define-method set_bufferpool_function - (of-object "GstPad") - (c-name "gst_pad_set_bufferpool_function") - (return-type "none") - (parameters - '("GstPadBufferPoolFunction" "bufpool") - ) -) - -(define-method get_caps - (of-object "GstPad") - (c-name "gst_pad_get_caps") - (return-type "GstCaps*") -) - -(define-method get_pad_template_caps - (of-object "GstPad") - (c-name "gst_pad_get_pad_template_caps") - (return-type "GstCaps*") -) - -(define-method try_set_caps - (of-object "GstPad") - (c-name "gst_pad_try_set_caps") - (return-type "gboolean") - (parameters - '("GstCaps*" "caps") - ) -) - -(define-method check_compatibility - (of-object "GstPad") - (c-name "gst_pad_check_compatibility") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method set_element_private - (of-object "GstPad") - (c-name "gst_pad_set_element_private") - (return-type "none") - (parameters - '("gpointer" "priv") - ) -) - -(define-method get_element_private - (of-object "GstPad") - (c-name "gst_pad_get_element_private") - (return-type "gpointer") -) - -(define-method set_name - (of-object "GstPad") - (c-name "gst_pad_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_name - (of-object "GstPad") - (c-name "gst_pad_get_name") - (return-type "const-gchar*") -) - -(define-method set_parent - (of-object "GstPad") - (c-name "gst_pad_set_parent") - (return-type "none") - (parameters - '("GstObject*" "parent") - ) -) - -(define-method get_parent - (of-object "GstPad") - (c-name "gst_pad_get_parent") - (return-type "GstElement*") -) - -(define-method get_real_parent - (of-object "GstPad") - (c-name "gst_pad_get_real_parent") - (return-type "GstElement*") -) - -(define-method set_sched - (of-object "GstPad") - (c-name "gst_pad_set_sched") - (return-type "none") - (parameters - '("GstScheduler*" "sched") - ) -) - -(define-method get_sched - (of-object "GstPad") - (c-name "gst_pad_get_sched") - (return-type "GstScheduler*") -) - -(define-method unset_sched - (of-object "GstPad") - (c-name "gst_pad_unset_sched") - (return-type "none") -) - -(define-method add_ghost_pad - (of-object "GstPad") - (c-name "gst_pad_add_ghost_pad") - (return-type "none") - (parameters - '("GstPad*" "ghostpad") - ) -) - -(define-method remove_ghost_pad - (of-object "GstPad") - (c-name "gst_pad_remove_ghost_pad") - (return-type "none") - (parameters - '("GstPad*" "ghostpad") - ) -) - -(define-method get_ghost_pad_list - (of-object "GstPad") - (c-name "gst_pad_get_ghost_pad_list") - (return-type "GList*") -) - -(define-method get_pad_template - (of-object "GstPad") - (c-name "gst_pad_get_pad_template") - (return-type "GstPadTemplate*") -) - -(define-method get_peer - (of-object "GstPad") - (c-name "gst_pad_get_peer") - (return-type "GstPad*") -) - -(define-method get_bufferpool - (of-object "GstPad") - (c-name "gst_pad_get_bufferpool") - (return-type "GstBufferPool*") -) - -(define-method can_connect - (of-object "GstPad") - (c-name "gst_pad_can_connect") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method can_connect_filtered - (of-object "GstPad") - (c-name "gst_pad_can_connect_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("GstCaps*" "filtercaps") - ) -) - -(define-method connect - (of-object "GstPad") - (c-name "gst_pad_connect") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method connect_filtered - (of-object "GstPad") - (c-name "gst_pad_connect_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("GstCaps*" "filtercaps") - ) -) - -(define-method disconnect - (of-object "GstPad") - (c-name "gst_pad_disconnect") - (return-type "none") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method proxy_connect - (of-object "GstPad") - (c-name "gst_pad_proxy_connect") - (return-type "GstPadConnectReturn") - (parameters - '("GstCaps*" "caps") - ) -) - -(define-method reconnect_filtered - (of-object "GstPad") - (c-name "gst_pad_reconnect_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("GstCaps*" "filtercaps") - ) -) - -(define-method perform_negotiate - (of-object "GstPad") - (c-name "gst_pad_perform_negotiate") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method try_reconnect_filtered - (of-object "GstPad") - (c-name "gst_pad_try_reconnect_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("GstCaps*" "filtercaps") - ) -) - -(define-method get_allowed_caps - (of-object "GstPad") - (c-name "gst_pad_get_allowed_caps") - (return-type "GstCaps*") -) - -(define-method recalc_allowed_caps - (of-object "GstPad") - (c-name "gst_pad_recalc_allowed_caps") - (return-type "gboolean") -) - -(define-method push - (of-object "GstPad") - (c-name "gst_pad_push") - (return-type "none") - (parameters - '("GstBuffer*" "buf") - ) -) - -(define-method pullregion - (of-object "GstPad") - (c-name "gst_pad_pullregion") - (return-type "GstBuffer*") - (parameters - '("GstRegionType" "type") - '("guint64" "offset") - '("guint64" "len") - ) -) - -(define-method event_default - (of-object "GstPad") - (c-name "gst_pad_event_default") - (return-type "none") - (parameters - '("GstEvent*" "event") - ) -) - -(define-method peek - (of-object "GstPad") - (c-name "gst_pad_peek") - (return-type "GstBuffer*") -) - -(define-function gst_pad_select - (c-name "gst_pad_select") - (return-type "GstPad*") - (parameters - '("GList*" "padlist") - ) -) - -(define-method selectv - (of-object "GstPad") - (c-name "gst_pad_selectv") - (return-type "GstPad*") - (parameters - ) - (varargs #t) -) - -(define-function gst_pad_load_and_connect - (c-name "gst_pad_load_and_connect") - (return-type "none") - (parameters - '("xmlNodePtr" "self") - '("GstObject*" "parent") - ) -) - -(define-function gst_ghost_pad_new - (c-name "gst_ghost_pad_new") - (return-type "GstPad*") - (parameters - '("gchar*" "name") - '("GstPad*" "pad") - ) -) - -(define-function gst_pad_template_get_type - (c-name "gst_pad_template_get_type") - (return-type "GType") -) - -(define-function gst_pad_template_new - (c-name "gst_pad_template_new") - (return-type "GstPadTemplate*") - (parameters - '("gchar*" "name_template") - '("GstPadDirection" "direction") - '("GstPadPresence" "presence") - '("GstCaps*" "caps") - ) - (varargs #t) -) - -(define-method get_caps - (of-object "GstPadTemplate") - (c-name "gst_pad_template_get_caps") - (return-type "GstCaps*") -) - -(define-method get_caps_by_name - (of-object "GstPadTemplate") - (c-name "gst_pad_template_get_caps_by_name") - (return-type "GstCaps*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method save_thyself - (of-object "GstPadTemplate") - (c-name "gst_pad_template_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-function gst_pad_template_load_thyself - (c-name "gst_pad_template_load_thyself") - (return-type "GstPadTemplate*") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-method ghost_save_thyself - (of-object "GstPad") - (c-name "gst_pad_ghost_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("GstElement*" "bin") - '("xmlNodePtr" "parent") - ) -) - - - -;; From /usr/include/gst/gstparse.h - -(define-function gst_parse_launch - (c-name "gst_parse_launch") - (return-type "GstBin*") - (parameters - '("const-gchar*" "pipeline_description") - '("GError**" "error") - ) -) - -(define-function gst_parse_launchv - (c-name "gst_parse_launchv") - (return-type "GstBin*") - (parameters - '("const-gchar**" "argv") - '("GError**" "error") - ) -) - - - -;; From /usr/include/gst/gstpipeline.h - -(define-function gst_pipeline_get_type - (c-name "gst_pipeline_get_type") - (return-type "GType") -) - -(define-function gst_pipeline_new - (c-name "gst_pipeline_new") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - - - -;; From /usr/include/gst/gstplugin.h - -(define-function _gst_plugin_register_static - (c-name "_gst_plugin_register_static") - (return-type "none") - (parameters - '("GstPluginDesc*" "desc") - ) -) - -(define-function gst_plugin_add_path - (c-name "gst_plugin_add_path") - (return-type "none") - (parameters - '("const-gchar*" "path") - ) -) - -(define-method get_name - (of-object "GstPlugin") - (c-name "gst_plugin_get_name") - (return-type "const-gchar*") -) - -(define-method set_name - (of-object "GstPlugin") - (c-name "gst_plugin_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_longname - (of-object "GstPlugin") - (c-name "gst_plugin_get_longname") - (return-type "const-gchar*") -) - -(define-method set_longname - (of-object "GstPlugin") - (c-name "gst_plugin_set_longname") - (return-type "none") - (parameters - '("const-gchar*" "longname") - ) -) - -(define-method get_filename - (of-object "GstPlugin") - (c-name "gst_plugin_get_filename") - (return-type "const-gchar*") -) - -(define-method is_loaded - (of-object "GstPlugin") - (c-name "gst_plugin_is_loaded") - (return-type "gboolean") -) - -(define-method get_feature_list - (of-object "GstPlugin") - (c-name "gst_plugin_get_feature_list") - (return-type "GList*") -) - -(define-function gst_plugin_load_all - (c-name "gst_plugin_load_all") - (return-type "none") -) - -(define-function gst_plugin_unload_all - (c-name "gst_plugin_unload_all") - (return-type "none") -) - -(define-function gst_plugin_load - (c-name "gst_plugin_load") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_plugin_load_absolute - (c-name "gst_plugin_load_absolute") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_library_load - (c-name "gst_library_load") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method load_plugin - (of-object "GstPlugin") - (c-name "gst_plugin_load_plugin") - (return-type "gboolean") -) - -(define-method add_feature - (of-object "GstPlugin") - (c-name "gst_plugin_add_feature") - (return-type "none") - (parameters - '("GstPluginFeature*" "feature") - ) -) - -(define-function gst_plugin_find - (c-name "gst_plugin_find") - (return-type "GstPlugin*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_plugin_get_list - (c-name "gst_plugin_get_list") - (return-type "GList*") -) - -(define-function gst_plugin_save_thyself - (c-name "gst_plugin_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-function gst_plugin_load_thyself - (c-name "gst_plugin_load_thyself") - (return-type "none") - (parameters - '("xmlNodePtr" "parent") - ) -) - - - -;; From /usr/include/gst/gstpluginfeature.h - -(define-function gst_plugin_feature_get_type - (c-name "gst_plugin_feature_get_type") - (return-type "GType") -) - -(define-method ensure_loaded - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_ensure_loaded") - (return-type "gboolean") -) - -(define-method unload_thyself - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_unload_thyself") - (return-type "none") -) - - - -;; From /usr/include/gst/gstprops.h - -(define-function _gst_props_initialize - (c-name "_gst_props_initialize") - (return-type "none") -) - -(define-function gst_props_new - (c-name "gst_props_new") - (return-type "GstProps*") - (parameters - '("const-gchar*" "firstname") - ) - (varargs #t) -) - -(define-function gst_props_newv - (c-name "gst_props_newv") - (return-type "GstProps*") - (parameters - '("const-gchar*" "firstname") - '("va_list" "var_args") - ) -) - -(define-method unref - (of-object "GstProps") - (c-name "gst_props_unref") - (return-type "none") -) - -(define-method ref - (of-object "GstProps") - (c-name "gst_props_ref") - (return-type "none") -) - -(define-method destroy - (of-object "GstProps") - (c-name "gst_props_destroy") - (return-type "none") -) - -(define-method debug - (of-object "GstProps") - (c-name "gst_props_debug") - (return-type "none") -) - -(define-method copy - (of-object "GstProps") - (c-name "gst_props_copy") - (return-type "GstProps*") -) - -(define-method copy_on_write - (of-object "GstProps") - (c-name "gst_props_copy_on_write") - (return-type "GstProps*") -) - -(define-method merge - (of-object "GstProps") - (c-name "gst_props_merge") - (return-type "GstProps*") - (parameters - '("GstProps*" "tomerge") - ) -) - -(define-method check_compatibility - (of-object "GstProps") - (c-name "gst_props_check_compatibility") - (return-type "gboolean") - (parameters - '("GstProps*" "toprops") - ) -) - -(define-method intersect - (of-object "GstProps") - (c-name "gst_props_intersect") - (return-type "GstProps*") - (parameters - '("GstProps*" "props2") - ) -) - -(define-method normalize - (of-object "GstProps") - (c-name "gst_props_normalize") - (return-type "GList*") -) - -(define-method set - (of-object "GstProps") - (c-name "gst_props_set") - (return-type "GstProps*") - (parameters - '("const-gchar*" "name") - ) - (varargs #t) -) - -(define-method get - (of-object "GstProps") - (c-name "gst_props_get") - (return-type "gboolean") - (parameters - '("gchar*" "first_name") - ) - (varargs #t) -) - -(define-method has_property - (of-object "GstProps") - (c-name "gst_props_has_property") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method has_property_typed - (of-object "GstProps") - (c-name "gst_props_has_property_typed") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - '("GstPropsType" "type") - ) -) - -(define-method has_fixed_property - (of-object "GstProps") - (c-name "gst_props_has_fixed_property") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_entry - (of-object "GstProps") - (c-name "gst_props_get_entry") - (return-type "const-GstPropsEntry*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_type - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_type") - (return-type "GstPropsType") -) - -(define-method get_name - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_name") - (return-type "const-gchar*") -) - -(define-method is_fixed - (of-object "GstPropsEntry") - (c-name "gst_props_entry_is_fixed") - (return-type "gboolean") -) - -(define-method get - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get") - (return-type "gboolean") - (parameters - ) - (varargs #t) -) - -(define-method get_int - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_int") - (return-type "gboolean") - (parameters - '("gint*" "val") - ) -) - -(define-method get_float - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_float") - (return-type "gboolean") - (parameters - '("gfloat*" "val") - ) -) - -(define-method get_fourcc_int - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_fourcc_int") - (return-type "gboolean") - (parameters - '("guint32*" "val") - ) -) - -(define-method get_boolean - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_boolean") - (return-type "gboolean") - (parameters - '("gboolean*" "val") - ) -) - -(define-method get_string - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_string") - (return-type "gboolean") - (parameters - '("const-gchar**" "val") - ) -) - -(define-method get_int_range - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_int_range") - (return-type "gboolean") - (parameters - '("gint*" "min") - '("gint*" "max") - ) -) - -(define-method get_float_range - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_float_range") - (return-type "gboolean") - (parameters - '("gfloat*" "min") - '("gfloat*" "max") - ) -) - -(define-method get_list - (of-object "GstPropsEntry") - (c-name "gst_props_entry_get_list") - (return-type "gboolean") - (parameters - '("const-GList**" "val") - ) -) - -(define-method save_thyself - (of-object "GstProps") - (c-name "gst_props_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-function gst_props_load_thyself - (c-name "gst_props_load_thyself") - (return-type "GstProps*") - (parameters - '("xmlNodePtr" "parent") - ) -) - - - -;; From /usr/include/gst/gstqueue.h - -(define-function gst_queue_get_type - (c-name "gst_queue_get_type") - (return-type "GType") -) - - - -;; From /usr/include/gst/gstregistry.h - -(define-function gst_registry_write_get - (c-name "gst_registry_write_get") - (return-type "GstRegistryWrite*") -) - -(define-function gst_registry_read_get - (c-name "gst_registry_read_get") - (return-type "GstRegistryRead*") -) - -(define-function gst_registry_option_set - (c-name "gst_registry_option_set") - (return-type "none") - (parameters - '("const-gchar*" "registry") - ) -) - - - -;; From /usr/include/gst/gstscheduler.h - -(define-function gst_scheduler_get_type - (c-name "gst_scheduler_get_type") - (return-type "GType") -) - -(define-method setup - (of-object "GstScheduler") - (c-name "gst_scheduler_setup") - (return-type "none") -) - -(define-method reset - (of-object "GstScheduler") - (c-name "gst_scheduler_reset") - (return-type "none") -) - -(define-method add_element - (of-object "GstScheduler") - (c-name "gst_scheduler_add_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method remove_element - (of-object "GstScheduler") - (c-name "gst_scheduler_remove_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method add_scheduler - (of-object "GstScheduler") - (c-name "gst_scheduler_add_scheduler") - (return-type "none") - (parameters - '("GstScheduler*" "sched2") - ) -) - -(define-method remove_scheduler - (of-object "GstScheduler") - (c-name "gst_scheduler_remove_scheduler") - (return-type "none") - (parameters - '("GstScheduler*" "sched2") - ) -) - -(define-method state_transition - (of-object "GstScheduler") - (c-name "gst_scheduler_state_transition") - (return-type "GstElementStateReturn") - (parameters - '("GstElement*" "element") - '("gint" "transition") - ) -) - -(define-method lock_element - (of-object "GstScheduler") - (c-name "gst_scheduler_lock_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method unlock_element - (of-object "GstScheduler") - (c-name "gst_scheduler_unlock_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method yield - (of-object "GstScheduler") - (c-name "gst_scheduler_yield") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method interrupt - (of-object "GstScheduler") - (c-name "gst_scheduler_interrupt") - (return-type "gboolean") - (parameters - '("GstElement*" "element") - ) -) - -(define-method error - (of-object "GstScheduler") - (c-name "gst_scheduler_error") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method pad_connect - (of-object "GstScheduler") - (c-name "gst_scheduler_pad_connect") - (return-type "none") - (parameters - '("GstPad*" "srcpad") - '("GstPad*" "sinkpad") - ) -) - -(define-method pad_disconnect - (of-object "GstScheduler") - (c-name "gst_scheduler_pad_disconnect") - (return-type "none") - (parameters - '("GstPad*" "srcpad") - '("GstPad*" "sinkpad") - ) -) - -(define-method pad_select - (of-object "GstScheduler") - (c-name "gst_scheduler_pad_select") - (return-type "GstPad*") - (parameters - '("GList*" "padlist") - ) -) - -(define-method clock_wait - (of-object "GstScheduler") - (c-name "gst_scheduler_clock_wait") - (return-type "GstClockReturn") - (parameters - '("GstElement*" "element") - '("GstClock*" "clock") - '("GstClockTime" "time") - ) -) - -(define-method iterate - (of-object "GstScheduler") - (c-name "gst_scheduler_iterate") - (return-type "gboolean") -) - -(define-method use_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_use_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method set_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_set_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method get_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_get_clock") - (return-type "GstClock*") -) - -(define-method auto_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_auto_clock") - (return-type "none") -) - -(define-method show - (of-object "GstScheduler") - (c-name "gst_scheduler_show") - (return-type "none") -) - -(define-function gst_scheduler_factory_get_type - (c-name "gst_scheduler_factory_get_type") - (return-type "GType") -) - -(define-function gst_scheduler_factory_new - (c-name "gst_scheduler_factory_new") - (return-type "GstSchedulerFactory*") - (parameters - '("const-gchar*" "name") - '("const-gchar*" "longdesc") - '("GType" "type") - ) -) - -(define-method destroy - (of-object "GstSchedulerFactory") - (c-name "gst_scheduler_factory_destroy") - (return-type "none") -) - -(define-function gst_scheduler_factory_find - (c-name "gst_scheduler_factory_find") - (return-type "GstSchedulerFactory*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_scheduler_factory_get_list - (c-name "gst_scheduler_factory_get_list") - (return-type "GList*") -) - -(define-method create - (of-object "GstSchedulerFactory") - (c-name "gst_scheduler_factory_create") - (return-type "GstScheduler*") - (parameters - '("GstElement*" "parent") - ) -) - -(define-function gst_scheduler_factory_make - (c-name "gst_scheduler_factory_make") - (return-type "GstScheduler*") - (parameters - '("const-gchar*" "name") - '("GstElement*" "parent") - ) -) - -(define-function gst_scheduler_factory_set_default_name - (c-name "gst_scheduler_factory_set_default_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_scheduler_factory_get_default_name - (c-name "gst_scheduler_factory_get_default_name") - (return-type "const-gchar*") -) - - - -;; From /usr/include/gst/gstsystemclock.h - -(define-function gst_system_clock_get_type - (c-name "gst_system_clock_get_type") - (return-type "GType") -) - -(define-function gst_system_clock_obtain - (c-name "gst_system_clock_obtain") - (return-type "GstClock*") -) - - - -;; From /usr/include/gst/gstthread.h - -(define-function gst_thread_get_type - (c-name "gst_thread_get_type") - (return-type "GType") -) - -(define-function gst_thread_new - (c-name "gst_thread_new") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - - - -;; From /usr/include/gst/gsttimecache.h - -(define-function gst_time_cache_get_type - (c-name "gst_time_cache_get_type") - (return-type "GType") -) - -(define-function gst_time_cache_new - (c-name "gst_time_cache_new") - (return-type "GstTimeCache*") -) - -(define-method get_group - (of-object "GstTimeCache") - (c-name "gst_time_cache_get_group") - (return-type "gint") -) - -(define-method new_group - (of-object "GstTimeCache") - (c-name "gst_time_cache_new_group") - (return-type "gint") -) - -(define-method set_group - (of-object "GstTimeCache") - (c-name "gst_time_cache_set_group") - (return-type "gboolean") - (parameters - '("gint" "groupnum") - ) -) - -(define-method set_certainty - (of-object "GstTimeCache") - (c-name "gst_time_cache_set_certainty") - (return-type "none") - (parameters - '("GstTimeCacheCertainty" "certainty") - ) -) - -(define-method get_certainty - (of-object "GstTimeCache") - (c-name "gst_time_cache_get_certainty") - (return-type "GstTimeCacheCertainty") -) - -(define-method add_entry - (of-object "GstTimeCache") - (c-name "gst_time_cache_add_entry") - (return-type "none") - (parameters - '("guint64" "location") - '("gint64" "timestamp") - ) -) - -(define-method find_location - (of-object "GstTimeCache") - (c-name "gst_time_cache_find_location") - (return-type "gboolean") - (parameters - '("guint64" "location") - '("gint64*" "timestamp") - ) -) - -(define-method find_timestamp - (of-object "GstTimeCache") - (c-name "gst_time_cache_find_timestamp") - (return-type "gboolean") - (parameters - '("gint64" "timestamp") - '("guint64*" "location") - ) -) - - - -;; From /usr/include/gst/gsttrace.h - -(define-function gst_trace_new - (c-name "gst_trace_new") - (return-type "GstTrace*") - (parameters - '("guchar*" "filename") - '("gint" "size") - ) -) - -(define-method destroy - (of-object "GstTrace") - (c-name "gst_trace_destroy") - (return-type "none") -) - -(define-method flush - (of-object "GstTrace") - (c-name "gst_trace_flush") - (return-type "none") -) - -(define-method text_flush - (of-object "GstTrace") - (c-name "gst_trace_text_flush") - (return-type "none") -) - -(define-method set_default - (of-object "GstTrace") - (c-name "gst_trace_set_default") - (return-type "none") -) - -(define-method _add_entry - (of-object "GstTrace") - (c-name "_gst_trace_add_entry") - (return-type "none") - (parameters - '("guint32" "seq") - '("guint32" "data") - '("gchar*" "msg") - ) -) - -(define-function gst_trace_read_tsc - (c-name "gst_trace_read_tsc") - (return-type "none") - (parameters - '("guint64*" "dst") - ) -) - - - -;; From /usr/include/gst/gsttype.h - -(define-function gst_type_factory_get_type - (c-name "gst_type_factory_get_type") - (return-type "GType") -) - -(define-function gst_type_factory_new - (c-name "gst_type_factory_new") - (return-type "GstTypeFactory*") - (parameters - '("GstTypeDefinition*" "definition") - ) -) - -(define-function gst_type_factory_find - (c-name "gst_type_factory_find") - (return-type "GstTypeFactory*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function gst_type_factory_get_list - (c-name "gst_type_factory_get_list") - (return-type "GList*") -) - -(define-function gst_type_register - (c-name "gst_type_register") - (return-type "guint16") - (parameters - '("GstTypeFactory*" "factory") - ) -) - -(define-function gst_type_find_by_mime - (c-name "gst_type_find_by_mime") - (return-type "guint16") - (parameters - '("const-gchar*" "mime") - ) -) - -(define-function gst_type_find_by_ext - (c-name "gst_type_find_by_ext") - (return-type "guint16") - (parameters - '("const-gchar*" "ext") - ) -) - -(define-function gst_type_find_by_id - (c-name "gst_type_find_by_id") - (return-type "GstType*") - (parameters - '("guint16" "id") - ) -) - -(define-function gst_type_get_list - (c-name "gst_type_get_list") - (return-type "GList*") -) - - - -;; From /usr/include/gst/gsttypefind.h - -(define-function gst_type_find_get_type - (c-name "gst_type_find_get_type") - (return-type "GType") -) - - - -;; From /usr/include/gst/gsttypes.h - - - -;; From /usr/include/gst/gstutils.h - -(define-function gst_util_get_int_arg - (c-name "gst_util_get_int_arg") - (return-type "gint") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_get_bool_arg - (c-name "gst_util_get_bool_arg") - (return-type "gboolean") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_get_long_arg - (c-name "gst_util_get_long_arg") - (return-type "glong") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_get_int64_arg - (c-name "gst_util_get_int64_arg") - (return-type "gint64") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_get_float_arg - (c-name "gst_util_get_float_arg") - (return-type "gfloat") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_get_double_arg - (c-name "gst_util_get_double_arg") - (return-type "gdouble") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_get_string_arg - (c-name "gst_util_get_string_arg") - (return-type "const-gchar*") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_get_pointer_arg - (c-name "gst_util_get_pointer_arg") - (return-type "gpointer") - (parameters - '("GObject*" "object") - '("const-gchar*" "argname") - ) -) - -(define-function gst_util_set_value_from_string - (c-name "gst_util_set_value_from_string") - (return-type "none") - (parameters - '("GValue*" "value") - '("const-gchar*" "value_str") - ) -) - -(define-function gst_util_set_object_arg - (c-name "gst_util_set_object_arg") - (return-type "none") - (parameters - '("GObject*" "object") - '("const-gchar*" "name") - '("const-gchar*" "value") - ) -) - -(define-function gst_util_dump_mem - (c-name "gst_util_dump_mem") - (return-type "none") - (parameters - '("guchar*" "mem") - '("guint" "size") - ) -) - -(define-function gst_print_pad_caps - (c-name "gst_print_pad_caps") - (return-type "none") - (parameters - '("GString*" "buf") - '("gint" "indent") - '("GstPad*" "pad") - ) -) - -(define-function gst_print_element_args - (c-name "gst_print_element_args") - (return-type "none") - (parameters - '("GString*" "buf") - '("gint" "indent") - '("GstElement*" "element") - ) -) - - - -;; From /usr/include/gst/gstversion.h - - - -;; From /usr/include/gst/gstxml.h - -(define-function gst_xml_get_type - (c-name "gst_xml_get_type") - (return-type "GType") -) - -(define-function gst_xml_write - (c-name "gst_xml_write") - (return-type "xmlDocPtr") - (parameters - '("GstElement*" "element") - ) -) - -(define-function gst_xml_write_file - (c-name "gst_xml_write_file") - (return-type "gint") - (parameters - '("GstElement*" "element") - '("FILE*" "out") - ) -) - -(define-function gst_xml_new - (c-name "gst_xml_new") - (return-type "GstXML*") -) - -(define-method parse_doc - (of-object "GstXML") - (c-name "gst_xml_parse_doc") - (return-type "gboolean") - (parameters - '("xmlDocPtr" "doc") - '("const-guchar*" "root") - ) -) - -(define-method parse_file - (of-object "GstXML") - (c-name "gst_xml_parse_file") - (return-type "gboolean") - (parameters - '("const-guchar*" "fname") - '("const-guchar*" "root") - ) -) - -(define-method parse_memory - (of-object "GstXML") - (c-name "gst_xml_parse_memory") - (return-type "gboolean") - (parameters - '("guchar*" "buffer") - '("guint" "size") - '("const-gchar*" "root") - ) -) - -(define-method get_element - (of-object "GstXML") - (c-name "gst_xml_get_element") - (return-type "GstElement*") - (parameters - '("const-guchar*" "name") - ) -) - -(define-method get_topelements - (of-object "GstXML") - (c-name "gst_xml_get_topelements") - (return-type "GList*") -) - -(define-function gst_xml_make_element - (c-name "gst_xml_make_element") - (return-type "GstElement*") - (parameters - '("xmlNodePtr" "cur") - '("GstObject*" "parent") - ) -) - - diff --git a/gstreamer/gstreamer-extra.defs b/gstreamer/gstreamer-extra.defs index b2cd63b..e44d543 100644 --- a/gstreamer/gstreamer-extra.defs +++ b/gstreamer/gstreamer-extra.defs @@ -18,11 +18,3 @@ '("char*" "data") ) ) - -(define-function gst_info_set_categories - (c-name "gst_info_set_categories") - (return-type "none") - (parameters - '("guint32" "categories") - ) -) diff --git a/gstreamer/gstreamer-fixes.c b/gstreamer/gstreamer-fixes.c index d31f942..9705c34 100644 --- a/gstreamer/gstreamer-fixes.c +++ b/gstreamer/gstreamer-fixes.c @@ -22,5 +22,3 @@ #include #include "gstreamer-fixes.h" - -#include "tmp-enum-types.c" diff --git a/gstreamer/gstreamer-fixes.h b/gstreamer/gstreamer-fixes.h index 45d874e..06a0174 100644 --- a/gstreamer/gstreamer-fixes.h +++ b/gstreamer/gstreamer-fixes.h @@ -24,4 +24,3 @@ #include #include -#include "tmp-enum-types.h" diff --git a/gstreamer/tmp-enum-types.c b/gstreamer/tmp-enum-types.c deleted file mode 100644 index 103b2f3..0000000 --- a/gstreamer/tmp-enum-types.c +++ /dev/null @@ -1,424 +0,0 @@ - -/* Generated data (by glib-mkenums) */ - -#include - -/* enumerations from "/usr/include/gst/gstautoplug.h" */ -GType -gst_autoplug_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_AUTOPLUG_TO_CAPS, "GST_AUTOPLUG_TO_CAPS", "to-caps" }, - { GST_AUTOPLUG_TO_RENDERER, "GST_AUTOPLUG_TO_RENDERER", "to-renderer" }, - { GST_AUTOPLUG_FLAG_LAST, "GST_AUTOPLUG_FLAG_LAST", "flag-last" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstAutoplugFlags", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstbin.h" */ -GType -gst_bin_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_BIN_FLAG_MANAGER, "GST_BIN_FLAG_MANAGER", "flag-manager" }, - { GST_BIN_SELF_SCHEDULABLE, "GST_BIN_SELF_SCHEDULABLE", "self-schedulable" }, - { GST_BIN_FLAG_PREFER_COTHREADS, "GST_BIN_FLAG_PREFER_COTHREADS", "flag-prefer-cothreads" }, - { GST_BIN_FLAG_FIXED_CLOCK, "GST_BIN_FLAG_FIXED_CLOCK", "flag-fixed-clock" }, - { GST_BIN_FLAG_LAST, "GST_BIN_FLAG_LAST", "flag-last" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstBinFlags", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstbuffer.h" */ -GType -gst_buffer_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_BUFFER_READONLY, "GST_BUFFER_READONLY", "readonly" }, - { GST_BUFFER_ORIGINAL, "GST_BUFFER_ORIGINAL", "original" }, - { GST_BUFFER_DONTFREE, "GST_BUFFER_DONTFREE", "dontfree" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstBufferFlags", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstclock.h" */ -GType -gst_clock_return_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_CLOCK_STOPPED, "GST_CLOCK_STOPPED", "stopped" }, - { GST_CLOCK_TIMEOUT, "GST_CLOCK_TIMEOUT", "timeout" }, - { GST_CLOCK_EARLY, "GST_CLOCK_EARLY", "early" }, - { GST_CLOCK_ERROR, "GST_CLOCK_ERROR", "error" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstClockReturn", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstcpu.h" */ -GType -gst_cpu_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GFlagsValue values[] = { - { GST_CPU_FLAG_MMX, "GST_CPU_FLAG_MMX", "mmx" }, - { GST_CPU_FLAG_SSE, "GST_CPU_FLAG_SSE", "sse" }, - { GST_CPU_FLAG_MMXEXT, "GST_CPU_FLAG_MMXEXT", "mmxext" }, - { GST_CPU_FLAG_3DNOW, "GST_CPU_FLAG_3DNOW", "3dnow" }, - { 0, NULL, NULL } - }; - etype = g_flags_register_static ("GstCPUFlags", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstelement.h" */ -GType -gst_element_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_ELEMENT_COMPLEX, "GST_ELEMENT_COMPLEX", "complex" }, - { GST_ELEMENT_DECOUPLED, "GST_ELEMENT_DECOUPLED", "decoupled" }, - { GST_ELEMENT_THREAD_SUGGESTED, "GST_ELEMENT_THREAD_SUGGESTED", "thread-suggested" }, - { GST_ELEMENT_NO_SEEK, "GST_ELEMENT_NO_SEEK", "no-seek" }, - { GST_ELEMENT_INFINITE_LOOP, "GST_ELEMENT_INFINITE_LOOP", "infinite-loop" }, - { GST_ELEMENT_SCHEDULER_PRIVATE1, "GST_ELEMENT_SCHEDULER_PRIVATE1", "scheduler-private1" }, - { GST_ELEMENT_SCHEDULER_PRIVATE2, "GST_ELEMENT_SCHEDULER_PRIVATE2", "scheduler-private2" }, - { GST_ELEMENT_NEW_LOOPFUNC, "GST_ELEMENT_NEW_LOOPFUNC", "new-loopfunc" }, - { GST_ELEMENT_EVENT_AWARE, "GST_ELEMENT_EVENT_AWARE", "event-aware" }, - { GST_ELEMENT_FLAG_LAST, "GST_ELEMENT_FLAG_LAST", "flag-last" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstElementFlags", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstevent.h" */ -GType -gst_event_type_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_EVENT_UNKNOWN, "GST_EVENT_UNKNOWN", "unknown" }, - { GST_EVENT_EOS, "GST_EVENT_EOS", "eos" }, - { GST_EVENT_FLUSH, "GST_EVENT_FLUSH", "flush" }, - { GST_EVENT_EMPTY, "GST_EVENT_EMPTY", "empty" }, - { GST_EVENT_SEEK, "GST_EVENT_SEEK", "seek" }, - { GST_EVENT_DISCONTINUOUS, "GST_EVENT_DISCONTINUOUS", "discontinuous" }, - { GST_EVENT_NEW_MEDIA, "GST_EVENT_NEW_MEDIA", "new-media" }, - { GST_EVENT_INFO, "GST_EVENT_INFO", "info" }, - { GST_EVENT_ERROR, "GST_EVENT_ERROR", "error" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstEventType", values); - } - return etype; -} - -GType -gst_seek_type_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_SEEK_ANY, "GST_SEEK_ANY", "any" }, - { GST_SEEK_TIMEOFFSET_SET, "GST_SEEK_TIMEOFFSET_SET", "timeoffset-set" }, - { GST_SEEK_BYTEOFFSET_SET, "GST_SEEK_BYTEOFFSET_SET", "byteoffset-set" }, - { GST_SEEK_BYTEOFFSET_CUR, "GST_SEEK_BYTEOFFSET_CUR", "byteoffset-cur" }, - { GST_SEEK_BYTEOFFSET_END, "GST_SEEK_BYTEOFFSET_END", "byteoffset-end" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstSeekType", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstobject.h" */ -GType -gst_object_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_DESTROYED, "GST_DESTROYED", "destroyed" }, - { GST_FLOATING, "GST_FLOATING", "floating" }, - { GST_OBJECT_FLAG_LAST, "GST_OBJECT_FLAG_LAST", "object-flag-last" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstObjectFlags", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstpad.h" */ -GType -gst_region_type_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_REGION_VOID, "GST_REGION_VOID", "void" }, - { GST_REGION_OFFSET_LEN, "GST_REGION_OFFSET_LEN", "offset-len" }, - { GST_REGION_TIME_LEN, "GST_REGION_TIME_LEN", "time-len" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstRegionType", values); - } - return etype; -} - -GType -gst_pad_connect_return_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_PAD_CONNECT_REFUSED, "GST_PAD_CONNECT_REFUSED", "refused" }, - { GST_PAD_CONNECT_DELAYED, "GST_PAD_CONNECT_DELAYED", "delayed" }, - { GST_PAD_CONNECT_OK, "GST_PAD_CONNECT_OK", "ok" }, - { GST_PAD_CONNECT_DONE, "GST_PAD_CONNECT_DONE", "done" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstPadConnectReturn", values); - } - return etype; -} - -GType -gst_pad_direction_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_PAD_UNKNOWN, "GST_PAD_UNKNOWN", "unknown" }, - { GST_PAD_SRC, "GST_PAD_SRC", "src" }, - { GST_PAD_SINK, "GST_PAD_SINK", "sink" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstPadDirection", values); - } - return etype; -} - -GType -gst_pad_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_PAD_DISABLED, "GST_PAD_DISABLED", "disabled" }, - { GST_PAD_EOS, "GST_PAD_EOS", "eos" }, - { GST_PAD_FLAG_LAST, "GST_PAD_FLAG_LAST", "flag-last" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstPadFlags", values); - } - return etype; -} - -GType -gst_pad_presence_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_PAD_ALWAYS, "GST_PAD_ALWAYS", "always" }, - { GST_PAD_SOMETIMES, "GST_PAD_SOMETIMES", "sometimes" }, - { GST_PAD_REQUEST, "GST_PAD_REQUEST", "request" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstPadPresence", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstparse.h" */ -GType -gst_parse_error_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_PARSE_ERROR_SYNTAX, "GST_PARSE_ERROR_SYNTAX", "syntax" }, - { GST_PARSE_ERROR_NO_SUCH_ELEMENT, "GST_PARSE_ERROR_NO_SUCH_ELEMENT", "no-such-element" }, - { GST_PARSE_ERROR_NO_SUCH_PROPERTY, "GST_PARSE_ERROR_NO_SUCH_PROPERTY", "no-such-property" }, - { GST_PARSE_ERROR_CONNECT, "GST_PARSE_ERROR_CONNECT", "connect" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstParseError", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstprops.h" */ -GType -gst_props_type_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_PROPS_END_TYPE, "GST_PROPS_END_TYPE", "end-type" }, - { GST_PROPS_INVALID_TYPE, "GST_PROPS_INVALID_TYPE", "invalid-type" }, - { GST_PROPS_INT_TYPE, "GST_PROPS_INT_TYPE", "int-type" }, - { GST_PROPS_FLOAT_TYPE, "GST_PROPS_FLOAT_TYPE", "float-type" }, - { GST_PROPS_FOURCC_TYPE, "GST_PROPS_FOURCC_TYPE", "fourcc-type" }, - { GST_PROPS_BOOL_TYPE, "GST_PROPS_BOOL_TYPE", "bool-type" }, - { GST_PROPS_STRING_TYPE, "GST_PROPS_STRING_TYPE", "string-type" }, - { GST_PROPS_VAR_TYPE, "GST_PROPS_VAR_TYPE", "var-type" }, - { GST_PROPS_LIST_TYPE, "GST_PROPS_LIST_TYPE", "list-type" }, - { GST_PROPS_FLOAT_RANGE_TYPE, "GST_PROPS_FLOAT_RANGE_TYPE", "float-range-type" }, - { GST_PROPS_INT_RANGE_TYPE, "GST_PROPS_INT_RANGE_TYPE", "int-range-type" }, - { GST_PROPS_LAST_TYPE, "GST_PROPS_LAST_TYPE", "last-type" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstPropsType", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstscheduler.h" */ -GType -gst_scheduler_flags_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_SCHEDULER_FLAG_FIXED_CLOCK, "GST_SCHEDULER_FLAG_FIXED_CLOCK", "fixed-clock" }, - { GST_SCHEDULER_FLAG_LAST, "GST_SCHEDULER_FLAG_LAST", "last" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstSchedulerFlags", values); - } - return etype; -} - -GType -gst_scheduler_state_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_SCHEDULER_STATE_NONE, "GST_SCHEDULER_STATE_NONE", "none" }, - { GST_SCHEDULER_STATE_RUNNING, "GST_SCHEDULER_STATE_RUNNING", "running" }, - { GST_SCHEDULER_STATE_STOPPED, "GST_SCHEDULER_STATE_STOPPED", "stopped" }, - { GST_SCHEDULER_STATE_ERROR, "GST_SCHEDULER_STATE_ERROR", "error" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstSchedulerState", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gstthread.h" */ -GType -gst_thread_state_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_THREAD_STATE_STARTED, "GST_THREAD_STATE_STARTED", "state-started" }, - { GST_THREAD_STATE_SPINNING, "GST_THREAD_STATE_SPINNING", "state-spinning" }, - { GST_THREAD_STATE_REAPING, "GST_THREAD_STATE_REAPING", "state-reaping" }, - { GST_THREAD_FLAG_LAST, "GST_THREAD_FLAG_LAST", "flag-last" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstThreadState", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gsttimecache.h" */ -GType -gst_time_cache_certainty_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_TIME_CACHE_UNKNOWN, "GST_TIME_CACHE_UNKNOWN", "unknown" }, - { GST_TIME_CACHE_CERTAIN, "GST_TIME_CACHE_CERTAIN", "certain" }, - { GST_TIME_CACHE_FUZZY_LOCATION, "GST_TIME_CACHE_FUZZY_LOCATION", "fuzzy-location" }, - { GST_TIME_CACHE_FUZZY_TIMESTAMP, "GST_TIME_CACHE_FUZZY_TIMESTAMP", "fuzzy-timestamp" }, - { GST_TIME_CACHE_FUZZY, "GST_TIME_CACHE_FUZZY", "fuzzy" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstTimeCacheCertainty", values); - } - return etype; -} - - -/* enumerations from "/usr/include/gst/gsttypes.h" */ -GType -gst_element_state_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GFlagsValue values[] = { - { GST_STATE_VOID_PENDING, "GST_STATE_VOID_PENDING", "void-pending" }, - { GST_STATE_NULL, "GST_STATE_NULL", "null" }, - { GST_STATE_READY, "GST_STATE_READY", "ready" }, - { GST_STATE_PAUSED, "GST_STATE_PAUSED", "paused" }, - { GST_STATE_PLAYING, "GST_STATE_PLAYING", "playing" }, - { 0, NULL, NULL } - }; - etype = g_flags_register_static ("GstElementState", values); - } - return etype; -} - -GType -gst_element_state_return_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const GEnumValue values[] = { - { GST_STATE_FAILURE, "GST_STATE_FAILURE", "failure" }, - { GST_STATE_SUCCESS, "GST_STATE_SUCCESS", "success" }, - { GST_STATE_ASYNC, "GST_STATE_ASYNC", "async" }, - { 0, NULL, NULL } - }; - etype = g_enum_register_static ("GstElementStateReturn", values); - } - return etype; -} - - -/* Generated data ends here */ - diff --git a/gstreamer/tmp-enum-types.h b/gstreamer/tmp-enum-types.h deleted file mode 100644 index 9a57656..0000000 --- a/gstreamer/tmp-enum-types.h +++ /dev/null @@ -1,112 +0,0 @@ - -/* Generated data (by glib-mkenums) */ - -#ifndef __GST_ENUM_TYPES_H__ -#define __GST_ENUM_TYPES_H__ - -#include - -G_BEGIN_DECLS - -/* enumerations from "/usr/include/gst/gstautoplug.h" */ - -GType gst_autoplug_flags_get_type (void); -#define GST_TYPE_AUTOPLUG_FLAGS (gst_autoplug_flags_get_type()) - -/* enumerations from "/usr/include/gst/gstbin.h" */ - -GType gst_bin_flags_get_type (void); -#define GST_TYPE_BIN_FLAGS (gst_bin_flags_get_type()) - -/* enumerations from "/usr/include/gst/gstbuffer.h" */ - -GType gst_buffer_flags_get_type (void); -#define GST_TYPE_BUFFER_FLAGS (gst_buffer_flags_get_type()) - -/* enumerations from "/usr/include/gst/gstclock.h" */ - -GType gst_clock_return_get_type (void); -#define GST_TYPE_CLOCK_RETURN (gst_clock_return_get_type()) - -/* enumerations from "/usr/include/gst/gstcpu.h" */ - -GType gst_cpu_flags_get_type (void); -#define GST_TYPE_CPU_FLAGS (gst_cpu_flags_get_type()) - -/* enumerations from "/usr/include/gst/gstelement.h" */ - -GType gst_element_flags_get_type (void); -#define GST_TYPE_ELEMENT_FLAGS (gst_element_flags_get_type()) - -/* enumerations from "/usr/include/gst/gstevent.h" */ - -GType gst_event_type_get_type (void); -#define GST_TYPE_EVENT_TYPE (gst_event_type_get_type()) - -GType gst_seek_type_get_type (void); -#define GST_TYPE_SEEK_TYPE (gst_seek_type_get_type()) - -/* enumerations from "/usr/include/gst/gstobject.h" */ - -GType gst_object_flags_get_type (void); -#define GST_TYPE_OBJECT_FLAGS (gst_object_flags_get_type()) - -/* enumerations from "/usr/include/gst/gstpad.h" */ - -GType gst_region_type_get_type (void); -#define GST_TYPE_REGION_TYPE (gst_region_type_get_type()) - -GType gst_pad_connect_return_get_type (void); -#define GST_TYPE_PAD_CONNECT_RETURN (gst_pad_connect_return_get_type()) - -GType gst_pad_direction_get_type (void); -#define GST_TYPE_PAD_DIRECTION (gst_pad_direction_get_type()) - -GType gst_pad_flags_get_type (void); -#define GST_TYPE_PAD_FLAGS (gst_pad_flags_get_type()) - -GType gst_pad_presence_get_type (void); -#define GST_TYPE_PAD_PRESENCE (gst_pad_presence_get_type()) - -/* enumerations from "/usr/include/gst/gstparse.h" */ - -GType gst_parse_error_get_type (void); -#define GST_TYPE_PARSE_ERROR (gst_parse_error_get_type()) - -/* enumerations from "/usr/include/gst/gstprops.h" */ - -GType gst_props_type_get_type (void); -#define GST_TYPE_PROPS_TYPE (gst_props_type_get_type()) - -/* enumerations from "/usr/include/gst/gstscheduler.h" */ - -GType gst_scheduler_flags_get_type (void); -#define GST_TYPE_SCHEDULER_FLAGS (gst_scheduler_flags_get_type()) - -GType gst_scheduler_state_get_type (void); -#define GST_TYPE_SCHEDULER_STATE (gst_scheduler_state_get_type()) - -/* enumerations from "/usr/include/gst/gstthread.h" */ - -GType gst_thread_state_get_type (void); -#define GST_TYPE_THREAD_STATE (gst_thread_state_get_type()) - -/* enumerations from "/usr/include/gst/gsttimecache.h" */ - -GType gst_time_cache_certainty_get_type (void); -#define GST_TYPE_TIME_CACHE_CERTAINTY (gst_time_cache_certainty_get_type()) - -/* enumerations from "/usr/include/gst/gsttypes.h" */ - -GType gst_element_state_get_type (void); -#define GST_TYPE_ELEMENT_STATE (gst_element_state_get_type()) - -GType gst_element_state_return_get_type (void); -#define GST_TYPE_ELEMENT_STATE_RETURN (gst_element_state_return_get_type()) - -G_END_DECLS - -#endif /* __GST_ENUM_TYPES_H__ */ - -/* Generated data ends here */ - -- 2.7.4