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_data (uchar data, uint size);
136 public uint queue_message (Gst.RTSPMessage message);
137 public void reset ();
140 [CCode (cheader_filename = "gst/gst.h")]
141 public class RTSPWatchFuncs {
142 public weak GLib.Callback closed;
143 public weak GLib.Callback error;
144 public weak GLib.Callback message_received;
145 public weak GLib.Callback message_sent;
146 public weak GLib.Callback tunnel_complete;
147 public weak GLib.Callback tunnel_start;
149 [CCode (cheader_filename = "gst/rtsp/gstrtspextension.h")]
150 public interface RTSPExtension {
151 public abstract Gst.RTSPResult after_send (Gst.RTSPMessage req, Gst.RTSPMessage resp);
152 public abstract Gst.RTSPResult before_send (Gst.RTSPMessage req);
153 public abstract bool configure_stream (Gst.Caps caps);
154 public abstract bool detect_server (Gst.RTSPMessage resp);
155 public abstract Gst.RTSPResult get_transports (Gst.RTSPLowerTrans protocols, string transport);
156 public abstract Gst.RTSPResult parse_sdp (Gst.SDPMessage sdp, Gst.Structure s);
157 public abstract Gst.RTSPResult receive_request (Gst.RTSPMessage req);
158 public abstract Gst.RTSPResult setup_media (Gst.SDPMedia media);
159 public abstract Gst.RTSPResult stream_select (Gst.RTSPUrl url);
161 public signal Gst.RTSPResult send (void* req, void* resp);
163 [CCode (cprefix = "GST_RTSP_AUTH_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
164 public enum RTSPAuthMethod {
169 [CCode (cprefix = "GST_RTSP_EV_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
171 public enum RTSPEvent {
175 [CCode (cprefix = "GST_RTSP_FAM_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
176 public enum RTSPFamily {
181 [CCode (cprefix = "GST_RTSP_HDR_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
182 public enum RTSPHeaderField {
242 X_ACCELERATE_STREAMING,
244 X_ACCEPT_PROXY_AUTHENT,
250 X_PLAYLIST_CHANGE_NOTICE,
253 X_PROXY_CLIENT_AGENT,
255 X_RECEDING_PLAYLISTCHANGE,
260 [CCode (cprefix = "GST_RTSP_LOWER_TRANS_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtspextension.h")]
261 public enum RTSPLowerTrans {
268 [CCode (cprefix = "GST_RTSP_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
270 public enum RTSPMethod {
284 [CCode (cprefix = "GST_RTSP_MESSAGE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtspmessage.h")]
285 public enum RTSPMsgType {
291 [CCode (cprefix = "GST_RTSP_PROFILE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsptransport.h")]
292 public enum RTSPProfile {
297 [CCode (cprefix = "GST_RTSP_RANGE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsprange.h")]
298 public enum RTSPRangeUnit {
305 [CCode (cprefix = "GST_RTSP_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
306 public enum RTSPResult {
326 [CCode (cprefix = "GST_RTSP_STATE_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
327 public enum RTSPState {
335 [CCode (cprefix = "GST_RTSP_STS_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
336 public enum RTSPStatusCode {
360 REQUEST_ENTITY_TOO_LARGE,
361 REQUEST_URI_TOO_LARGE,
362 UNSUPPORTED_MEDIA_TYPE,
363 PARAMETER_NOT_UNDERSTOOD,
364 CONFERENCE_NOT_FOUND,
365 NOT_ENOUGH_BANDWIDTH,
367 METHOD_NOT_VALID_IN_THIS_STATE,
368 HEADER_FIELD_NOT_VALID_FOR_RESOURCE,
370 PARAMETER_IS_READONLY,
371 AGGREGATE_OPERATION_NOT_ALLOWED,
372 ONLY_AGGREGATE_OPERATION_ALLOWED,
373 UNSUPPORTED_TRANSPORT,
374 DESTINATION_UNREACHABLE,
375 INTERNAL_SERVER_ERROR,
380 RTSP_VERSION_NOT_SUPPORTED,
383 [CCode (cprefix = "GST_RTSP_TIME_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsprange.h")]
384 public enum RTSPTimeType {
389 [CCode (cprefix = "GST_RTSP_TRANS_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsptransport.h")]
390 public enum RTSPTransMode {
395 [CCode (cprefix = "GST_RTSP_VERSION_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
396 public enum RTSPVersion {
400 [CCode (cheader_filename = "gst/rtsp/gstrtspurl.h")]
401 public const int RTSP_DEFAULT_PORT;
402 [CCode (cheader_filename = "gst/rtsp/gstrtspbase64.h")]
403 public static void rtsp_base64_decode_ip (string data, size_t len);
404 [CCode (cheader_filename = "gst/rtsp/gstrtspbase64.h")]
405 public static unowned string rtsp_base64_encode (string data, size_t len);
406 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
407 public static Gst.RTSPHeaderField rtsp_find_header_field (string header);
408 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
409 public static Gst.RTSPMethod rtsp_find_method (string method);
410 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
411 public static unowned string rtsp_header_as_text (Gst.RTSPHeaderField field);
412 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
413 public static unowned string rtsp_method_as_text (Gst.RTSPMethod method);
414 [CCode (cheader_filename = "gst/gst.h")]
415 public static string rtsp_options_as_text (Gst.RTSPMethod options);
416 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
417 public static unowned string rtsp_status_as_text (Gst.RTSPStatusCode code);
418 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
419 public static unowned string rtsp_strresult (Gst.RTSPResult _result);
420 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
421 public static unowned string rtsp_version_as_text (Gst.RTSPVersion version);