1 /* gstreamer-rtsp-0.10.vapi generated by lt-vapigen, do not modify. */
3 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
5 [CCode (cprefix = "GST_RTSP_AUTH_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
6 public enum RTSPAuthMethod {
11 [CCode (cprefix = "GST_RTSP_FAM_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
12 public enum RTSPFamily {
17 [CCode (cprefix = "GST_RTSP_HDR_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
18 public enum RTSPHeaderField {
74 [CCode (cprefix = "GST_RTSP_LOWER_TRANS_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtspextension.h")]
75 public enum RTSPLowerTrans {
81 [CCode (cprefix = "GST_RTSP_MESSAGE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtspmessage.h")]
82 public enum RTSPMsgType {
88 [CCode (cprefix = "GST_RTSP_PROFILE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsptransport.h")]
89 public enum RTSPProfile {
94 [CCode (cprefix = "GST_RTSP_RANGE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsprange.h")]
95 public enum RTSPRangeUnit {
102 [CCode (cprefix = "GST_RTSP_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
103 public enum RTSPResult {
121 [CCode (cprefix = "GST_RTSP_STATE_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
122 public enum RTSPState {
130 [CCode (cprefix = "GST_RTSP_STS_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
131 public enum RTSPStatusCode {
155 REQUEST_ENTITY_TOO_LARGE,
156 REQUEST_URI_TOO_LARGE,
157 UNSUPPORTED_MEDIA_TYPE,
158 PARAMETER_NOT_UNDERSTOOD,
159 CONFERENCE_NOT_FOUND,
160 NOT_ENOUGH_BANDWIDTH,
162 METHOD_NOT_VALID_IN_THIS_STATE,
163 HEADER_FIELD_NOT_VALID_FOR_RESOURCE,
165 PARAMETER_IS_READONLY,
166 AGGREGATE_OPERATION_NOT_ALLOWED,
167 ONLY_AGGREGATE_OPERATION_ALLOWED,
168 UNSUPPORTED_TRANSPORT,
169 DESTINATION_UNREACHABLE,
170 INTERNAL_SERVER_ERROR,
175 RTSP_VERSION_NOT_SUPPORTED,
178 [CCode (cprefix = "GST_RTSP_TIME_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsprange.h")]
179 public enum RTSPTimeType {
184 [CCode (cprefix = "GST_RTSP_TRANS_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsptransport.h")]
185 public enum RTSPTransMode {
190 [CCode (cprefix = "GST_RTSP_VERSION_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
191 public enum RTSPVersion {
195 [CCode (cprefix = "GST_RTSP_EV_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
197 public enum RTSPEvent {
201 [CCode (cprefix = "GST_RTSP_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
203 public enum RTSPMethod {
218 [CCode (cheader_filename = "gst/rtsp/gstrtspmessage.h")]
219 public class RTSPMessage {
220 public Gst.RTSPMsgType type;
221 public void* type_data;
222 public GLib.Array hdr_fields;
224 public uint body_size;
225 public static Gst.RTSPResult @new (out Gst.RTSPMessage msg);
226 public static Gst.RTSPResult new_data (out Gst.RTSPMessage msg, uchar channel);
227 public static Gst.RTSPResult new_request (out Gst.RTSPMessage msg, Gst.RTSPMethod method, string uri);
228 public static Gst.RTSPResult new_response (out Gst.RTSPMessage msg, Gst.RTSPStatusCode code, string reason, Gst.RTSPMessage request);
229 public RTSPMessage ();
230 public Gst.RTSPResult add_header (Gst.RTSPHeaderField field, string value);
231 public Gst.RTSPResult append_headers (GLib.StringBuilder str);
232 public Gst.RTSPResult dump ();
233 public Gst.RTSPResult get_body (out weak uchar[] data, uint size);
234 public Gst.RTSPResult get_header (Gst.RTSPHeaderField field, out weak string value, int indx);
235 public Gst.RTSPResult init ();
236 public Gst.RTSPResult init_data (uchar channel);
237 public Gst.RTSPResult init_request (Gst.RTSPMethod method, string uri);
238 public Gst.RTSPResult init_response (Gst.RTSPStatusCode code, string reason, Gst.RTSPMessage request);
239 public Gst.RTSPResult parse_data (uchar channel);
240 public Gst.RTSPResult parse_request (Gst.RTSPMethod method, string uri, Gst.RTSPVersion version);
241 public Gst.RTSPResult parse_response (Gst.RTSPStatusCode code, string reason, Gst.RTSPVersion version);
242 public Gst.RTSPResult remove_header (Gst.RTSPHeaderField field, int indx);
243 public Gst.RTSPResult set_body (uchar[] data, uint size);
244 public Gst.RTSPResult steal_body (out uchar[] data, uint size);
245 public Gst.RTSPResult take_body (uchar[]# data, uint size);
246 public Gst.RTSPResult unset ();
249 [CCode (cheader_filename = "gst/rtsp/gstrtsptransport.h")]
250 public class RTSPTransport {
251 public Gst.RTSPTransMode trans;
252 public Gst.RTSPProfile profile;
253 public Gst.RTSPLowerTrans lower_transport;
254 public string destination;
255 public string source;
257 public bool mode_play;
258 public bool mode_record;
260 public Gst.RTSPRange interleaved;
262 public Gst.RTSPRange port;
263 public Gst.RTSPRange client_port;
264 public Gst.RTSPRange server_port;
266 public static Gst.RTSPResult @new (out Gst.RTSPTransport transport);
267 public RTSPTransport ();
268 public string as_text ();
269 public static Gst.RTSPResult get_manager (Gst.RTSPTransMode trans, string manager, uint option);
270 public static Gst.RTSPResult get_mime (Gst.RTSPTransMode trans, string mime);
271 public Gst.RTSPResult init ();
272 public static Gst.RTSPResult parse (string str, Gst.RTSPTransport transport);
275 [CCode (cheader_filename = "gst/rtsp/gstrtspconnection.h")]
276 public class RTSPConnection {
277 public void clear_auth_params ();
278 public Gst.RTSPResult close ();
279 public Gst.RTSPResult connect (GLib.TimeVal timeout);
280 public static Gst.RTSPResult create (Gst.RTSPUrl url, out Gst.RTSPConnection conn);
281 public Gst.RTSPResult flush (bool flush);
282 public weak string get_ip ();
283 public Gst.RTSPResult next_timeout (GLib.TimeVal timeout);
284 public Gst.RTSPResult poll (Gst.RTSPEvent events, Gst.RTSPEvent revents, GLib.TimeVal timeout);
285 public Gst.RTSPResult read (uchar data, uint size, GLib.TimeVal timeout);
286 public Gst.RTSPResult receive (Gst.RTSPMessage message, GLib.TimeVal timeout);
287 public Gst.RTSPResult reset_timeout ();
288 public Gst.RTSPResult send (Gst.RTSPMessage message, GLib.TimeVal timeout);
289 public Gst.RTSPResult set_auth (Gst.RTSPAuthMethod method, string user, string pass);
290 public void set_auth_param (string param, string value);
291 public Gst.RTSPResult set_qos_dscp (uint qos_dscp);
292 public Gst.RTSPResult write (uchar data, uint size, GLib.TimeVal timeout);
295 [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
296 public class RTSPRange {
299 public static Gst.RTSPResult parse (string rangestr, out Gst.RTSPTimeRange range);
302 [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
303 public class RTSPTime {
304 public Gst.RTSPTimeType type;
305 public double seconds;
308 [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
309 public class RTSPTimeRange {
310 public Gst.RTSPRangeUnit unit;
311 public Gst.RTSPTime min;
312 public Gst.RTSPTime max;
315 [CCode (cheader_filename = "gst/rtsp/gstrtspconnection.h")]
316 public class RTSPUrl {
317 public Gst.RTSPLowerTrans transports;
318 public Gst.RTSPFamily family;
320 public string passwd;
323 public string abspath;
325 public Gst.RTSPResult get_port (ushort port);
326 public string get_request_uri ();
327 public static Gst.RTSPResult parse (string urlstr, out Gst.RTSPUrl url);
328 public Gst.RTSPResult set_port (ushort port);
330 [CCode (cheader_filename = "gst/rtsp/gstrtspextension.h")]
331 public interface RTSPExtension {
332 public abstract Gst.RTSPResult after_send (Gst.RTSPMessage req, Gst.RTSPMessage resp);
333 public abstract Gst.RTSPResult before_send (Gst.RTSPMessage req);
334 public abstract bool configure_stream (Gst.Caps caps);
335 public abstract bool detect_server (Gst.RTSPMessage resp);
336 public abstract Gst.RTSPResult get_transports (Gst.RTSPLowerTrans protocols, string transport);
337 public abstract Gst.RTSPResult parse_sdp (Gst.SDPMessage sdp, Gst.Structure s);
338 public abstract Gst.RTSPResult setup_media (Gst.SDPMedia media);
339 public abstract Gst.RTSPResult stream_select (Gst.RTSPUrl url);
341 public virtual signal Gst.RTSPResult send (void* req, void* resp);
343 [CCode (cheader_filename = "gst/gst.h")]
344 public const int RTSP_DEFAULT_PORT;
345 [CCode (cheader_filename = "gst/rtsp/gstrtspbase64.h")]
346 public static void rtsp_base64_decode_ip (string data, ulong len);
347 [CCode (cheader_filename = "gst/rtsp/gstrtspbase64.h")]
348 public static weak string rtsp_base64_encode (string data, ulong len);
349 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
350 public static Gst.RTSPHeaderField rtsp_find_header_field (string header);
351 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
352 public static Gst.RTSPMethod rtsp_find_method (string method);
353 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
354 public static weak string rtsp_header_as_text (Gst.RTSPHeaderField field);
355 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
356 public static weak string rtsp_method_as_text (Gst.RTSPMethod method);
357 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
358 public static weak string rtsp_status_as_text (Gst.RTSPStatusCode code);
359 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
360 public static weak string rtsp_strresult (Gst.RTSPResult _result);
361 [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
362 public static weak string rtsp_version_as_text (Gst.RTSPVersion version);