From: Sebastian Pölsterl Date: Sun, 5 Apr 2009 11:54:26 +0000 (+0200) Subject: gstreamer-rtsp-0.10: Update bindings X-Git-Tag: 0.6.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb29282dfbea32a9a7c47f88b72a993cfeac8c34;p=thirdparty%2Fvala.git gstreamer-rtsp-0.10: Update bindings --- diff --git a/vapi/gstreamer-rtsp-0.10.vapi b/vapi/gstreamer-rtsp-0.10.vapi index eae741a2e..ba2df3be0 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 264001577..be3546cd3 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 @@ + + + + + + @@ -58,6 +64,13 @@ + + + + + + + @@ -84,6 +97,13 @@ + + + + + + + @@ -103,6 +123,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -167,6 +217,21 @@ + + + + + + + + + + + + + + + @@ -174,6 +239,13 @@ + + + + + + + @@ -346,6 +418,14 @@ + + + + + + + + @@ -372,6 +452,12 @@ + + + + + + @@ -447,7 +533,59 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -489,7 +627,7 @@ - + @@ -555,12 +693,15 @@ + + + @@ -596,7 +737,9 @@ - + + + @@ -731,6 +874,13 @@ + + + + + + + @@ -806,6 +956,13 @@ + + + + + + + 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 994a8056f..35a23b457 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"