1 /* gstreamer-rtsp-server-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", gir_namespace = "GstRtspServer", gir_version = "1.0", lower_case_cprefix = "gst_")]
6 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPAddress", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_cprefix = "gst_rtsp_address_", type_id = "gst_rtsp_address_get_type ()")]
8 [GIR (name = "RTSPAddress")]
10 public string address;
12 public Gst.RTSPServer.AddressPool pool;
15 public Gst.RTSPServer.Address copy ();
18 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPAddressPool", lower_case_cprefix = "gst_rtsp_address_pool_", type_id = "gst_rtsp_address_pool_get_type ()")]
19 [GIR (name = "RTSPAddressPool")]
20 public class AddressPool : GLib.Object {
21 [CCode (cname = "GST_RTSP_ADDRESS_POOL_ANY_IPV4")]
22 public const string ANY_IPV4;
23 [CCode (cname = "GST_RTSP_ADDRESS_POOL_ANY_IPV6")]
24 public const string ANY_IPV6;
25 [CCode (has_construct_function = false)]
26 public AddressPool ();
27 public Gst.RTSPServer.Address? acquire_address (Gst.RTSPServer.AddressFlags flags, int n_ports);
28 public bool add_range (string min_address, string max_address, uint16 min_port, uint16 max_port, uint8 ttl);
31 public bool has_unicast_addresses ();
32 public Gst.RTSPServer.AddressPoolResult reserve_address (string ip_address, uint port, uint n_ports, uint ttl, out Gst.RTSPServer.Address address);
34 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPAuth", lower_case_cprefix = "gst_rtsp_auth_", type_id = "gst_rtsp_auth_get_type ()")]
35 [GIR (name = "RTSPAuth")]
36 public class Auth : GLib.Object {
37 [CCode (cname = "GST_RTSP_AUTH_CHECK_CONNECT")]
38 public const string CHECK_CONNECT;
39 [CCode (cname = "GST_RTSP_AUTH_CHECK_MEDIA_FACTORY_ACCESS")]
40 public const string CHECK_MEDIA_FACTORY_ACCESS;
41 [CCode (cname = "GST_RTSP_AUTH_CHECK_MEDIA_FACTORY_CONSTRUCT")]
42 public const string CHECK_MEDIA_FACTORY_CONSTRUCT;
43 [CCode (cname = "GST_RTSP_AUTH_CHECK_TRANSPORT_CLIENT_SETTINGS")]
44 public const string CHECK_TRANSPORT_CLIENT_SETTINGS;
45 [CCode (cname = "GST_RTSP_AUTH_CHECK_URL")]
46 public const string CHECK_URL;
47 [CCode (has_construct_function = false)]
49 public void add_basic (string basic, Gst.RTSPServer.Token token);
51 public virtual bool authenticate (Gst.RTSPServer.Context ctx);
53 public virtual bool check (Gst.RTSPServer.Context ctx, string check);
54 [CCode (cname = "gst_rtsp_auth_check")]
55 public static bool check_current_context (string check);
56 public Gst.RTSPServer.Token get_default_token ();
57 public GLib.TlsCertificate get_tls_certificate ();
58 public static string make_basic (string user, string pass);
59 public void remove_basic (string basic);
60 public void set_default_token (Gst.RTSPServer.Token? token);
61 public void set_tls_certificate (GLib.TlsCertificate? cert);
63 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPClient", lower_case_cprefix = "gst_rtsp_client_", type_id = "gst_rtsp_client_get_type ()")]
64 [GIR (name = "RTSPClient")]
65 public class Client : GLib.Object {
66 [CCode (has_construct_function = false)]
68 public uint attach (GLib.MainContext? context);
70 public virtual bool configure_client_media (Gst.RTSPServer.Media media, Gst.RTSPServer.Stream stream, Gst.RTSPServer.Context ctx);
72 public virtual bool configure_client_transport (Gst.RTSPServer.Context ctx, Gst.RTSP.Transport ct);
74 public virtual Gst.SDP.Message create_sdp (Gst.RTSPServer.Media media);
76 public virtual void describe_request (Gst.RTSPServer.Context ctx);
77 public Gst.RTSPServer.Auth get_auth ();
78 public unowned Gst.RTSP.Connection get_connection ();
79 public Gst.RTSPServer.MountPoints get_mount_points ();
81 public virtual void get_parameter_request (Gst.RTSPServer.Context ctx);
82 public Gst.RTSPServer.SessionPool get_session_pool ();
83 public Gst.RTSPServer.ThreadPool get_thread_pool ();
84 public Gst.RTSP.Result handle_message (Gst.RTSP.Message message);
86 public virtual void handle_response (Gst.RTSPServer.Context ctx);
88 public virtual string make_path_from_uri (Gst.RTSP.Url uri);
90 public virtual void options_request (Gst.RTSPServer.Context ctx);
92 public virtual Gst.RTSP.Result params_get (Gst.RTSPServer.Context ctx);
94 public virtual Gst.RTSP.Result params_set (Gst.RTSPServer.Context ctx);
96 public virtual void pause_request (Gst.RTSPServer.Context ctx);
98 public virtual void play_request (Gst.RTSPServer.Context ctx);
99 public GLib.List<Gst.RTSPServer.Session> session_filter (Gst.RTSPServer.ClientSessionFilterFunc? func);
100 public void set_auth (Gst.RTSPServer.Auth auth);
101 public bool set_connection (owned Gst.RTSP.Connection conn);
102 public void set_mount_points (Gst.RTSPServer.MountPoints mounts);
104 public virtual void set_parameter_request (Gst.RTSPServer.Context ctx);
105 public void set_send_func (owned Gst.RTSPServer.ClientSendFunc func);
106 public void set_session_pool (Gst.RTSPServer.SessionPool pool);
107 public void set_thread_pool (Gst.RTSPServer.ThreadPool pool);
109 public virtual void setup_request (Gst.RTSPServer.Context ctx);
111 public virtual void teardown_request (Gst.RTSPServer.Context ctx);
113 public virtual void tunnel_http_response (Gst.RTSP.Message request, Gst.RTSP.Message response);
115 public bool drop_backlog { get; set; }
116 public Gst.RTSPServer.MountPoints mount_points { owned get; set; }
117 public Gst.RTSPServer.SessionPool session_pool { owned get; set; }
118 public virtual signal void closed ();
119 public virtual signal void new_session (Gst.RTSPServer.Session session);
121 public signal void send_message (Gst.RTSPServer.Session session, Gst.RTSP.Message message);
123 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPMedia", lower_case_cprefix = "gst_rtsp_media_", type_id = "gst_rtsp_media_get_type ()")]
124 [GIR (name = "RTSPMedia")]
125 public class Media : GLib.Object {
126 [CCode (has_construct_function = false)]
127 public Media (owned Gst.Element element);
128 public void collect_streams ();
130 public virtual bool convert_range (Gst.RTSP.TimeRange range, Gst.RTSP.RangeUnit unit);
131 [CCode (returns_floating_reference = true)]
133 public virtual Gst.Element create_rtpbin ();
134 public unowned Gst.RTSPServer.Stream create_stream (Gst.Element payloader, Gst.Pad srcpad);
135 public unowned Gst.RTSPServer.Stream? find_stream (string control);
136 public Gst.RTSPServer.AddressPool get_address_pool ();
137 public Gst.ClockTime get_base_time ();
138 public uint get_buffer_size ();
139 public Gst.Clock get_clock ();
140 public Gst.Element get_element ();
141 public Gst.RTSPServer.Permissions get_permissions ();
142 public Gst.RTSP.Profile get_profiles ();
143 public Gst.RTSP.LowerTrans get_protocols ();
144 public string get_range_string (bool play, Gst.RTSP.RangeUnit unit);
145 public Gst.RTSPServer.MediaStatus get_status ();
146 public unowned Gst.RTSPServer.Stream? get_stream (uint idx);
147 public Gst.RTSPServer.SuspendMode get_suspend_mode ();
148 public Gst.Net.TimeProvider get_time_provider (string? address, uint16 port);
150 public virtual bool handle_message (Gst.Message message);
151 public bool is_eos_shutdown ();
152 public bool is_reusable ();
153 public bool is_shared ();
154 public bool is_time_provider ();
155 public uint n_streams ();
156 public virtual bool prepare (owned Gst.RTSPServer.Thread? thread);
158 public virtual bool query_position (int64 position);
160 public virtual bool query_stop (int64 stop);
161 public bool seek (Gst.RTSP.TimeRange range);
162 public void set_address_pool (Gst.RTSPServer.AddressPool pool);
163 public void set_buffer_size (uint size);
164 public void set_eos_shutdown (bool eos_shutdown);
165 public void set_permissions (Gst.RTSPServer.Permissions permissions);
166 public void set_pipeline_state (Gst.State state);
167 public void set_profiles (Gst.RTSP.Profile profiles);
168 public void set_protocols (Gst.RTSP.LowerTrans protocols);
169 public void set_reusable (bool reusable);
170 public void set_shared (bool shared);
171 public bool set_state (Gst.State state, GLib.GenericArray<Gst.RTSPServer.StreamTransport> transports);
172 public void set_suspend_mode (Gst.RTSPServer.SuspendMode mode);
174 public virtual bool setup_rtpbin (Gst.Element rtpbin);
175 public virtual bool setup_sdp (Gst.SDP.Message sdp, Gst.RTSPServer.SDPInfo info);
176 public virtual bool suspend ();
177 public void take_pipeline (owned Gst.Pipeline pipeline);
178 public virtual bool unprepare ();
179 public virtual bool unsuspend ();
180 public void use_time_provider (bool time_provider);
181 public uint buffer_size { get; set; }
182 public Gst.Element element { owned get; construct; }
184 public bool eos_shutdown { get; set; }
185 public Gst.RTSP.Profile profiles { get; set; }
186 public Gst.RTSP.LowerTrans protocols { get; set; }
188 public bool reusable { get; set; }
190 public bool shared { get; set; }
191 public Gst.RTSPServer.SuspendMode suspend_mode { get; set; }
193 public bool time_provider { get; set; }
194 public virtual signal void new_state (int state);
195 public virtual signal void new_stream (Gst.RTSPServer.Stream stream);
196 public virtual signal void prepared ();
197 public virtual signal void removed_stream (Gst.RTSPServer.Stream stream);
198 public virtual signal void target_state (int state);
199 public virtual signal void unprepared ();
201 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPMediaFactory", lower_case_cprefix = "gst_rtsp_media_factory_", type_id = "gst_rtsp_media_factory_get_type ()")]
202 [GIR (name = "RTSPMediaFactory")]
203 public class MediaFactory : GLib.Object {
204 [CCode (has_construct_function = false)]
205 public MediaFactory ();
206 public void add_role (string role, string fieldname, ...);
208 public virtual void configure (Gst.RTSPServer.Media media);
209 public virtual Gst.RTSPServer.Media @construct (Gst.RTSP.Url url);
210 [CCode (returns_floating_reference = true)]
211 public virtual Gst.Element create_element (Gst.RTSP.Url url);
212 [CCode (returns_floating_reference = true)]
214 public virtual Gst.Pipeline create_pipeline (Gst.RTSPServer.Media media);
216 public virtual string gen_key (Gst.RTSP.Url url);
217 public Gst.RTSPServer.AddressPool get_address_pool ();
218 public uint get_buffer_size ();
219 public string get_launch ();
220 public Gst.RTSPServer.Permissions get_permissions ();
221 public Gst.RTSP.Profile get_profiles ();
222 public Gst.RTSP.LowerTrans get_protocols ();
223 public Gst.RTSPServer.SuspendMode get_suspend_mode ();
224 public bool is_eos_shutdown ();
225 public bool is_shared ();
226 public void set_address_pool (Gst.RTSPServer.AddressPool pool);
227 public void set_buffer_size (uint size);
228 public void set_eos_shutdown (bool eos_shutdown);
229 public void set_launch (string launch);
230 public void set_permissions (Gst.RTSPServer.Permissions permissions);
231 public void set_profiles (Gst.RTSP.Profile profiles);
232 public void set_protocols (Gst.RTSP.LowerTrans protocols);
233 public void set_shared (bool shared);
234 public void set_suspend_mode (Gst.RTSPServer.SuspendMode mode);
235 public uint buffer_size { get; set; }
237 public bool eos_shutdown { get; set; }
238 public string launch { owned get; set; }
239 public Gst.RTSP.Profile profiles { get; set; }
240 public Gst.RTSP.LowerTrans protocols { get; set; }
242 public bool shared { get; set; }
243 public Gst.RTSPServer.SuspendMode suspend_mode { get; set; }
244 public virtual signal void media_configure (Gst.RTSPServer.Media media);
245 public virtual signal void media_constructed (Gst.RTSPServer.Media media);
247 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPMediaFactoryURI", lower_case_cprefix = "gst_rtsp_media_factory_uri_", type_id = "gst_rtsp_media_factory_uri_get_type ()")]
248 [GIR (name = "RTSPMediaFactoryURI")]
249 public class MediaFactoryURI : Gst.RTSPServer.MediaFactory {
250 [CCode (has_construct_function = false)]
251 public MediaFactoryURI ();
252 public string get_uri ();
253 public void set_uri (string uri);
254 public string uri { owned get; set; }
256 public bool use_gstpay { get; set; }
258 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPMountPoints", lower_case_cprefix = "gst_rtsp_mount_points_", type_id = "gst_rtsp_mount_points_get_type ()")]
259 [GIR (name = "RTSPMountPoints")]
260 public class MountPoints : GLib.Object {
261 [CCode (has_construct_function = false)]
262 public MountPoints ();
263 public void add_factory (string path, owned Gst.RTSPServer.MediaFactory factory);
264 public virtual string make_path (Gst.RTSP.Url url);
265 public Gst.RTSPServer.MediaFactory match (string path, out int matched);
266 public void remove_factory (string path);
268 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPPermissions", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_cprefix = "gst_rtsp_permissions_", type_id = "gst_rtsp_permissions_get_type ()")]
270 [GIR (name = "RTSPPermissions")]
271 public class Permissions : Gst.MiniObject {
272 [CCode (cname = "GST_RTSP_PERM_MEDIA_FACTORY_ACCESS")]
273 public const string MEDIA_FACTORY_ACCESS;
274 [CCode (cname = "GST_RTSP_PERM_MEDIA_FACTORY_CONSTRUCT")]
275 public const string MEDIA_FACTORY_CONSTRUCT;
276 [CCode (has_construct_function = false)]
277 public Permissions ();
278 public void add_role (string role, string fieldname, ...);
279 public void add_role_valist (string role, string fieldname, va_list var_args);
280 public unowned Gst.Structure get_role (string role);
281 public bool is_allowed (string role, string permission);
282 public void remove_role (string role);
284 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPServer", lower_case_cprefix = "gst_rtsp_server_", type_id = "gst_rtsp_server_get_type ()")]
285 [GIR (name = "RTSPServer")]
286 public class Server : GLib.Object {
287 [CCode (has_construct_function = false)]
289 public uint attach (GLib.MainContext? context);
290 public GLib.List<Gst.RTSPServer.Client> client_filter (Gst.RTSPServer.ServerClientFilterFunc? func);
292 public virtual Gst.RTSPServer.Client create_client ();
293 public GLib.Socket create_socket (GLib.Cancellable? cancellable = null) throws GLib.Error;
294 public GLib.Source create_source (GLib.Cancellable? cancellable = null) throws GLib.Error;
295 public string get_address ();
296 public Gst.RTSPServer.Auth get_auth ();
297 public int get_backlog ();
298 public int get_bound_port ();
299 public Gst.RTSPServer.MountPoints get_mount_points ();
300 public string get_service ();
301 public Gst.RTSPServer.SessionPool get_session_pool ();
302 public Gst.RTSPServer.ThreadPool get_thread_pool ();
303 public static bool io_func (GLib.Socket socket, GLib.IOCondition condition, Gst.RTSPServer.Server server);
304 public void set_address (string address);
305 public void set_auth (Gst.RTSPServer.Auth auth);
306 public void set_backlog (int backlog);
307 public void set_mount_points (Gst.RTSPServer.MountPoints mounts);
308 public void set_service (string service);
309 public void set_session_pool (Gst.RTSPServer.SessionPool pool);
310 public void set_thread_pool (Gst.RTSPServer.ThreadPool pool);
311 public bool transfer_connection (owned GLib.Socket socket, string ip, int port, string initial_buffer);
312 public string address { owned get; set; }
313 public int backlog { get; set; }
314 public int bound_port { get; }
315 public Gst.RTSPServer.MountPoints mount_points { owned get; set; }
316 public string service { owned get; set; }
317 public Gst.RTSPServer.SessionPool session_pool { owned get; set; }
318 public virtual signal void client_connected (Gst.RTSPServer.Client client);
320 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPSession", lower_case_cprefix = "gst_rtsp_session_", type_id = "gst_rtsp_session_get_type ()")]
321 [GIR (name = "RTSPSession")]
322 public class Session : GLib.Object {
323 [CCode (has_construct_function = false)]
324 public Session (string sessionid);
325 public void allow_expire ();
326 public GLib.List<Gst.RTSPServer.SessionMedia> filter (Gst.RTSPServer.SessionFilterFunc? func);
327 public string get_header ();
328 public unowned Gst.RTSPServer.SessionMedia get_media (string path, out int matched);
329 public unowned string get_sessionid ();
330 public uint get_timeout ();
331 public bool is_expired (GLib.TimeVal now);
332 public unowned Gst.RTSPServer.SessionMedia manage_media (string path, owned Gst.RTSPServer.Media media);
333 public int next_timeout (GLib.TimeVal now);
334 public void prevent_expire ();
335 public bool release_media (Gst.RTSPServer.SessionMedia media);
336 public void set_timeout (uint timeout);
337 public void touch ();
338 public string sessionid { get; construct; }
339 public uint timeout { get; set; }
341 public bool timeout_always_visible { get; set; }
343 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPSessionMedia", lower_case_cprefix = "gst_rtsp_session_media_", type_id = "gst_rtsp_session_media_get_type ()")]
344 [GIR (name = "RTSPSessionMedia")]
345 public class SessionMedia : GLib.Object {
346 [CCode (has_construct_function = false)]
347 public SessionMedia (string path, owned Gst.RTSPServer.Media media);
348 public bool alloc_channels (out Gst.RTSP.Range range);
349 public Gst.ClockTime get_base_time ();
350 public unowned Gst.RTSPServer.Media get_media ();
351 public string? get_rtpinfo ();
352 public Gst.RTSP.State get_rtsp_state ();
353 public unowned Gst.RTSPServer.StreamTransport get_transport (uint idx);
354 public bool matches (string path, out int matched);
355 public void set_rtsp_state (Gst.RTSP.State state);
356 public bool set_state (Gst.State state);
357 public unowned Gst.RTSPServer.StreamTransport set_transport (Gst.RTSPServer.Stream stream, owned Gst.RTSP.Transport tr);
359 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPSessionPool", lower_case_cprefix = "gst_rtsp_session_pool_", type_id = "gst_rtsp_session_pool_get_type ()")]
360 [GIR (name = "RTSPSessionPool")]
361 public class SessionPool : GLib.Object {
362 [CCode (has_construct_function = false)]
363 public SessionPool ();
364 public uint cleanup ();
365 public Gst.RTSPServer.Session create ();
367 public virtual Gst.RTSPServer.Session create_session (string id);
369 public virtual string create_session_id ();
370 public GLib.Source create_watch ();
371 public GLib.List<Gst.RTSPServer.Session> filter (Gst.RTSPServer.SessionPoolFilterFunc? func);
372 public Gst.RTSPServer.Session? find (string sessionid);
373 public uint get_max_sessions ();
374 public uint get_n_sessions ();
375 public bool remove (Gst.RTSPServer.Session sess);
376 public void set_max_sessions (uint max);
377 public uint max_sessions { get; set; }
378 public virtual signal void session_removed (Gst.RTSPServer.Session session);
380 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPStream", lower_case_cprefix = "gst_rtsp_stream_", type_id = "gst_rtsp_stream_get_type ()")]
381 [GIR (name = "RTSPStream")]
382 public class Stream : GLib.Object {
383 [CCode (has_construct_function = false)]
384 public Stream (uint idx, Gst.Element payloader, Gst.Pad srcpad);
385 public bool add_transport (Gst.RTSPServer.StreamTransport trans);
386 public Gst.RTSPServer.AddressPool get_address_pool ();
387 public Gst.Caps get_caps ();
388 public string get_control ();
389 public int get_dscp_qos ();
390 public uint get_index ();
391 public uint get_mtu ();
392 public Gst.RTSPServer.Address? get_multicast_address (GLib.SocketFamily family);
393 public Gst.RTSP.Profile get_profiles ();
394 public Gst.RTSP.LowerTrans get_protocols ();
395 public uint get_pt ();
396 public GLib.Socket? get_rtcp_socket (GLib.SocketFamily family);
397 public GLib.Socket? get_rtp_socket (GLib.SocketFamily family);
398 public bool get_rtpinfo (uint? rtptime, uint? seq, uint? clock_rate, Gst.ClockTime? running_time);
399 public GLib.Object get_rtpsession ();
400 public void get_server_port (out Gst.RTSP.Range server_port, GLib.SocketFamily family);
401 public Gst.Pad get_srcpad ();
402 public void get_ssrc (out uint ssrc);
403 public bool has_control (string control);
404 public bool is_blocking ();
405 public bool is_transport_supported (Gst.RTSP.Transport transport);
406 public bool join_bin (Gst.Bin bin, Gst.Element rtpbin, Gst.State state);
407 public bool leave_bin (Gst.Bin bin, Gst.Element rtpbin);
408 public Gst.FlowReturn recv_rtcp (owned Gst.Buffer buffer);
409 public Gst.FlowReturn recv_rtp (owned Gst.Buffer buffer);
410 public bool remove_transport (Gst.RTSPServer.StreamTransport trans);
411 public Gst.RTSPServer.Address? reserve_address (string address, uint port, uint n_ports, uint ttl);
412 public void set_address_pool (Gst.RTSPServer.AddressPool pool);
413 public bool set_blocked (bool blocked);
414 public void set_control (string control);
415 public void set_dscp_qos (int dscp_qos);
416 public void set_mtu (uint mtu);
417 public void set_profiles (Gst.RTSP.Profile profiles);
418 public void set_protocols (Gst.RTSP.LowerTrans protocols);
419 public GLib.List<Gst.RTSPServer.StreamTransport> transport_filter (Gst.RTSPServer.StreamTransportFilterFunc? func);
420 public bool update_crypto (uint ssrc, Gst.Caps? crypto);
421 public string control { owned get; set; }
422 public Gst.RTSP.Profile profiles { get; set; }
423 public Gst.RTSP.LowerTrans protocols { get; set; }
424 public signal void new_rtcp_encoder (Gst.Element object);
425 public signal void new_rtp_encoder (Gst.Element object);
427 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPStreamTransport", lower_case_cprefix = "gst_rtsp_stream_transport_", type_id = "gst_rtsp_stream_transport_get_type ()")]
428 [GIR (name = "RTSPStreamTransport")]
429 public class StreamTransport : GLib.Object {
430 [CCode (has_construct_function = false)]
431 public StreamTransport (Gst.RTSPServer.Stream stream, owned Gst.RTSP.Transport tr);
432 public string? get_rtpinfo (Gst.ClockTime start_time);
433 public unowned Gst.RTSPServer.Stream get_stream ();
434 public unowned Gst.RTSP.Transport? get_transport ();
435 public unowned Gst.RTSP.Url get_url ();
436 public bool is_timed_out ();
437 public void keep_alive ();
438 public bool send_rtcp (Gst.Buffer buffer);
439 public bool send_rtp (Gst.Buffer buffer);
440 public bool set_active (bool active);
441 public void set_callbacks (Gst.RTSPServer.SendFunc send_rtp, owned Gst.RTSPServer.SendFunc send_rtcp);
442 public void set_keepalive (owned Gst.RTSPServer.KeepAliveFunc keep_alive);
443 public void set_timed_out (bool timedout);
444 public void set_transport (owned Gst.RTSP.Transport tr);
445 public void set_url (Gst.RTSP.Url url);
447 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPThread", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_cprefix = "gst_rtsp_thread_", type_id = "gst_rtsp_thread_get_type ()")]
449 [GIR (name = "RTSPThread")]
450 public class Thread : Gst.MiniObject {
451 public GLib.MainContext context;
452 public GLib.MainLoop loop;
453 public Gst.RTSPServer.ThreadType type;
454 [CCode (has_construct_function = false)]
455 public Thread (Gst.RTSPServer.ThreadType type);
456 public bool reuse ();
459 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPThreadPool", lower_case_cprefix = "gst_rtsp_thread_pool_", type_id = "gst_rtsp_thread_pool_get_type ()")]
460 [GIR (name = "RTSPThreadPool")]
461 public class ThreadPool : GLib.Object {
462 [CCode (has_construct_function = false)]
463 public ThreadPool ();
464 public static void cleanup ();
466 public virtual void configure_thread (Gst.RTSPServer.Thread thread, Gst.RTSPServer.Context ctx);
467 public int get_max_threads ();
468 public virtual Gst.RTSPServer.Thread get_thread (Gst.RTSPServer.ThreadType type, Gst.RTSPServer.Context ctx);
469 public void set_max_threads (int max_threads);
471 public virtual void thread_enter (Gst.RTSPServer.Thread thread);
473 public virtual void thread_leave (Gst.RTSPServer.Thread thread);
474 public int max_threads { get; set; }
476 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPToken", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_cprefix = "gst_rtsp_token_", type_id = "gst_rtsp_token_get_type ()")]
478 [GIR (name = "RTSPToken")]
479 public class Token : Gst.MiniObject {
480 [CCode (cname = "GST_RTSP_TOKEN_MEDIA_FACTORY_ROLE")]
481 public const string MEDIA_FACTORY_ROLE;
482 [CCode (cname = "GST_RTSP_TOKEN_TRANSPORT_CLIENT_SETTINGS")]
483 public const string TRANSPORT_CLIENT_SETTINGS;
484 [CCode (has_construct_function = false)]
485 public Token (string firstfield, ...);
486 [CCode (has_construct_function = false)]
487 public Token.empty ();
488 public unowned string? get_string (string field);
489 public unowned Gst.Structure get_structure ();
490 public bool is_allowed (string field);
491 [CCode (has_construct_function = false)]
492 public Token.valist (string firstfield, va_list var_args);
493 public unowned Gst.Structure writable_structure ();
495 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPContext", has_type_id = false)]
496 [GIR (name = "RTSPContext")]
497 public struct Context {
498 public weak Gst.RTSPServer.Server server;
499 public weak Gst.RTSP.Connection conn;
500 public weak Gst.RTSPServer.Client client;
501 public weak Gst.RTSP.Message request;
502 public weak Gst.RTSP.Url uri;
503 public Gst.RTSP.Method method;
504 public weak Gst.RTSPServer.Auth auth;
505 public weak Gst.RTSPServer.Token token;
506 public weak Gst.RTSPServer.Session session;
507 public weak Gst.RTSPServer.SessionMedia sessmedia;
508 public weak Gst.RTSPServer.MediaFactory factory;
509 public weak Gst.RTSPServer.Media media;
510 public weak Gst.RTSPServer.Stream stream;
511 public weak Gst.RTSP.Message response;
512 [CCode (cname = "gst_rtsp_context_pop_current")]
513 public void pop_current ();
514 [CCode (cname = "gst_rtsp_context_push_current")]
515 public void push_current ();
517 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstSDPInfo", has_type_id = false)]
518 [GIR (name = "SDPInfo")]
519 public struct SDPInfo {
521 public weak string server_ip;
523 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPAddressFlags", cprefix = "GST_RTSP_ADDRESS_FLAG_", has_type_id = false)]
525 [GIR (name = "RTSPAddressFlags")]
526 public enum AddressFlags {
534 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPAddressPoolResult", cprefix = "GST_RTSP_ADDRESS_POOL_", has_type_id = false)]
535 [GIR (name = "RTSPAddressPoolResult")]
536 public enum AddressPoolResult {
543 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPFilterResult", cprefix = "GST_RTSP_FILTER_", has_type_id = false)]
544 [GIR (name = "RTSPFilterResult")]
545 public enum FilterResult {
550 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPMediaStatus", cprefix = "GST_RTSP_MEDIA_STATUS_", has_type_id = false)]
551 [GIR (name = "RTSPMediaStatus")]
552 public enum MediaStatus {
560 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPSuspendMode", cprefix = "GST_RTSP_SUSPEND_MODE_", type_id = "gst_rtsp_suspend_mode_get_type ()")]
561 [GIR (name = "RTSPSuspendMode")]
562 public enum SuspendMode {
567 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPThreadType", cprefix = "GST_RTSP_THREAD_TYPE_", has_type_id = false)]
568 [GIR (name = "RTSPThreadType")]
569 public enum ThreadType {
573 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPClientSendFunc", instance_pos = 3.9)]
574 public delegate bool ClientSendFunc (Gst.RTSPServer.Client client, Gst.RTSP.Message message, bool close);
575 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPClientSessionFilterFunc", instance_pos = 2.9)]
576 public delegate Gst.RTSPServer.FilterResult ClientSessionFilterFunc (Gst.RTSPServer.Client client, Gst.RTSPServer.Session sess);
577 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPKeepAliveFunc", instance_pos = 0.9)]
578 public delegate void KeepAliveFunc ();
579 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPSendFunc", instance_pos = 2.9)]
580 public delegate bool SendFunc (Gst.Buffer buffer, uint8 channel);
581 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPServerClientFilterFunc", instance_pos = 2.9)]
582 public delegate Gst.RTSPServer.FilterResult ServerClientFilterFunc (Gst.RTSPServer.Server server, Gst.RTSPServer.Client client);
583 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPSessionFilterFunc", instance_pos = 2.9)]
584 public delegate Gst.RTSPServer.FilterResult SessionFilterFunc (Gst.RTSPServer.Session sess, Gst.RTSPServer.SessionMedia media);
585 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPSessionPoolFilterFunc", instance_pos = 2.9)]
586 public delegate Gst.RTSPServer.FilterResult SessionPoolFilterFunc (Gst.RTSPServer.SessionPool pool, Gst.RTSPServer.Session session);
587 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPSessionPoolFunc", instance_pos = 1.9)]
588 public delegate bool SessionPoolFunc (Gst.RTSPServer.SessionPool pool);
589 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPStreamTransportFilterFunc", instance_pos = 2.9)]
590 public delegate Gst.RTSPServer.FilterResult StreamTransportFilterFunc (Gst.RTSPServer.Stream stream, Gst.RTSPServer.StreamTransport trans);
591 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "gst_rtsp_context_get_type")]
592 public static GLib.Type context_get_type ();
593 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "gst_rtsp_params_get")]
594 public static Gst.RTSP.Result params_get (Gst.RTSPServer.Client client, Gst.RTSPServer.Context ctx);
595 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "gst_rtsp_params_set")]
596 public static Gst.RTSP.Result params_set (Gst.RTSPServer.Client client, Gst.RTSPServer.Context ctx);
597 [CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "gst_rtsp_sdp_from_media")]
598 public static bool sdp_from_media (Gst.SDP.Message sdp, Gst.RTSPServer.SDPInfo info, Gst.RTSPServer.Media media);