From: Sebastian Pölsterl Date: Fri, 12 Jun 2009 17:28:04 +0000 (+0200) Subject: Updated Vala bindings X-Git-Tag: 1.19.3~495^2~1522 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=833a3d467c7bfea9a8a3ff5b7742b588f82471ea;p=platform%2Fupstream%2Fgstreamer.git Updated Vala bindings --- diff --git a/bindings/vala/gst-rtsp-server-0.10.vapi b/bindings/vala/gst-rtsp-server-0.10.vapi index df2e3a1..fff8c6a 100644 --- a/bindings/vala/gst-rtsp-server-0.10.vapi +++ b/bindings/vala/gst-rtsp-server-0.10.vapi @@ -25,7 +25,9 @@ namespace Gst { public class RTSPMedia : GLib.Object { public int active; public bool buffering; + public weak GLib.List @dynamic; public weak Gst.Element element; + public weak Gst.Element fakesink; public uint id; public bool is_live; public weak Gst.Element pipeline; @@ -50,7 +52,7 @@ namespace Gst { public void set_reusable (bool reusable); public void set_shared (bool shared); public bool set_state (Gst.State state, GLib.Array trans); - public bool unprepare (); + public virtual bool unprepare (); [NoAccessorMethod] public bool reusable { get; set; } [NoAccessorMethod] @@ -62,10 +64,13 @@ namespace Gst { public weak GLib.Mutex @lock; public weak GLib.HashTable medias; public weak GLib.Mutex medias_lock; + public void collect_streams (Gst.RTSPUrl url, Gst.RTSPMedia media); [NoWrapper] public virtual void configure (Gst.RTSPMedia media); public virtual Gst.RTSPMedia? @construct (Gst.RTSPUrl url); [NoWrapper] + public virtual Gst.Element create_pipeline (Gst.RTSPMedia media); + [NoWrapper] public virtual string gen_key (Gst.RTSPUrl url); [NoWrapper] public virtual Gst.Element? get_element (Gst.RTSPUrl url); @@ -102,12 +107,17 @@ namespace Gst { public weak Gst.Element payloader; public bool prepared; public weak Gst.Pad recv_rtcp_sink; + public weak Gst.Pad recv_rtp_sink; + [CCode (array_length = false)] + public weak Gst.Element[] selector; public weak Gst.Pad send_rtcp_src; public weak Gst.Pad send_rtp_sink; public weak Gst.Pad send_rtp_src; public weak Gst.RTSPRange server_port; public weak GLib.Object session; public weak Gst.Pad srcpad; + [CCode (array_length = false)] + public weak Gst.Element[] tee; public weak GLib.List transports; [CCode (array_length = false)] public weak Gst.Element[] udpsink; @@ -117,12 +127,18 @@ namespace Gst { public Gst.FlowReturn rtp (Gst.Buffer buffer); } [Compact] - [CCode (cheader_filename = "gst/gst.h")] + [CCode (cheader_filename = "gst/rtsp-server/rtsp-media.h")] public class RTSPMediaTrans { + public bool active; public uint idx; + public weak GLib.DestroyNotify ka_notify; + public void* ka_user_data; + public weak Gst.RTSPKeepAliveFunc keep_alive; public weak GLib.DestroyNotify notify; + public weak GLib.Object rtpsource; public weak Gst.RTSPSendFunc send_rtcp; public weak Gst.RTSPSendFunc send_rtp; + public bool timeout; public weak Gst.RTSPTransport transport; public void* user_data; } @@ -207,12 +223,19 @@ namespace Gst { public weak Gst.RTSPMediaStream media_stream; public weak Gst.RTSPMediaTrans trans; public void set_callbacks (Gst.RTSPSendFunc send_rtp, Gst.RTSPSendFunc send_rtcp, GLib.DestroyNotify notify); + public void set_keepalive (Gst.RTSPKeepAliveFunc keep_alive, GLib.DestroyNotify notify); public Gst.RTSPTransport set_transport (Gst.RTSPTransport ct); } - [CCode (cheader_filename = "gst/gst.h")] + [CCode (cheader_filename = "gst/rtsp-server/rtsp-media.h")] + public delegate void RTSPKeepAliveFunc (); + [CCode (cheader_filename = "gst/rtsp-server/rtsp-media.h")] public delegate bool RTSPSendFunc (Gst.Buffer buffer, uchar channel); - [CCode (cheader_filename = "gst/gst.h")] + [CCode (cheader_filename = "gst/rtsp-server/rtsp-session-pool.h")] public delegate bool RTSPSessionPoolFunc (Gst.RTSPSessionPool pool); [CCode (cheader_filename = "gst/gst.h")] - public static Gst.SDPMessage rtsp_sdp_from_media (Gst.RTSPMedia media); + public static Gst.RTSPResult rtsp_params_get (Gst.RTSPClient client, Gst.RTSPUrl uri, Gst.RTSPSession session, Gst.RTSPMessage request, Gst.RTSPMessage response); + [CCode (cheader_filename = "gst/gst.h")] + public static Gst.RTSPResult rtsp_params_set (Gst.RTSPClient client, Gst.RTSPUrl uri, Gst.RTSPSession session, Gst.RTSPMessage request, Gst.RTSPMessage response); + [CCode (cheader_filename = "gst/rtsp-server/rtsp-sdp.h")] + public static unowned Gst.SDPMessage rtsp_sdp_from_media (Gst.RTSPMedia media); } diff --git a/bindings/vala/packages/gst-rtsp-server-0.10.gi b/bindings/vala/packages/gst-rtsp-server-0.10.gi index 8a89bf0..3bac553 100644 --- a/bindings/vala/packages/gst-rtsp-server-0.10.gi +++ b/bindings/vala/packages/gst-rtsp-server-0.10.gi @@ -1,12 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -41,6 +67,7 @@ + @@ -49,6 +76,8 @@ + + @@ -60,7 +89,13 @@ + + + + + + @@ -93,6 +128,15 @@ + + + + + + + + + @@ -243,14 +287,22 @@ + + + + + + + + @@ -260,6 +312,14 @@ + + + + + + + + @@ -312,6 +372,13 @@ + + + + + + + diff --git a/bindings/vala/packages/gst-rtsp-server-0.10.metadata b/bindings/vala/packages/gst-rtsp-server-0.10.metadata index ba1409d..ed7fffe 100644 --- a/bindings/vala/packages/gst-rtsp-server-0.10.metadata +++ b/bindings/vala/packages/gst-rtsp-server-0.10.metadata @@ -1,6 +1,7 @@ Gst cprefix="Gst" lower_case_cprefix="gst_" cheader_filename="gst/gst.h" GstRTSPClient cheader_filename="gst/rtsp-server/rtsp-client.h" GstRTSPMedia cheader_filename="gst/rtsp-server/rtsp-media.h" +GstRTSPMediaTrans cheader_filename="gst/rtsp-server/rtsp-media.h" GstRTSPMediaFactory cheader_filename="gst/rtsp-server/rtsp-media-factory.h" GstRTSPMediaMapping cheader_filename="gst/rtsp-server/rtsp-media-mapping.h" GstRTSPMediaStream cheader_filename="gst/rtsp-server/rtsp-media.h" @@ -15,6 +16,7 @@ gst_rtsp_media_factory_get_launch transfer_ownership="1" gst_rtsp_media_factory_construct transfer_ownership="1" nullable="1" gst_rtsp_media_factory_gen_key transfer_ownership="1" gst_rtsp_media_factory_get_element transfer_ownership="1" nullable="1" +gst_rtsp_media_factory_create_pipeline transfer_ownership="1" gst_rtsp_media_mapping_find_factory transfer_ownership="1" nullable="1" gst_rtsp_media_mapping_find_media transfer_ownership="1" nullable="1" gst_rtsp_sdp_from_media transfer_ownership="1" @@ -30,3 +32,7 @@ gst_rtsp_session_pool_create_session_id transfer_ownership="1" gst_rtsp_session_pool_create_watch transfer_ownership="1" gst_rtsp_session_pool_find transfer_ownership="1" nullable="1" gst_rtsp_session_stream_set_transport transfer_ownership="1" +GstRTSPKeepAliveFunc cheader_filename="gst/rtsp-server/rtsp-media.h" +GstRTSPSendFunc cheader_filename="gst/rtsp-server/rtsp-media.h" +GstRTSPSessionPoolFunc cheader_filename="gst/rtsp-server/rtsp-session-pool.h" +gst_rtsp_sdp_from_media cheader_filename="gst/rtsp-server/rtsp-sdp.h"