[vala] gstreamer-rtsp-0.10: Update bindings



commit f31ef82ce1d72f8bce2c15599bdb969d65876109
Author: Sebastian Pölsterl <sebp k-d-w org>
Date:   Sun Apr 5 13:54:26 2009 +0200

    gstreamer-rtsp-0.10: Update bindings
---
 vapi/gstreamer-rtsp-0.10.vapi                      |   50 ++++++-
 .../gstreamer-rtsp-0.10/gstreamer-rtsp-0.10.gi     |  163 +++++++++++++++++++-
 .../gstreamer-rtsp-0.10.metadata                   |    4 +
 3 files changed, 209 insertions(+), 8 deletions(-)

diff --git a/vapi/gstreamer-rtsp-0.10.vapi b/vapi/gstreamer-rtsp-0.10.vapi
index eae741a..ba2df3b 100644
--- a/vapi/gstreamer-rtsp-0.10.vapi
+++ b/vapi/gstreamer-rtsp-0.10.vapi
@@ -1,16 +1,23 @@
-/* gstreamer-rtsp-0.10.vapi generated by lt-vapigen, do not modify. */
+/* gstreamer-rtsp-0.10.vapi generated by vapigen, do not modify. */
 
 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
 namespace Gst {
 	[Compact]
 	[CCode (cheader_filename = "gst/rtsp/gstrtspconnection.h")]
 	public class RTSPConnection {
+		public static Gst.RTSPResult accept (int sock, out unowned Gst.RTSPConnection conn);
 		public void clear_auth_params ();
 		public Gst.RTSPResult close ();
 		public Gst.RTSPResult connect (GLib.TimeVal timeout);
 		public static Gst.RTSPResult create (Gst.RTSPUrl url, out Gst.RTSPConnection conn);
+		public Gst.RTSPResult do_tunnel (Gst.RTSPConnection conn2);
 		public Gst.RTSPResult flush (bool flush);
 		public unowned string get_ip ();
+		public int get_readfd ();
+		public unowned string get_tunnelid ();
+		public unowned Gst.RTSPUrl get_url ();
+		public int get_writefd ();
+		public bool is_tunneled ();
 		public Gst.RTSPResult next_timeout (GLib.TimeVal timeout);
 		public Gst.RTSPResult poll (Gst.RTSPEvent events, Gst.RTSPEvent revents, GLib.TimeVal timeout);
 		public Gst.RTSPResult read (uchar data, uint size, GLib.TimeVal timeout);
@@ -19,7 +26,10 @@ namespace Gst {
 		public Gst.RTSPResult send (Gst.RTSPMessage message, GLib.TimeVal timeout);
 		public Gst.RTSPResult set_auth (Gst.RTSPAuthMethod method, string user, string pass);
 		public void set_auth_param (string param, string value);
+		public void set_ip (string ip);
+		public Gst.RTSPResult set_proxy (string host, uint port);
 		public Gst.RTSPResult set_qos_dscp (uint qos_dscp);
+		public void set_tunneled (bool tunneled);
 		public Gst.RTSPResult write (uchar data, uint size, GLib.TimeVal timeout);
 	}
 	[Compact]
@@ -50,6 +60,7 @@ namespace Gst {
 		public Gst.RTSPResult set_body (uchar[] data, uint size);
 		public Gst.RTSPResult steal_body (out uchar[] data, uint size);
 		public Gst.RTSPResult take_body (owned uchar[] data, uint size);
+		public Gst.RTSPResult take_header (Gst.RTSPHeaderField field, owned string value);
 		public Gst.RTSPResult unset ();
 	}
 	[Compact]
@@ -58,6 +69,7 @@ namespace Gst {
 		public int max;
 		public int min;
 		public static Gst.RTSPResult parse (string rangestr, out Gst.RTSPTimeRange range);
+		public static string to_string (Gst.RTSPTimeRange range);
 	}
 	[Compact]
 	[CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
@@ -98,7 +110,7 @@ namespace Gst {
 		public static Gst.RTSPResult parse (string str, Gst.RTSPTransport transport);
 	}
 	[Compact]
-	[CCode (cheader_filename = "gst/rtsp/gstrtspconnection.h")]
+	[CCode (copy_function = "gst_rtsp_url_copy", type_id = "GST_TYPE_RTSP_URL", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
 	public class RTSPUrl {
 		public string abspath;
 		public Gst.RTSPFamily family;
@@ -108,11 +120,31 @@ namespace Gst {
 		public string query;
 		public Gst.RTSPLowerTrans transports;
 		public string user;
+		public Gst.RTSPUrl copy ();
 		public Gst.RTSPResult get_port (uint16 port);
 		public string get_request_uri ();
 		public static Gst.RTSPResult parse (string urlstr, out Gst.RTSPUrl url);
 		public Gst.RTSPResult set_port (uint16 port);
 	}
+	[Compact]
+	[CCode (cheader_filename = "gst/gst.h")]
+	public class RTSPWatch {
+		public uint attach (GLib.MainContext context);
+		[CCode (has_construct_function = false)]
+		public RTSPWatch (Gst.RTSPConnection conn, Gst.RTSPWatchFuncs funcs, GLib.DestroyNotify notify);
+		public uint queue_message (Gst.RTSPMessage message);
+		public void reset ();
+	}
+	[Compact]
+	[CCode (cheader_filename = "gst/gst.h")]
+	public class RTSPWatchFuncs {
+		public weak GLib.Callback closed;
+		public weak GLib.Callback error;
+		public weak GLib.Callback message_received;
+		public weak GLib.Callback message_sent;
+		public weak GLib.Callback tunnel_complete;
+		public weak GLib.Callback tunnel_start;
+	}
 	[CCode (cheader_filename = "gst/rtsp/gstrtspextension.h")]
 	public interface RTSPExtension {
 		public abstract Gst.RTSPResult after_send (Gst.RTSPMessage req, Gst.RTSPMessage resp);
@@ -121,6 +153,7 @@ namespace Gst {
 		public abstract bool detect_server (Gst.RTSPMessage resp);
 		public abstract Gst.RTSPResult get_transports (Gst.RTSPLowerTrans protocols, string transport);
 		public abstract Gst.RTSPResult parse_sdp (Gst.SDPMessage sdp, Gst.Structure s);
+		public abstract Gst.RTSPResult receive_request (Gst.RTSPMessage req);
 		public abstract Gst.RTSPResult setup_media (Gst.SDPMedia media);
 		public abstract Gst.RTSPResult stream_select (Gst.RTSPUrl url);
 		[HasEmitter]
@@ -199,14 +232,17 @@ namespace Gst {
 		MAX_ASM_WIDTH,
 		LANGUAGE,
 		PLAYER_START_TIME,
-		LOCATION
+		LOCATION,
+		ETAG,
+		IF_MATCH
 	}
 	[CCode (cprefix = "GST_RTSP_LOWER_TRANS_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtspextension.h")]
 	public enum RTSPLowerTrans {
 		UNKNOWN,
 		UDP,
 		UDP_MCAST,
-		TCP
+		TCP,
+		HTTP
 	}
 	[CCode (cprefix = "GST_RTSP_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
 	[Flags]
@@ -262,6 +298,8 @@ namespace Gst {
 		ENET,
 		ENOTIP,
 		ETIMEOUT,
+		ETGET,
+		ETPOST,
 		ELAST
 	}
 	[CCode (cprefix = "GST_RTSP_STATE_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
@@ -336,7 +374,7 @@ namespace Gst {
 	[CCode (cprefix = "GST_RTSP_VERSION_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
 	public enum RTSPVersion {
 		INVALID,
-		1_0
+		@1_0
 	}
 	[CCode (cheader_filename = "gst/rtsp/gstrtspurl.h")]
 	public const int RTSP_DEFAULT_PORT;
@@ -352,6 +390,8 @@ namespace Gst {
 	public static unowned string rtsp_header_as_text (Gst.RTSPHeaderField field);
 	[CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
 	public static unowned string rtsp_method_as_text (Gst.RTSPMethod method);
+	[CCode (cheader_filename = "gst/gst.h")]
+	public static string rtsp_options_as_text (Gst.RTSPMethod options);
 	[CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
 	public static unowned string rtsp_status_as_text (Gst.RTSPStatusCode code);
 	[CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
diff --git a/vapi/packages/gstreamer-rtsp-0.10/gstreamer-rtsp-0.10.gi b/vapi/packages/gstreamer-rtsp-0.10/gstreamer-rtsp-0.10.gi
index 2640015..be3546c 100644
--- a/vapi/packages/gstreamer-rtsp-0.10/gstreamer-rtsp-0.10.gi
+++ b/vapi/packages/gstreamer-rtsp-0.10/gstreamer-rtsp-0.10.gi
@@ -39,6 +39,12 @@
 				<parameter name="method" type="GstRTSPMethod"/>
 			</parameters>
 		</function>
+		<function name="rtsp_options_as_text" symbol="gst_rtsp_options_as_text">
+			<return-type type="gchar*"/>
+			<parameters>
+				<parameter name="options" type="GstRTSPMethod"/>
+			</parameters>
+		</function>
 		<function name="rtsp_status_as_text" symbol="gst_rtsp_status_as_text">
 			<return-type type="gchar*"/>
 			<parameters>
@@ -58,6 +64,13 @@
 			</parameters>
 		</function>
 		<struct name="GstRTSPConnection">
+			<method name="accept" symbol="gst_rtsp_connection_accept">
+				<return-type type="GstRTSPResult"/>
+				<parameters>
+					<parameter name="sock" type="gint"/>
+					<parameter name="conn" type="GstRTSPConnection**"/>
+				</parameters>
+			</method>
 			<method name="clear_auth_params" symbol="gst_rtsp_connection_clear_auth_params">
 				<return-type type="void"/>
 				<parameters>
@@ -84,6 +97,13 @@
 					<parameter name="conn" type="GstRTSPConnection**"/>
 				</parameters>
 			</method>
+			<method name="do_tunnel" symbol="gst_rtsp_connection_do_tunnel">
+				<return-type type="GstRTSPResult"/>
+				<parameters>
+					<parameter name="conn" type="GstRTSPConnection*"/>
+					<parameter name="conn2" type="GstRTSPConnection*"/>
+				</parameters>
+			</method>
 			<method name="flush" symbol="gst_rtsp_connection_flush">
 				<return-type type="GstRTSPResult"/>
 				<parameters>
@@ -103,6 +123,36 @@
 					<parameter name="conn" type="GstRTSPConnection*"/>
 				</parameters>
 			</method>
+			<method name="get_readfd" symbol="gst_rtsp_connection_get_readfd">
+				<return-type type="gint"/>
+				<parameters>
+					<parameter name="conn" type="GstRTSPConnection*"/>
+				</parameters>
+			</method>
+			<method name="get_tunnelid" symbol="gst_rtsp_connection_get_tunnelid">
+				<return-type type="gchar*"/>
+				<parameters>
+					<parameter name="conn" type="GstRTSPConnection*"/>
+				</parameters>
+			</method>
+			<method name="get_url" symbol="gst_rtsp_connection_get_url">
+				<return-type type="GstRTSPUrl*"/>
+				<parameters>
+					<parameter name="conn" type="GstRTSPConnection*"/>
+				</parameters>
+			</method>
+			<method name="get_writefd" symbol="gst_rtsp_connection_get_writefd">
+				<return-type type="gint"/>
+				<parameters>
+					<parameter name="conn" type="GstRTSPConnection*"/>
+				</parameters>
+			</method>
+			<method name="is_tunneled" symbol="gst_rtsp_connection_is_tunneled">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="conn" type="GstRTSPConnection*"/>
+				</parameters>
+			</method>
 			<method name="next_timeout" symbol="gst_rtsp_connection_next_timeout">
 				<return-type type="GstRTSPResult"/>
 				<parameters>
@@ -167,6 +217,21 @@
 					<parameter name="value" type="gchar*"/>
 				</parameters>
 			</method>
+			<method name="set_ip" symbol="gst_rtsp_connection_set_ip">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="conn" type="GstRTSPConnection*"/>
+					<parameter name="ip" type="gchar*"/>
+				</parameters>
+			</method>
+			<method name="set_proxy" symbol="gst_rtsp_connection_set_proxy">
+				<return-type type="GstRTSPResult"/>
+				<parameters>
+					<parameter name="conn" type="GstRTSPConnection*"/>
+					<parameter name="host" type="gchar*"/>
+					<parameter name="port" type="guint"/>
+				</parameters>
+			</method>
 			<method name="set_qos_dscp" symbol="gst_rtsp_connection_set_qos_dscp">
 				<return-type type="GstRTSPResult"/>
 				<parameters>
@@ -174,6 +239,13 @@
 					<parameter name="qos_dscp" type="guint"/>
 				</parameters>
 			</method>
+			<method name="set_tunneled" symbol="gst_rtsp_connection_set_tunneled">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="conn" type="GstRTSPConnection*"/>
+					<parameter name="tunneled" type="gboolean"/>
+				</parameters>
+			</method>
 			<method name="write" symbol="gst_rtsp_connection_write">
 				<return-type type="GstRTSPResult"/>
 				<parameters>
@@ -346,6 +418,14 @@
 					<parameter name="size" type="guint"/>
 				</parameters>
 			</method>
+			<method name="take_header" symbol="gst_rtsp_message_take_header">
+				<return-type type="GstRTSPResult"/>
+				<parameters>
+					<parameter name="msg" type="GstRTSPMessage*"/>
+					<parameter name="field" type="GstRTSPHeaderField"/>
+					<parameter name="value" type="gchar*"/>
+				</parameters>
+			</method>
 			<method name="unset" symbol="gst_rtsp_message_unset">
 				<return-type type="GstRTSPResult"/>
 				<parameters>
@@ -372,6 +452,12 @@
 					<parameter name="range" type="GstRTSPTimeRange**"/>
 				</parameters>
 			</method>
+			<method name="to_string" symbol="gst_rtsp_range_to_string">
+				<return-type type="gchar*"/>
+				<parameters>
+					<parameter name="range" type="GstRTSPTimeRange*"/>
+				</parameters>
+			</method>
 			<field name="min" type="gint"/>
 			<field name="max" type="gint"/>
 		</struct>
@@ -447,7 +533,59 @@
 			<field name="server_port" type="GstRTSPRange"/>
 			<field name="ssrc" type="guint"/>
 		</struct>
-		<struct name="GstRTSPUrl">
+		<struct name="GstRTSPWatch">
+			<method name="attach" symbol="gst_rtsp_watch_attach">
+				<return-type type="guint"/>
+				<parameters>
+					<parameter name="watch" type="GstRTSPWatch*"/>
+					<parameter name="context" type="GMainContext*"/>
+				</parameters>
+			</method>
+			<method name="new" symbol="gst_rtsp_watch_new">
+				<return-type type="GstRTSPWatch*"/>
+				<parameters>
+					<parameter name="conn" type="GstRTSPConnection*"/>
+					<parameter name="funcs" type="GstRTSPWatchFuncs*"/>
+					<parameter name="user_data" type="gpointer"/>
+					<parameter name="notify" type="GDestroyNotify"/>
+				</parameters>
+			</method>
+			<method name="queue_message" symbol="gst_rtsp_watch_queue_message">
+				<return-type type="guint"/>
+				<parameters>
+					<parameter name="watch" type="GstRTSPWatch*"/>
+					<parameter name="message" type="GstRTSPMessage*"/>
+				</parameters>
+			</method>
+			<method name="reset" symbol="gst_rtsp_watch_reset">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="watch" type="GstRTSPWatch*"/>
+				</parameters>
+			</method>
+			<method name="unref" symbol="gst_rtsp_watch_unref">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="watch" type="GstRTSPWatch*"/>
+				</parameters>
+			</method>
+		</struct>
+		<struct name="GstRTSPWatchFuncs">
+			<field name="message_received" type="GCallback"/>
+			<field name="message_sent" type="GCallback"/>
+			<field name="closed" type="GCallback"/>
+			<field name="error" type="GCallback"/>
+			<field name="tunnel_start" type="GCallback"/>
+			<field name="tunnel_complete" type="GCallback"/>
+			<field name="_gst_reserved" type="gpointer[]"/>
+		</struct>
+		<boxed name="GstRTSPUrl" type-name="GstRTSPUrl" get-type="gst_rtsp_url_get_type">
+			<method name="copy" symbol="gst_rtsp_url_copy">
+				<return-type type="GstRTSPUrl*"/>
+				<parameters>
+					<parameter name="url" type="GstRTSPUrl*"/>
+				</parameters>
+			</method>
 			<method name="free" symbol="gst_rtsp_url_free">
 				<return-type type="void"/>
 				<parameters>
@@ -489,7 +627,7 @@
 			<field name="port" type="guint16"/>
 			<field name="abspath" type="gchar*"/>
 			<field name="query" type="gchar*"/>
-		</struct>
+		</boxed>
 		<enum name="GstRTSPAuthMethod" type-name="GstRTSPAuthMethod" get-type="gst_rtsp_auth_method_get_type">
 			<member name="GST_RTSP_AUTH_NONE" value="0"/>
 			<member name="GST_RTSP_AUTH_BASIC" value="1"/>
@@ -555,12 +693,15 @@
 			<member name="GST_RTSP_HDR_LANGUAGE" value="51"/>
 			<member name="GST_RTSP_HDR_PLAYER_START_TIME" value="52"/>
 			<member name="GST_RTSP_HDR_LOCATION" value="53"/>
+			<member name="GST_RTSP_HDR_ETAG" value="54"/>
+			<member name="GST_RTSP_HDR_IF_MATCH" value="55"/>
 		</enum>
 		<enum name="GstRTSPLowerTrans">
 			<member name="GST_RTSP_LOWER_TRANS_UNKNOWN" value="0"/>
 			<member name="GST_RTSP_LOWER_TRANS_UDP" value="1"/>
 			<member name="GST_RTSP_LOWER_TRANS_UDP_MCAST" value="2"/>
 			<member name="GST_RTSP_LOWER_TRANS_TCP" value="4"/>
+			<member name="GST_RTSP_LOWER_TRANS_HTTP" value="16"/>
 		</enum>
 		<enum name="GstRTSPMsgType">
 			<member name="GST_RTSP_MESSAGE_INVALID" value="0"/>
@@ -596,7 +737,9 @@
 			<member name="GST_RTSP_ENET" value="-12"/>
 			<member name="GST_RTSP_ENOTIP" value="-13"/>
 			<member name="GST_RTSP_ETIMEOUT" value="-14"/>
-			<member name="GST_RTSP_ELAST" value="-15"/>
+			<member name="GST_RTSP_ETGET" value="-15"/>
+			<member name="GST_RTSP_ETPOST" value="-16"/>
+			<member name="GST_RTSP_ELAST" value="-17"/>
 		</enum>
 		<enum name="GstRTSPState" type-name="GstRTSPState" get-type="gst_rtsp_state_get_type">
 			<member name="GST_RTSP_STATE_INVALID" value="0"/>
@@ -731,6 +874,13 @@
 					<parameter name="s" type="GstStructure*"/>
 				</parameters>
 			</method>
+			<method name="receive_request" symbol="gst_rtsp_extension_receive_request">
+				<return-type type="GstRTSPResult"/>
+				<parameters>
+					<parameter name="ext" type="GstRTSPExtension*"/>
+					<parameter name="req" type="GstRTSPMessage*"/>
+				</parameters>
+			</method>
 			<method name="send" symbol="gst_rtsp_extension_send">
 				<return-type type="GstRTSPResult"/>
 				<parameters>
@@ -806,6 +956,13 @@
 					<parameter name="s" type="GstStructure*"/>
 				</parameters>
 			</vfunc>
+			<vfunc name="receive_request">
+				<return-type type="GstRTSPResult"/>
+				<parameters>
+					<parameter name="ext" type="GstRTSPExtension*"/>
+					<parameter name="req" type="GstRTSPMessage*"/>
+				</parameters>
+			</vfunc>
 			<vfunc name="setup_media">
 				<return-type type="GstRTSPResult"/>
 				<parameters>
diff --git a/vapi/packages/gstreamer-rtsp-0.10/gstreamer-rtsp-0.10.metadata b/vapi/packages/gstreamer-rtsp-0.10/gstreamer-rtsp-0.10.metadata
index 994a805..35a23b4 100644
--- a/vapi/packages/gstreamer-rtsp-0.10/gstreamer-rtsp-0.10.metadata
+++ b/vapi/packages/gstreamer-rtsp-0.10/gstreamer-rtsp-0.10.metadata
@@ -42,11 +42,15 @@ gst_rtsp_message_get_header.value is_out="1"
 gst_rtsp_message_set_body.data is_array="1"
 gst_rtsp_message_steal_body.data is_array="1" is_out="1" value_owned="1"
 gst_rtsp_message_take_body.data is_array="1" takes_ownership="1"
+gst_rtsp_message_take_header.value takes_ownership="1"
+gst_rtsp_options_as_text transfer_ownership="1"
 gst_rtsp_range_parse.range transfer_ownership="1"
+gst_rtsp_range_to_string transfer_ownership="1"
 gst_rtsp_status_as_text cheader_filename="gst/rtsp/gstrtspdefs.h"
 gst_rtsp_strresult cheader_filename="gst/rtsp/gstrtspdefs.h"
 gst_rtsp_transport_new hidden="1"
 gst_rtsp_transport_as_text transfer_ownership="1"
+gst_rtsp_url_copy transfer_ownership="1"
 gst_rtsp_url_get_request_uri transfer_ownership="1"
 gst_rtsp_url_parse.url transfer_ownership="1"
 gst_rtsp_version_as_text cheader_filename="gst/rtsp/gstrtspdefs.h"



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