1 /* gstreamer-rtsp-0.10.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
6 [CCode (cheader_filename = "gst/rtsp/gstrtspconnection.h")]
7 public class RTSPConnection {
8 public static Gst.RTSPResult accept (int sock, out unowned Gst.RTSPConnection conn);
9 public void clear_auth_params ();
10 public Gst.RTSPResult close ();
11 public Gst.RTSPResult connect (GLib.TimeVal timeout);
12 public static Gst.RTSPResult create (Gst.RTSPUrl url, out Gst.RTSPConnection conn);
13 public Gst.RTSPResult do_tunnel (Gst.RTSPConnection conn2);
14 public Gst.RTSPResult flush (bool flush);
15 public unowned string get_ip ();
16 public int get_readfd ();
17 public unowned string get_tunnelid ();
18 public unowned Gst.RTSPUrl get_url ();
19 public int get_writefd ();
20 public bool is_tunneled ();
21 public Gst.RTSPResult next_timeout (GLib.TimeVal timeout);
22 public Gst.RTSPResult poll (Gst.RTSPEvent events, Gst.RTSPEvent revents, GLib.TimeVal timeout);
23 public Gst.RTSPResult read (uchar data, uint size, GLib.TimeVal timeout);
24 public Gst.RTSPResult receive (Gst.RTSPMessage message, GLib.TimeVal timeout);
25 public Gst.RTSPResult reset_timeout ();
26 public Gst.RTSPResult send (Gst.RTSPMessage message, GLib.TimeVal timeout);
27 public Gst.RTSPResult set_auth (Gst.RTSPAuthMethod method, string user, string pass);
28 public void set_auth_param (string param, string value);
29 public void set_ip (string ip);
30 public Gst.RTSPResult set_proxy (string host, uint port);
31 public Gst.RTSPResult set_qos_dscp (uint qos_dscp);
32 public void set_tunneled (bool tunneled);
33 public Gst.RTSPResult write (uchar data, uint size, GLib.TimeVal timeout);
36 [CCode (cheader_filename = "gst/rtsp/gstrtspmessage.h")]
37 public class RTSPMessage {
39 public uint body_size;
40 public GLib.Array hdr_fields;
41 public Gst.RTSPMsgType type;
42 public void* type_data;
43 public Gst.RTSPResult add_header (Gst.RTSPHeaderField field, string value);
44 public Gst.RTSPResult append_headers (GLib.StringBuilder str);
45 public Gst.RTSPResult dump ();
46 public Gst.RTSPResult get_body (out unowned uchar[] data, uint size);
47 public Gst.RTSPResult get_header (Gst.RTSPHeaderField field, out unowned string value, int indx);
48 public Gst.RTSPResult init ();
49 public Gst.RTSPResult init_data (uchar channel);
50 public Gst.RTSPResult init_request (Gst.RTSPMethod method, string uri);
51 public Gst.RTSPResult init_response (Gst.RTSPStatusCode code, string reason, Gst.RTSPMessage request);
52 public static Gst.RTSPResult @new (out Gst.RTSPMessage msg);
53 public static Gst.RTSPResult new_data (out Gst.RTSPMessage msg, uchar channel);
54 public static Gst.RTSPResult new_request (out Gst.RTSPMessage msg, Gst.RTSPMethod method, string uri);
55 public static Gst.RTSPResult new_response (out Gst.RTSPMessage msg, Gst.RTSPStatusCode code, string reason, Gst.RTSPMessage request);
56 public Gst.RTSPResult parse_data (uchar channel);
57 public Gst.RTSPResult parse_request (Gst.RTSPMethod method, string uri, Gst.RTSPVersion version);
58 public Gst.RTSPResult parse_response (Gst.RTSPStatusCode code, string reason, Gst.RTSPVersion version);
59 public Gst.RTSPResult remove_header (Gst.RTSPHeaderField field, int indx);
60 public Gst.RTSPResult set_body (uchar[] data, uint size);
61 public Gst.RTSPResult steal_body (out uchar[] data, uint size);
62 public Gst.RTSPResult take_body (owned uchar[] data, uint size);
63 public Gst.RTSPResult take_header (Gst.RTSPHeaderField field, owned string value);
64 public Gst.RTSPResult unset ();
67 [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
68 public class RTSPRange {
71 public static Gst.RTSPResult parse (string rangestr, out Gst.RTSPTimeRange range);
72 public static string to_string (Gst.RTSPTimeRange range);
75 [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
76 public class RTSPTime {
77 public double seconds;
78 public Gst.RTSPTimeType type;
81 [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
82 public class RTSPTimeRange {
83 public Gst.RTSPTime max;
84 public Gst.RTSPTime min;
85 public Gst.RTSPRangeUnit unit;
88 [CCode (cheader_filename = "gst/rtsp/gstrtsptransport.h")]
89 public class RTSPTransport {
91 public Gst.RTSPRange client_port;
92 public string destination;
93 public Gst.RTSPRange interleaved;
95 public Gst.RTSPLowerTrans lower_transport;
96 public bool mode_play;
97 public bool mode_record;
98 public Gst.RTSPRange port;
99 public Gst.RTSPProfile profile;
100 public Gst.RTSPRange server_port;
101 public string source;
103 public Gst.RTSPTransMode trans;
105 public string as_text ();
106 public static Gst.RTSPResult get_manager (Gst.RTSPTransMode trans, string manager, uint option);
107 public static Gst.RTSPResult get_mime (Gst.RTSPTransMode trans, string mime);
108 public Gst.RTSPResult init ();
109 public static Gst.RTSPResult @new (out Gst.RTSPTransport transport);
110 public static Gst.RTSPResult parse (string str, Gst.RTSPTransport transport);
113 [CCode (copy_function = "gst_rtsp_url_copy", type_id = "GST_TYPE_RTSP_URL", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
114 public class RTSPUrl {
115 public string abspath;
116 public Gst.RTSPFamily family;
118 public string passwd;
121 public Gst.RTSPLowerTrans transports;
123 public Gst.RTSPUrl copy ();
124 public Gst.RTSPResult get_port (uint16 port);
125 public string get_request_uri ();
126 public static Gst.RTSPResult parse (string urlstr, out Gst.RTSPUrl url);
127 public Gst.RTSPResult set_port (uint16 port);
130 [CCode (cheader_filename = "gst/gst.h")]
131 public class RTSPWatch {
132 [CCode (has_construct_function = false)]
133 public RTSPWatch (Gst.RTSPConnection conn, Gst.RTSPWatchFuncs funcs, GLib.DestroyNotify notify);
134 public uint attach (GLib.MainContext context);
135 public uint queue_message (Gst.RTSPMessage message);
136 public void reset ();
139 [CCode (cheader_filename = "gst/gst.h")]
140 public class RTSPWatchFuncs {
141 public weak GLib.Callback closed;
142 public weak GLib.Callback error;
143 public weak GLib.Callback message_received;
144 public weak GLib.Callback message_sent;
145 public weak GLib.Callback tunnel_complete;
146 public weak GLib.Callback tunnel_start;
148 [CCode (cheader_filename = "gst/rtsp/gstrtspextension.h")]
149 public interface RTSPExtension {
150 public abstract Gst.RTSPResult after_send (Gst.RTSPMessage req, Gst.RTSPMessage resp);
151 public abstract Gst.RTSPResult before_send (Gst.RTSPMessage req);
152 public abstract bool configure_stream (Gst.Caps caps);
153 public abstract bool detect_server (Gst.RTSPMessage resp);
154 public abstract Gst.RTSPResult get_transports (Gst.RTSPLowerTrans protocols, string transport);
155 public abstract Gst.RTSPResult parse_sdp (Gst.SDPMessage sdp, Gst.Structure s);
156 public abstract Gst.RTSPResult receive_request (Gst.RTSPMessage req);
157 public abstract Gst.RTSPResult setup_media (Gst.SDPMedia media);
158 public abstract Gst.RTSPResult stream_select (Gst.RTSPUrl url);
160 public signal Gst.RTSPResult send (void* req, void* resp);
162 [CCode (cprefix = "GST_RTSP_AUTH_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
163 public enum RTSPAuthMethod {
168 [CCode (cprefix = "GST_RTSP_EV_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
170 public enum RTSPEvent {
174 [CCode (cprefix = "GST_RTSP_FAM_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
175 public enum RTSPFamily {
180 [CCode (cprefix = "GST_RTSP_HDR_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
181 public enum RTSPHeaderField {
239 [CCode (cprefix = "GST_RTSP_LOWER_TRANS_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtspextension.h")]
240 public enum RTSPLowerTrans {
247 [CCode (cprefix = "GST_RTSP_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
249 public enum RTSPMethod {
263 [CCode (cprefix = "GST_RTSP_MESSAGE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtspmessage.h")]
264 public enum RTSPMsgType {
270 [CCode (cprefix = "GST_RTSP_PROFILE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsptransport.h")]
271 public enum RTSPProfile {
276 [CCode (cprefix = "GST_RTSP_RANGE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsprange.h")]
277 public enum RTSPRangeUnit {
284 [CCode (cprefix = "GST_RTSP_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
285 public enum RTSPResult {
305 [CCode (cprefix = "GST_RTSP_STATE_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
306 public enum RTSPState {
314 [CCode (cprefix = "GST_RTSP_STS_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
315 public enum RTSPStatusCode {
339 REQUEST_ENTITY_TOO_LARGE,
340 REQUEST_URI_TOO_LARGE,
341 UNSUPPORTED_MEDIA_TYPE,
342 PARAMETER_NOT_UNDERSTOOD,
343 CONFERENCE_NOT_FOUND,
344 NOT_ENOUGH_BANDWIDTH,
346 METHOD_NOT_VALID_IN_THIS_STATE,
347 HEADER_FIELD_NOT_VALID_FOR_RESOURCE,
349 PARAMETER_IS_READONLY,
350 AGGREGATE_OPERATION_NOT_ALLOWED,
351 ONLY_AGGREGATE_OPERATION_ALLOWED,
352 UNSUPPORTED_TRANSPORT,
353 DESTINATION_UNREACHABLE,
354 INTERNAL_SERVER_ERROR,
359 RTSP_VERSION_NOT_SUPPORTED,
362 [CCode (cprefix = "GST_RTSP_TIME_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsprange.h")]
363 public enum RTSPTimeType {
368 [CCode (cprefix = "GST_RTSP_TRANS_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsptransport.h")]
369 public enum RTSPTransMode {
374 [CCode (cprefix = "GST_RTSP_VERSION_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
375 public enum RTSPVersion {
379 [CCode (cheader_filename = "gst/rtsp/gstrtspurl.h")]
380 public const int RTSP_DEFAULT_PORT;
381 [CCode (cheader_filename = "gst/rtsp/gstrtspbase64.h")]
382 public static void rtsp_base64_decode_ip (string data, size_t len);
383 [CCode (cheader_filename = "gst/rtsp/gstrtspbase64.h")]
384 public static unowned string rtsp_base64_encode (string data, size_t len);
385 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
386 public static Gst.RTSPHeaderField rtsp_find_header_field (string header);
387 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
388 public static Gst.RTSPMethod rtsp_find_method (string method);
389 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
390 public static unowned string rtsp_header_as_text (Gst.RTSPHeaderField field);
391 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
392 public static unowned string rtsp_method_as_text (Gst.RTSPMethod method);
393 [CCode (cheader_filename = "gst/gst.h")]
394 public static string rtsp_options_as_text (Gst.RTSPMethod options);
395 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
396 public static unowned string rtsp_status_as_text (Gst.RTSPStatusCode code);
397 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
398 public static unowned string rtsp_strresult (Gst.RTSPResult _result);
399 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
400 public static unowned string rtsp_version_as_text (Gst.RTSPVersion version);