bindings: update vala bindings with new method
authorSebastian Pölsterl <sebp@k-d-w.org>
Mon, 13 Jul 2009 09:31:23 +0000 (11:31 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 13 Jul 2009 09:31:23 +0000 (11:31 +0200)
bindings/vala/gst-rtsp-server-0.10.vapi
bindings/vala/packages/gst-rtsp-server-0.10.gi
bindings/vala/packages/gst-rtsp-server-0.10.metadata

index bcc53a19150c30ca085bb717e508f91d78b982ef..46a8ed4a87ec89ce6296b46e602d27a92b58115c 100644 (file)
@@ -209,6 +209,7 @@ namespace Gst {
                [NoWrapper]
                public virtual string create_session_id ();
                public GLib.TimeoutSource create_watch ();
+               public GLib.List<Gst.RTSPSession> filter (Gst.RTSPSessionFilterFunc func);
                public Gst.RTSPSession? find (string sessionid);
                public uint get_max_sessions ();
                public uint get_n_sessions ();
@@ -227,11 +228,19 @@ namespace Gst {
                public void set_keepalive (Gst.RTSPKeepAliveFunc keep_alive, GLib.DestroyNotify notify);
                public Gst.RTSPTransport set_transport (Gst.RTSPTransport ct);
        }
+       [CCode (cprefix = "GST_RTSP_FILTER_", has_type_id = "0", cheader_filename = "gst/gst.h")]
+       public enum RTSPFilterResult {
+               REMOVE,
+               KEEP,
+               REF
+       }
        [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/rtsp-server/rtsp-session-pool.h")]
+       public delegate Gst.RTSPFilterResult RTSPSessionFilterFunc (Gst.RTSPSessionPool pool, Gst.RTSPSession session);
+       [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.RTSPResult rtsp_params_get (Gst.RTSPClient client, Gst.RTSPUrl uri, Gst.RTSPSession session, Gst.RTSPMessage request, Gst.RTSPMessage response);
index 7088f458911cdcb4e69eaa1f5feb13ae7bfc8f96..76671d9f5d3160f5e1451653ea2bb4fb882fa040 100644 (file)
                                <parameter name="user_data" type="gpointer"/>
                        </parameters>
                </callback>
+               <callback name="GstRTSPSessionFilterFunc">
+                       <return-type type="GstRTSPFilterResult"/>
+                       <parameters>
+                               <parameter name="pool" type="GstRTSPSessionPool*"/>
+                               <parameter name="session" type="GstRTSPSession*"/>
+                               <parameter name="user_data" type="gpointer"/>
+                       </parameters>
+               </callback>
                <callback name="GstRTSPSessionPoolFunc">
                        <return-type type="gboolean"/>
                        <parameters>
                        <field name="trans" type="GstRTSPMediaTrans"/>
                        <field name="media_stream" type="GstRTSPMediaStream*"/>
                </struct>
+               <enum name="GstRTSPFilterResult">
+                       <member name="GST_RTSP_FILTER_REMOVE" value="0"/>
+                       <member name="GST_RTSP_FILTER_KEEP" value="1"/>
+                       <member name="GST_RTSP_FILTER_REF" value="2"/>
+               </enum>
                <object name="GstRTSPClient" parent="GObject" type-name="GstRTSPClient" get-type="gst_rtsp_client_get_type">
                        <method name="accept" symbol="gst_rtsp_client_accept">
                                <return-type type="gboolean"/>
                                        <parameter name="pool" type="GstRTSPSessionPool*"/>
                                </parameters>
                        </method>
+                       <method name="filter" symbol="gst_rtsp_session_pool_filter">
+                               <return-type type="GList*"/>
+                               <parameters>
+                                       <parameter name="pool" type="GstRTSPSessionPool*"/>
+                                       <parameter name="func" type="GstRTSPSessionFilterFunc"/>
+                                       <parameter name="user_data" type="gpointer"/>
+                               </parameters>
+                       </method>
                        <method name="find" symbol="gst_rtsp_session_pool_find">
                                <return-type type="GstRTSPSession*"/>
                                <parameters>
index ed7fffe237a2455e23b28c2e401da0d3f8c06ab7..861e11e8d4197ef39460061b4be4c8d7c8ae27fa 100644 (file)
@@ -10,6 +10,7 @@ GstRTSPSession cheader_filename="gst/rtsp-server/rtsp-session.h"
 GstRTSPSessionMedia cheader_filename="gst/rtsp-server/rtsp-session.h"
 GstRTSPSessionPool cheader_filename="gst/rtsp-server/rtsp-session-pool.h"
 GstRTSPSessionStream cheader_filename="gst/rtsp-server/rtsp-session.h"
+GstRTSPSessionFilterFunc cheader_filename="gst/rtsp-server/rtsp-session-pool.h"
 gst_rtsp_client_get_media_mapping transfer_ownership="1"
 gst_rtsp_client_get_session_pool transfer_ownership="1"
 gst_rtsp_media_factory_get_launch transfer_ownership="1"
@@ -31,6 +32,7 @@ gst_rtsp_session_pool_create transfer_ownership="1"
 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_pool_filter transfer_ownership="1" type_arguments="RTSPSession"
 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"