mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
bindings: update vala bindings with new method
This commit is contained in:
parent
a4c90c28c7
commit
748290b888
3 changed files with 32 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -41,6 +41,14 @@
|
|||
<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>
|
||||
|
@ -147,6 +155,11 @@
|
|||
<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"/>
|
||||
|
@ -639,6 +652,14 @@
|
|||
<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>
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue