1 /* gstreamer-rtsp-0.10.vapi generated by lt-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 void clear_auth_params ();
9 public Gst.RTSPResult close ();
10 public Gst.RTSPResult connect (GLib.TimeVal timeout);
11 public static Gst.RTSPResult create (Gst.RTSPUrl url, out Gst.RTSPConnection conn);
12 public Gst.RTSPResult flush (bool flush);
13 public unowned string get_ip ();
14 public Gst.RTSPResult next_timeout (GLib.TimeVal timeout);
15 public Gst.RTSPResult poll (Gst.RTSPEvent events, Gst.RTSPEvent revents, GLib.TimeVal timeout);
16 public Gst.RTSPResult read (uchar data, uint size, GLib.TimeVal timeout);
17 public Gst.RTSPResult receive (Gst.RTSPMessage message, GLib.TimeVal timeout);
18 public Gst.RTSPResult reset_timeout ();
19 public Gst.RTSPResult send (Gst.RTSPMessage message, GLib.TimeVal timeout);
20 public Gst.RTSPResult set_auth (Gst.RTSPAuthMethod method, string user, string pass);
21 public void set_auth_param (string param, string value);
22 public Gst.RTSPResult set_qos_dscp (uint qos_dscp);
23 public Gst.RTSPResult write (uchar data, uint size, GLib.TimeVal timeout);
26 [CCode (cheader_filename = "gst/rtsp/gstrtspmessage.h")]
27 public class RTSPMessage {
29 public uint body_size;
30 public GLib.Array hdr_fields;
31 public Gst.RTSPMsgType type;
32 public void* type_data;
33 public Gst.RTSPResult add_header (Gst.RTSPHeaderField field, string value);
34 public Gst.RTSPResult append_headers (GLib.StringBuilder str);
35 public Gst.RTSPResult dump ();
36 public Gst.RTSPResult get_body (out unowned uchar[] data, uint size);
37 public Gst.RTSPResult get_header (Gst.RTSPHeaderField field, out unowned string value, int indx);
38 public Gst.RTSPResult init ();
39 public Gst.RTSPResult init_data (uchar channel);
40 public Gst.RTSPResult init_request (Gst.RTSPMethod method, string uri);
41 public Gst.RTSPResult init_response (Gst.RTSPStatusCode code, string reason, Gst.RTSPMessage request);
42 public static Gst.RTSPResult @new (out Gst.RTSPMessage msg);
43 public static Gst.RTSPResult new_data (out Gst.RTSPMessage msg, uchar channel);
44 public static Gst.RTSPResult new_request (out Gst.RTSPMessage msg, Gst.RTSPMethod method, string uri);
45 public static Gst.RTSPResult new_response (out Gst.RTSPMessage msg, Gst.RTSPStatusCode code, string reason, Gst.RTSPMessage request);
46 public Gst.RTSPResult parse_data (uchar channel);
47 public Gst.RTSPResult parse_request (Gst.RTSPMethod method, string uri, Gst.RTSPVersion version);
48 public Gst.RTSPResult parse_response (Gst.RTSPStatusCode code, string reason, Gst.RTSPVersion version);
49 public Gst.RTSPResult remove_header (Gst.RTSPHeaderField field, int indx);
50 public Gst.RTSPResult set_body (uchar[] data, uint size);
51 public Gst.RTSPResult steal_body (out uchar[] data, uint size);
52 public Gst.RTSPResult take_body (owned uchar[] data, uint size);
53 public Gst.RTSPResult unset ();
56 [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
57 public class RTSPRange {
60 public static Gst.RTSPResult parse (string rangestr, out Gst.RTSPTimeRange range);
63 [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
64 public class RTSPTime {
65 public double seconds;
66 public Gst.RTSPTimeType type;
69 [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
70 public class RTSPTimeRange {
71 public Gst.RTSPTime max;
72 public Gst.RTSPTime min;
73 public Gst.RTSPRangeUnit unit;
76 [CCode (cheader_filename = "gst/rtsp/gstrtsptransport.h")]
77 public class RTSPTransport {
79 public Gst.RTSPRange client_port;
80 public string destination;
81 public Gst.RTSPRange interleaved;
83 public Gst.RTSPLowerTrans lower_transport;
84 public bool mode_play;
85 public bool mode_record;
86 public Gst.RTSPRange port;
87 public Gst.RTSPProfile profile;
88 public Gst.RTSPRange server_port;
91 public Gst.RTSPTransMode trans;
93 public string as_text ();
94 public static Gst.RTSPResult get_manager (Gst.RTSPTransMode trans, string manager, uint option);
95 public static Gst.RTSPResult get_mime (Gst.RTSPTransMode trans, string mime);
96 public Gst.RTSPResult init ();
97 public static Gst.RTSPResult @new (out Gst.RTSPTransport transport);
98 public static Gst.RTSPResult parse (string str, Gst.RTSPTransport transport);
101 [CCode (cheader_filename = "gst/rtsp/gstrtspconnection.h")]
102 public class RTSPUrl {
103 public string abspath;
104 public Gst.RTSPFamily family;
106 public string passwd;
109 public Gst.RTSPLowerTrans transports;
111 public Gst.RTSPResult get_port (uint16 port);
112 public string get_request_uri ();
113 public static Gst.RTSPResult parse (string urlstr, out Gst.RTSPUrl url);
114 public Gst.RTSPResult set_port (uint16 port);
116 [CCode (cheader_filename = "gst/rtsp/gstrtspextension.h")]
117 public interface RTSPExtension {
118 public abstract Gst.RTSPResult after_send (Gst.RTSPMessage req, Gst.RTSPMessage resp);
119 public abstract Gst.RTSPResult before_send (Gst.RTSPMessage req);
120 public abstract bool configure_stream (Gst.Caps caps);
121 public abstract bool detect_server (Gst.RTSPMessage resp);
122 public abstract Gst.RTSPResult get_transports (Gst.RTSPLowerTrans protocols, string transport);
123 public abstract Gst.RTSPResult parse_sdp (Gst.SDPMessage sdp, Gst.Structure s);
124 public abstract Gst.RTSPResult setup_media (Gst.SDPMedia media);
125 public abstract Gst.RTSPResult stream_select (Gst.RTSPUrl url);
127 public virtual signal Gst.RTSPResult send (void* req, void* resp);
129 [CCode (cprefix = "GST_RTSP_AUTH_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
130 public enum RTSPAuthMethod {
135 [CCode (cprefix = "GST_RTSP_EV_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
137 public enum RTSPEvent {
141 [CCode (cprefix = "GST_RTSP_FAM_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
142 public enum RTSPFamily {
147 [CCode (cprefix = "GST_RTSP_HDR_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
148 public enum RTSPHeaderField {
204 [CCode (cprefix = "GST_RTSP_LOWER_TRANS_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtspextension.h")]
205 public enum RTSPLowerTrans {
211 [CCode (cprefix = "GST_RTSP_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
213 public enum RTSPMethod {
227 [CCode (cprefix = "GST_RTSP_MESSAGE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtspmessage.h")]
228 public enum RTSPMsgType {
234 [CCode (cprefix = "GST_RTSP_PROFILE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsptransport.h")]
235 public enum RTSPProfile {
240 [CCode (cprefix = "GST_RTSP_RANGE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsprange.h")]
241 public enum RTSPRangeUnit {
248 [CCode (cprefix = "GST_RTSP_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
249 public enum RTSPResult {
267 [CCode (cprefix = "GST_RTSP_STATE_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
268 public enum RTSPState {
276 [CCode (cprefix = "GST_RTSP_STS_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
277 public enum RTSPStatusCode {
301 REQUEST_ENTITY_TOO_LARGE,
302 REQUEST_URI_TOO_LARGE,
303 UNSUPPORTED_MEDIA_TYPE,
304 PARAMETER_NOT_UNDERSTOOD,
305 CONFERENCE_NOT_FOUND,
306 NOT_ENOUGH_BANDWIDTH,
308 METHOD_NOT_VALID_IN_THIS_STATE,
309 HEADER_FIELD_NOT_VALID_FOR_RESOURCE,
311 PARAMETER_IS_READONLY,
312 AGGREGATE_OPERATION_NOT_ALLOWED,
313 ONLY_AGGREGATE_OPERATION_ALLOWED,
314 UNSUPPORTED_TRANSPORT,
315 DESTINATION_UNREACHABLE,
316 INTERNAL_SERVER_ERROR,
321 RTSP_VERSION_NOT_SUPPORTED,
324 [CCode (cprefix = "GST_RTSP_TIME_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsprange.h")]
325 public enum RTSPTimeType {
330 [CCode (cprefix = "GST_RTSP_TRANS_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsptransport.h")]
331 public enum RTSPTransMode {
336 [CCode (cprefix = "GST_RTSP_VERSION_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
337 public enum RTSPVersion {
341 [CCode (cheader_filename = "gst/rtsp/gstrtspurl.h")]
342 public const int RTSP_DEFAULT_PORT;
343 [CCode (cheader_filename = "gst/rtsp/gstrtspbase64.h")]
344 public static void rtsp_base64_decode_ip (string data, size_t len);
345 [CCode (cheader_filename = "gst/rtsp/gstrtspbase64.h")]
346 public static unowned string rtsp_base64_encode (string data, size_t len);
347 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
348 public static Gst.RTSPHeaderField rtsp_find_header_field (string header);
349 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
350 public static Gst.RTSPMethod rtsp_find_method (string method);
351 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
352 public static unowned string rtsp_header_as_text (Gst.RTSPHeaderField field);
353 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
354 public static unowned string rtsp_method_as_text (Gst.RTSPMethod method);
355 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
356 public static unowned string rtsp_status_as_text (Gst.RTSPStatusCode code);
357 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
358 public static unowned string rtsp_strresult (Gst.RTSPResult _result);
359 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
360 public static unowned string rtsp_version_as_text (Gst.RTSPVersion version);