From 748290b8882219404be4d4e056bb047c82fe055d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20P=C3=B6lsterl?= Date: Mon, 13 Jul 2009 11:31:23 +0200 Subject: [PATCH] bindings: update vala bindings with new method --- bindings/vala/gst-rtsp-server-0.10.vapi | 9 ++++++++ .../vala/packages/gst-rtsp-server-0.10.gi | 21 +++++++++++++++++++ .../packages/gst-rtsp-server-0.10.metadata | 2 ++ 3 files changed, 32 insertions(+) diff --git a/bindings/vala/gst-rtsp-server-0.10.vapi b/bindings/vala/gst-rtsp-server-0.10.vapi index bcc53a1915..46a8ed4a87 100644 --- a/bindings/vala/gst-rtsp-server-0.10.vapi +++ b/bindings/vala/gst-rtsp-server-0.10.vapi @@ -209,6 +209,7 @@ namespace Gst { [NoWrapper] public virtual string create_session_id (); public GLib.TimeoutSource create_watch (); + public GLib.List 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); diff --git a/bindings/vala/packages/gst-rtsp-server-0.10.gi b/bindings/vala/packages/gst-rtsp-server-0.10.gi index 7088f45891..76671d9f5d 100644 --- a/bindings/vala/packages/gst-rtsp-server-0.10.gi +++ b/bindings/vala/packages/gst-rtsp-server-0.10.gi @@ -41,6 +41,14 @@ + + + + + + + + @@ -147,6 +155,11 @@ + + + + + @@ -639,6 +652,14 @@ + + + + + + + + diff --git a/bindings/vala/packages/gst-rtsp-server-0.10.metadata b/bindings/vala/packages/gst-rtsp-server-0.10.metadata index ed7fffe237..861e11e8d4 100644 --- a/bindings/vala/packages/gst-rtsp-server-0.10.metadata +++ b/bindings/vala/packages/gst-rtsp-server-0.10.metadata @@ -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"