[vala] gstreamer: Add gstreamer-app-0.10 bindings



commit 6e9b0be73cce1ed3868419da6a34ca73a77f103b
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date:   Sat Mar 27 08:31:50 2010 +0100

    gstreamer: Add gstreamer-app-0.10 bindings

 vapi/Makefile.am                                   |    2 +
 vapi/gstreamer-app-0.10.deps                       |    3 +
 vapi/gstreamer-app-0.10.vapi                       |   68 ++++
 .../gstreamer-app-0.10/gstreamer-app-0.10.deps     |    3 +
 .../gstreamer-app-0.10/gstreamer-app-0.10.files    |    3 +
 .../gstreamer-app-0.10/gstreamer-app-0.10.gi       |  335 ++++++++++++++++++++
 .../gstreamer-app-0.10/gstreamer-app-0.10.metadata |   32 ++
 .../gstreamer-app-0.10.namespace                   |    1 +
 8 files changed, 447 insertions(+), 0 deletions(-)
---
diff --git a/vapi/Makefile.am b/vapi/Makefile.am
index e833e8a..68a0f4d 100644
--- a/vapi/Makefile.am
+++ b/vapi/Makefile.am
@@ -53,6 +53,8 @@ dist_vapi_DATA = \
 	gsl.vapi \
 	gstreamer-0.10.deps \
 	gstreamer-0.10.vapi \
+	gstreamer-app-0.10.deps \
+	gstreamer-app-0.10.vapi \
 	gstreamer-audio-0.10.deps \
 	gstreamer-audio-0.10.vapi \
 	gstreamer-base-0.10.deps \
diff --git a/vapi/gstreamer-app-0.10.deps b/vapi/gstreamer-app-0.10.deps
new file mode 100644
index 0000000..0cc476e
--- /dev/null
+++ b/vapi/gstreamer-app-0.10.deps
@@ -0,0 +1,3 @@
+gstreamer-0.10
+gstreamer-base-0.10
+gmodule-2.0
diff --git a/vapi/gstreamer-app-0.10.vapi b/vapi/gstreamer-app-0.10.vapi
new file mode 100644
index 0000000..d0c131e
--- /dev/null
+++ b/vapi/gstreamer-app-0.10.vapi
@@ -0,0 +1,68 @@
+/* gstreamer-app-0.10.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
+namespace Gst {
+	[CCode (cheader_filename = "gst/app/gstappsink.h")]
+	public class AppSink : Gst.BaseSink, Gst.URIHandler {
+		public bool is_eos ();
+		public Gst.Buffer pull_buffer ();
+		public Gst.BufferList pull_buffer_list ();
+		public Gst.Buffer pull_preroll ();
+		public void set_callbacks (Gst.AppSinkCallbacks callbacks, GLib.DestroyNotify notify);
+		public Gst.Caps caps { get; set; }
+		public bool drop { get; set; }
+		public bool emit_signals { get; set; }
+		public uint max_buffers { get; set; }
+		public virtual signal void eos ();
+		public virtual signal void new_buffer ();
+		public virtual signal void new_buffer_list ();
+		public virtual signal void new_preroll ();
+	}
+	[Compact]
+	[CCode (cheader_filename = "gst/app/gstappsink.h")]
+	public class AppSinkCallbacks {
+		public weak GLib.Callback eos;
+		public weak GLib.Callback new_buffer;
+		public weak GLib.Callback new_buffer_list;
+		public weak GLib.Callback new_preroll;
+	}
+	[CCode (cheader_filename = "gst/app/gstappsrc.h")]
+	public class AppSrc : Gst.BaseSrc, Gst.URIHandler {
+		public Gst.FlowReturn end_of_stream ();
+		public Gst.FlowReturn push_buffer (Gst.Buffer buffer);
+		public void set_callbacks (Gst.AppSrcCallbacks callbacks, GLib.DestroyNotify notify);
+		[NoAccessorMethod]
+		public bool block { get; set; }
+		public Gst.Caps caps { get; set; }
+		public bool emit_signals { get; set; }
+		[NoAccessorMethod]
+		public Gst.Format format { get; set; }
+		[NoAccessorMethod]
+		public bool is_live { get; set; }
+		public uint64 max_bytes { get; set; }
+		[NoAccessorMethod]
+		public int64 max_latency { get; set; }
+		[NoAccessorMethod]
+		public int64 min_latency { get; set; }
+		[NoAccessorMethod]
+		public uint min_percent { get; set; }
+		public int64 size { get; set; }
+		public Gst.AppStreamType stream_type { get; set; }
+		public virtual signal void enough_data ();
+		public virtual signal void need_data (uint length);
+		public virtual signal bool seek_data (uint64 offset);
+	}
+	[Compact]
+	[CCode (cheader_filename = "gst/app/gstappsrc.h")]
+	public class AppSrcCallbacks {
+		public weak GLib.Callback enough_data;
+		public weak GLib.Callback need_data;
+		public weak GLib.Callback seek_data;
+	}
+	[CCode (cprefix = "GST_APP_STREAM_TYPE_", has_type_id = false, cheader_filename = "gst/app/gstappsrc.h")]
+	public enum AppStreamType {
+		STREAM,
+		SEEKABLE,
+		RANDOM_ACCESS
+	}
+}
diff --git a/vapi/packages/gstreamer-app-0.10/gstreamer-app-0.10.deps b/vapi/packages/gstreamer-app-0.10/gstreamer-app-0.10.deps
new file mode 100644
index 0000000..0cc476e
--- /dev/null
+++ b/vapi/packages/gstreamer-app-0.10/gstreamer-app-0.10.deps
@@ -0,0 +1,3 @@
+gstreamer-0.10
+gstreamer-base-0.10
+gmodule-2.0
diff --git a/vapi/packages/gstreamer-app-0.10/gstreamer-app-0.10.files b/vapi/packages/gstreamer-app-0.10/gstreamer-app-0.10.files
new file mode 100644
index 0000000..febc5c5
--- /dev/null
+++ b/vapi/packages/gstreamer-app-0.10/gstreamer-app-0.10.files
@@ -0,0 +1,3 @@
+include/gstreamer-0.10/gst/app
+lib/libgstapp-0.10.so
+
diff --git a/vapi/packages/gstreamer-app-0.10/gstreamer-app-0.10.gi b/vapi/packages/gstreamer-app-0.10/gstreamer-app-0.10.gi
new file mode 100644
index 0000000..bec977d
--- /dev/null
+++ b/vapi/packages/gstreamer-app-0.10/gstreamer-app-0.10.gi
@@ -0,0 +1,335 @@
+<?xml version="1.0"?>
+<api version="1.0">
+	<namespace name="Gst">
+		<callback name="GstAppBufferFinalizeFunc">
+			<return-type type="void"/>
+			<parameters>
+				<parameter name="priv" type="void*"/>
+			</parameters>
+		</callback>
+		<struct name="GstAppBuffer">
+			<method name="new" symbol="gst_app_buffer_new">
+				<return-type type="GstBuffer*"/>
+				<parameters>
+					<parameter name="data" type="void*"/>
+					<parameter name="length" type="int"/>
+					<parameter name="finalize" type="GstAppBufferFinalizeFunc"/>
+					<parameter name="priv" type="void*"/>
+				</parameters>
+			</method>
+			<field name="buffer" type="GstBuffer"/>
+			<field name="finalize" type="GstAppBufferFinalizeFunc"/>
+			<field name="priv" type="void*"/>
+		</struct>
+		<struct name="GstAppBufferClass">
+			<field name="buffer_class" type="GstBufferClass"/>
+		</struct>
+		<struct name="GstAppSinkCallbacks">
+			<field name="eos" type="GCallback"/>
+			<field name="new_preroll" type="GCallback"/>
+			<field name="new_buffer" type="GCallback"/>
+			<field name="new_buffer_list" type="GCallback"/>
+			<field name="_gst_reserved" type="gpointer[]"/>
+		</struct>
+		<struct name="GstAppSrcCallbacks">
+			<field name="need_data" type="GCallback"/>
+			<field name="enough_data" type="GCallback"/>
+			<field name="seek_data" type="GCallback"/>
+			<field name="_gst_reserved" type="gpointer[]"/>
+		</struct>
+		<enum name="GstAppStreamType">
+			<member name="GST_APP_STREAM_TYPE_STREAM" value="0"/>
+			<member name="GST_APP_STREAM_TYPE_SEEKABLE" value="1"/>
+			<member name="GST_APP_STREAM_TYPE_RANDOM_ACCESS" value="2"/>
+		</enum>
+		<object name="GstAppSink" parent="GstBaseSink" type-name="GstAppSink" get-type="gst_app_sink_get_type">
+			<implements>
+				<interface name="GstURIHandler"/>
+			</implements>
+			<method name="get_caps" symbol="gst_app_sink_get_caps">
+				<return-type type="GstCaps*"/>
+				<parameters>
+					<parameter name="appsink" type="GstAppSink*"/>
+				</parameters>
+			</method>
+			<method name="get_drop" symbol="gst_app_sink_get_drop">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="appsink" type="GstAppSink*"/>
+				</parameters>
+			</method>
+			<method name="get_emit_signals" symbol="gst_app_sink_get_emit_signals">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="appsink" type="GstAppSink*"/>
+				</parameters>
+			</method>
+			<method name="get_max_buffers" symbol="gst_app_sink_get_max_buffers">
+				<return-type type="guint"/>
+				<parameters>
+					<parameter name="appsink" type="GstAppSink*"/>
+				</parameters>
+			</method>
+			<method name="is_eos" symbol="gst_app_sink_is_eos">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="appsink" type="GstAppSink*"/>
+				</parameters>
+			</method>
+			<method name="pull_buffer" symbol="gst_app_sink_pull_buffer">
+				<return-type type="GstBuffer*"/>
+				<parameters>
+					<parameter name="appsink" type="GstAppSink*"/>
+				</parameters>
+			</method>
+			<method name="pull_buffer_list" symbol="gst_app_sink_pull_buffer_list">
+				<return-type type="GstBufferList*"/>
+				<parameters>
+					<parameter name="appsink" type="GstAppSink*"/>
+				</parameters>
+			</method>
+			<method name="pull_preroll" symbol="gst_app_sink_pull_preroll">
+				<return-type type="GstBuffer*"/>
+				<parameters>
+					<parameter name="appsink" type="GstAppSink*"/>
+				</parameters>
+			</method>
+			<method name="set_callbacks" symbol="gst_app_sink_set_callbacks">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="appsink" type="GstAppSink*"/>
+					<parameter name="callbacks" type="GstAppSinkCallbacks*"/>
+					<parameter name="user_data" type="gpointer"/>
+					<parameter name="notify" type="GDestroyNotify"/>
+				</parameters>
+			</method>
+			<method name="set_caps" symbol="gst_app_sink_set_caps">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="appsink" type="GstAppSink*"/>
+					<parameter name="caps" type="GstCaps*"/>
+				</parameters>
+			</method>
+			<method name="set_drop" symbol="gst_app_sink_set_drop">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="appsink" type="GstAppSink*"/>
+					<parameter name="drop" type="gboolean"/>
+				</parameters>
+			</method>
+			<method name="set_emit_signals" symbol="gst_app_sink_set_emit_signals">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="appsink" type="GstAppSink*"/>
+					<parameter name="emit" type="gboolean"/>
+				</parameters>
+			</method>
+			<method name="set_max_buffers" symbol="gst_app_sink_set_max_buffers">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="appsink" type="GstAppSink*"/>
+					<parameter name="max" type="guint"/>
+				</parameters>
+			</method>
+			<property name="caps" type="GstCaps*" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="drop" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="emit-signals" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="eos" type="gboolean" readable="1" writable="0" construct="0" construct-only="0"/>
+			<property name="max-buffers" type="guint" readable="1" writable="1" construct="0" construct-only="0"/>
+			<signal name="eos" when="LAST">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="sink" type="GstAppSink*"/>
+				</parameters>
+			</signal>
+			<signal name="new-buffer" when="LAST">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="sink" type="GstAppSink*"/>
+				</parameters>
+			</signal>
+			<signal name="new-buffer-list" when="LAST">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="sink" type="GstAppSink*"/>
+				</parameters>
+			</signal>
+			<signal name="new-preroll" when="LAST">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="sink" type="GstAppSink*"/>
+				</parameters>
+			</signal>
+			<signal name="pull-buffer" when="LAST">
+				<return-type type="GstBuffer"/>
+				<parameters>
+					<parameter name="sink" type="GstAppSink*"/>
+				</parameters>
+			</signal>
+			<signal name="pull-buffer-list" when="LAST">
+				<return-type type="GstBufferList"/>
+				<parameters>
+					<parameter name="sink" type="GstAppSink*"/>
+				</parameters>
+			</signal>
+			<signal name="pull-preroll" when="LAST">
+				<return-type type="GstBuffer"/>
+				<parameters>
+					<parameter name="sink" type="GstAppSink*"/>
+				</parameters>
+			</signal>
+		</object>
+		<object name="GstAppSrc" parent="GstBaseSrc" type-name="GstAppSrc" get-type="gst_app_src_get_type">
+			<implements>
+				<interface name="GstURIHandler"/>
+			</implements>
+			<method name="end_of_stream" symbol="gst_app_src_end_of_stream">
+				<return-type type="GstFlowReturn"/>
+				<parameters>
+					<parameter name="appsrc" type="GstAppSrc*"/>
+				</parameters>
+			</method>
+			<method name="get_caps" symbol="gst_app_src_get_caps">
+				<return-type type="GstCaps*"/>
+				<parameters>
+					<parameter name="appsrc" type="GstAppSrc*"/>
+				</parameters>
+			</method>
+			<method name="get_emit_signals" symbol="gst_app_src_get_emit_signals">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="appsrc" type="GstAppSrc*"/>
+				</parameters>
+			</method>
+			<method name="get_latency" symbol="gst_app_src_get_latency">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="appsrc" type="GstAppSrc*"/>
+					<parameter name="min" type="guint64*"/>
+					<parameter name="max" type="guint64*"/>
+				</parameters>
+			</method>
+			<method name="get_max_bytes" symbol="gst_app_src_get_max_bytes">
+				<return-type type="guint64"/>
+				<parameters>
+					<parameter name="appsrc" type="GstAppSrc*"/>
+				</parameters>
+			</method>
+			<method name="get_size" symbol="gst_app_src_get_size">
+				<return-type type="gint64"/>
+				<parameters>
+					<parameter name="appsrc" type="GstAppSrc*"/>
+				</parameters>
+			</method>
+			<method name="get_stream_type" symbol="gst_app_src_get_stream_type">
+				<return-type type="GstAppStreamType"/>
+				<parameters>
+					<parameter name="appsrc" type="GstAppSrc*"/>
+				</parameters>
+			</method>
+			<method name="push_buffer" symbol="gst_app_src_push_buffer">
+				<return-type type="GstFlowReturn"/>
+				<parameters>
+					<parameter name="appsrc" type="GstAppSrc*"/>
+					<parameter name="buffer" type="GstBuffer*"/>
+				</parameters>
+			</method>
+			<method name="set_callbacks" symbol="gst_app_src_set_callbacks">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="appsrc" type="GstAppSrc*"/>
+					<parameter name="callbacks" type="GstAppSrcCallbacks*"/>
+					<parameter name="user_data" type="gpointer"/>
+					<parameter name="notify" type="GDestroyNotify"/>
+				</parameters>
+			</method>
+			<method name="set_caps" symbol="gst_app_src_set_caps">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="appsrc" type="GstAppSrc*"/>
+					<parameter name="caps" type="GstCaps*"/>
+				</parameters>
+			</method>
+			<method name="set_emit_signals" symbol="gst_app_src_set_emit_signals">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="appsrc" type="GstAppSrc*"/>
+					<parameter name="emit" type="gboolean"/>
+				</parameters>
+			</method>
+			<method name="set_latency" symbol="gst_app_src_set_latency">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="appsrc" type="GstAppSrc*"/>
+					<parameter name="min" type="guint64"/>
+					<parameter name="max" type="guint64"/>
+				</parameters>
+			</method>
+			<method name="set_max_bytes" symbol="gst_app_src_set_max_bytes">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="appsrc" type="GstAppSrc*"/>
+					<parameter name="max" type="guint64"/>
+				</parameters>
+			</method>
+			<method name="set_size" symbol="gst_app_src_set_size">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="appsrc" type="GstAppSrc*"/>
+					<parameter name="size" type="gint64"/>
+				</parameters>
+			</method>
+			<method name="set_stream_type" symbol="gst_app_src_set_stream_type">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="appsrc" type="GstAppSrc*"/>
+					<parameter name="type" type="GstAppStreamType"/>
+				</parameters>
+			</method>
+			<property name="block" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="caps" type="GstCaps*" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="emit-signals" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="format" type="GstFormat" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="is-live" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="max-bytes" type="guint64" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="max-latency" type="gint64" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="min-latency" type="gint64" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="min-percent" type="guint" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="size" type="gint64" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="stream-type" type="GstAppStreamType" readable="1" writable="1" construct="0" construct-only="0"/>
+			<signal name="end-of-stream" when="LAST">
+				<return-type type="GstFlowReturn"/>
+				<parameters>
+					<parameter name="src" type="GstAppSrc*"/>
+				</parameters>
+			</signal>
+			<signal name="enough-data" when="LAST">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="src" type="GstAppSrc*"/>
+				</parameters>
+			</signal>
+			<signal name="need-data" when="LAST">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="src" type="GstAppSrc*"/>
+					<parameter name="length" type="guint"/>
+				</parameters>
+			</signal>
+			<signal name="push-buffer" when="LAST">
+				<return-type type="GstFlowReturn"/>
+				<parameters>
+					<parameter name="src" type="GstAppSrc*"/>
+					<parameter name="buffer" type="GstBuffer"/>
+				</parameters>
+			</signal>
+			<signal name="seek-data" when="LAST">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="src" type="GstAppSrc*"/>
+					<parameter name="offset" type="guint64"/>
+				</parameters>
+			</signal>
+		</object>
+	</namespace>
+</api>
diff --git a/vapi/packages/gstreamer-app-0.10/gstreamer-app-0.10.metadata b/vapi/packages/gstreamer-app-0.10/gstreamer-app-0.10.metadata
new file mode 100644
index 0000000..7f643ac
--- /dev/null
+++ b/vapi/packages/gstreamer-app-0.10/gstreamer-app-0.10.metadata
@@ -0,0 +1,32 @@
+Gst cprefix="Gst" lower_case_cprefix="gst_" cheader_filename="gst/gst.h"
+GstAppSink* cheader_filename="gst/app/gstappsink.h"
+GstAppSink:eos hidden="1"
+GstAppSink::pull_buffer hidden="1"
+GstAppSink::pull_buffer_list hidden="1"
+GstAppSink::pull_preroll hidden="1"
+gst_app_sink_get_caps hidden="1"
+gst_app_sink_set_caps hidden="1"
+gst_app_sink_set_drop hidden="1"
+gst_app_sink_get_drop hidden="1"
+gst_app_sink_set_emit_signals hidden="1"
+gst_app_sink_get_emit_signals hidden="1"
+gst_app_sink_set_max_buffers hidden="1"
+gst_app_sink_get_max_buffers hidden="1"
+gst_app_sink_pull* transfer_ownership="1"
+GstAppSrc* cheader_filename="gst/app/gstappsrc.h"
+GstAppSrc::push_buffer hidden="1"
+GstAppSrc::end_of_stream hidden="1"
+gst_app_src_set_max_bytes hidden="1"
+gst_app_src_get_max_bytes hidden="1"
+gst_app_src_set_latency hidden="1"
+gst_app_src_get_latency hidden="1"
+gst_app_src_set_emit_signals hidden="1"
+gst_app_src_get_emit_signals hidden="1"
+gst_app_src_get_caps hidden="1"
+gst_app_src_set_caps hidden="1"
+gst_app_src_get_stream_type hidden="1"
+gst_app_src_set_stream_type hidden="1"
+gst_app_src_get_size hidden="1"
+gst_app_src_set_size hidden="1"
+GstAppStreamType cheader_filename="gst/app/gstappsrc.h"
+GstAppBuffer* hidden="1"
diff --git a/vapi/packages/gstreamer-app-0.10/gstreamer-app-0.10.namespace b/vapi/packages/gstreamer-app-0.10/gstreamer-app-0.10.namespace
new file mode 100644
index 0000000..100750e
--- /dev/null
+++ b/vapi/packages/gstreamer-app-0.10/gstreamer-app-0.10.namespace
@@ -0,0 +1 @@
+Gst



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]