Release 0.41.92
[vala-gnome.git] / vapi / gstreamer-rtsp-1.0.vapi
blob3099690e7e0fbe98f9a95817bff23e41c37004fd
1 /* gstreamer-rtsp-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", gir_namespace = "GstRtsp", gir_version = "1.0", lower_case_cprefix = "gst_")]
4 namespace Gst {
5         namespace RTSP {
6                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_rtsp_auth_credential_get_type ()")]
7                 [Compact]
8                 [GIR (name = "RTSPAuthCredential")]
9                 public class AuthCredential {
10                         public weak string authorization;
11                         public weak Gst.RTSP.AuthParam @params;
12                         public Gst.RTSP.AuthMethod scheme;
13                 }
14                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_rtsp_auth_param_get_type ()")]
15                 [Compact]
16                 [GIR (name = "RTSPAuthParam")]
17                 public class AuthParam {
18                         public weak string name;
19                         public weak string value;
20                         public Gst.RTSP.AuthParam copy ();
21                         public void free ();
22                 }
23                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", has_type_id = false)]
24                 [Compact]
25                 [GIR (name = "RTSPConnection")]
26                 public class Connection {
27                         public void clear_auth_params ();
28                         public Gst.RTSP.Result close ();
29                         public Gst.RTSP.Result connect (GLib.TimeVal timeout);
30                         public Gst.RTSP.Result connect_with_response (GLib.TimeVal timeout, Gst.RTSP.Message response);
31                         public Gst.RTSP.Result do_tunnel (Gst.RTSP.Connection conn2);
32                         public Gst.RTSP.Result flush (bool flush);
33                         public Gst.RTSP.Result free ();
34                         public unowned string get_ip ();
35                         public unowned GLib.Socket get_read_socket ();
36                         public bool get_remember_session_id ();
37                         [Version (since = "1.2")]
38                         public unowned GLib.TlsConnection get_tls () throws GLib.Error;
39                         [Version (since = "1.4")]
40                         public GLib.TlsDatabase get_tls_database ();
41                         [Version (since = "1.6")]
42                         public GLib.TlsInteraction get_tls_interaction ();
43                         [Version (since = "1.2.1")]
44                         public GLib.TlsCertificateFlags get_tls_validation_flags ();
45                         public unowned string get_tunnelid ();
46                         public Gst.RTSP.Url get_url ();
47                         public unowned GLib.Socket get_write_socket ();
48                         public bool is_tunneled ();
49                         public Gst.RTSP.Result next_timeout (GLib.TimeVal timeout);
50                         public Gst.RTSP.Result poll (Gst.RTSP.Event events, Gst.RTSP.Event revents, GLib.TimeVal timeout);
51                         public Gst.RTSP.Result read (uint8 data, uint size, GLib.TimeVal timeout);
52                         public Gst.RTSP.Result receive (Gst.RTSP.Message message, GLib.TimeVal timeout);
53                         public Gst.RTSP.Result reset_timeout ();
54                         public Gst.RTSP.Result send (Gst.RTSP.Message message, GLib.TimeVal timeout);
55                         [Version (since = "1.14")]
56                         public void set_accept_certificate_func (owned Gst.RTSP.ConnectionAcceptCertificateFunc func);
57                         public Gst.RTSP.Result set_auth (Gst.RTSP.AuthMethod method, string user, string pass);
58                         public void set_auth_param (string param, string value);
59                         public void set_http_mode (bool enable);
60                         public void set_ip (string ip);
61                         public Gst.RTSP.Result set_proxy (string host, uint port);
62                         public Gst.RTSP.Result set_qos_dscp (uint qos_dscp);
63                         public void set_remember_session_id (bool remember);
64                         [Version (since = "1.4")]
65                         public void set_tls_database (GLib.TlsDatabase database);
66                         [Version (since = "1.6")]
67                         public void set_tls_interaction (GLib.TlsInteraction interaction);
68                         [Version (since = "1.2.1")]
69                         public bool set_tls_validation_flags (GLib.TlsCertificateFlags flags);
70                         public void set_tunneled (bool tunneled);
71                         public Gst.RTSP.Result write (uint8 data, uint size, GLib.TimeVal timeout);
72                 }
73                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_cprefix = "gst_rtsp_msg_", type_id = "gst_rtsp_msg_get_type ()")]
74                 [Compact]
75                 [GIR (name = "RTSPMessage")]
76                 public class Message {
77                         public Gst.RTSP.MsgType type;
78                         [CCode (cname = "type_data.data.channel")]
79                         public uint8 type_data_data_channel;
80                         [CCode (cname = "type_data.request.method")]
81                         public Gst.RTSP.Method type_data_request_method;
82                         [CCode (cname = "type_data.request.uri")]
83                         public weak string type_data_request_uri;
84                         [CCode (cname = "type_data.request.version")]
85                         public Gst.RTSP.Version type_data_request_version;
86                         [CCode (cname = "type_data.response.code")]
87                         public Gst.RTSP.StatusCode type_data_response_code;
88                         [CCode (cname = "type_data.response.reason")]
89                         public weak string type_data_response_reason;
90                         [CCode (cname = "type_data.response.version")]
91                         public Gst.RTSP.Version type_data_response_version;
92                         [CCode (cname = "gst_rtsp_message_add_header")]
93                         public Gst.RTSP.Result add_header (Gst.RTSP.HeaderField field, string value);
94                         [CCode (cname = "gst_rtsp_message_add_header_by_name")]
95                         [Version (since = "1.6")]
96                         public Gst.RTSP.Result add_header_by_name (string header, string value);
97                         [CCode (cname = "gst_rtsp_message_append_headers")]
98                         public Gst.RTSP.Result append_headers (GLib.StringBuilder str);
99                         [CCode (cname = "gst_rtsp_message_copy")]
100                         [Version (since = "1.14")]
101                         public Gst.RTSP.Result copy (out Gst.RTSP.Message copy);
102                         [CCode (cname = "gst_rtsp_message_dump")]
103                         public Gst.RTSP.Result dump ();
104                         [CCode (cname = "gst_rtsp_message_free")]
105                         public Gst.RTSP.Result free ();
106                         [CCode (cname = "gst_rtsp_message_get_body")]
107                         public Gst.RTSP.Result get_body ([CCode (array_length_cname = "size", array_length_pos = 1.1, array_length_type = "guint")] out unowned uint8[] data);
108                         [CCode (cname = "gst_rtsp_message_get_header")]
109                         public Gst.RTSP.Result get_header (Gst.RTSP.HeaderField field, out unowned string value, int indx);
110                         [CCode (cname = "gst_rtsp_message_get_header_by_name")]
111                         [Version (since = "1.6")]
112                         public Gst.RTSP.Result get_header_by_name (string header, out unowned string value, int index);
113                         [CCode (cname = "gst_rtsp_message_get_type")]
114                         public Gst.RTSP.MsgType get_type ();
115                         [CCode (cname = "gst_rtsp_message_init")]
116                         public Gst.RTSP.Result init ();
117                         [CCode (cname = "gst_rtsp_message_init_data")]
118                         public Gst.RTSP.Result init_data (uint8 channel);
119                         [CCode (cname = "gst_rtsp_message_init_request")]
120                         public Gst.RTSP.Result init_request (Gst.RTSP.Method method, string uri);
121                         [CCode (cname = "gst_rtsp_message_init_response")]
122                         public Gst.RTSP.Result init_response (Gst.RTSP.StatusCode code, string? reason, Gst.RTSP.Message? request);
123                         [CCode (array_length = false, array_null_terminated = true, cname = "gst_rtsp_message_parse_auth_credentials")]
124                         [Version (since = "1.12")]
125                         public Gst.RTSP.AuthCredential[] parse_auth_credentials (Gst.RTSP.HeaderField field);
126                         [CCode (cname = "gst_rtsp_message_parse_data")]
127                         public Gst.RTSP.Result parse_data (out uint8 channel);
128                         [CCode (cname = "gst_rtsp_message_parse_request")]
129                         public Gst.RTSP.Result parse_request (out Gst.RTSP.Method method, out unowned string uri, out Gst.RTSP.Version version);
130                         [CCode (cname = "gst_rtsp_message_parse_response")]
131                         public Gst.RTSP.Result parse_response (out Gst.RTSP.StatusCode code, out unowned string reason, out Gst.RTSP.Version version);
132                         [CCode (cname = "gst_rtsp_message_remove_header")]
133                         public Gst.RTSP.Result remove_header (Gst.RTSP.HeaderField field, int indx);
134                         [CCode (cname = "gst_rtsp_message_remove_header_by_name")]
135                         [Version (since = "1.6")]
136                         public Gst.RTSP.Result remove_header_by_name (string header, int index);
137                         [CCode (cname = "gst_rtsp_message_set_body")]
138                         public Gst.RTSP.Result set_body ([CCode (array_length_cname = "size", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
139                         [CCode (cname = "gst_rtsp_message_steal_body")]
140                         public Gst.RTSP.Result steal_body ([CCode (array_length_cname = "size", array_length_pos = 1.1, array_length_type = "guint")] out uint8[] data);
141                         [CCode (cname = "gst_rtsp_message_take_body")]
142                         public Gst.RTSP.Result take_body ([CCode (array_length_cname = "size", array_length_pos = 1.1, array_length_type = "guint")] owned uint8[] data);
143                         [CCode (cname = "gst_rtsp_message_take_header")]
144                         public Gst.RTSP.Result take_header (Gst.RTSP.HeaderField field, owned string value);
145                         [CCode (cname = "gst_rtsp_message_take_header_by_name")]
146                         [Version (since = "1.6")]
147                         public Gst.RTSP.Result take_header_by_name (string header, owned string value);
148                         [CCode (cname = "gst_rtsp_message_unset")]
149                         public Gst.RTSP.Result unset ();
150                 }
151                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_rtsp_url_get_type ()")]
152                 [Compact]
153                 [GIR (name = "RTSPUrl")]
154                 public class Url {
155                         public weak string abspath;
156                         public Gst.RTSP.Family family;
157                         public weak string host;
158                         public weak string passwd;
159                         public uint16 port;
160                         public weak string query;
161                         public Gst.RTSP.LowerTrans transports;
162                         public weak string user;
163                         public Gst.RTSP.Url copy ();
164                         [CCode (array_length = false, array_null_terminated = true)]
165                         public string[] decode_path_components ();
166                         public void free ();
167                         public Gst.RTSP.Result get_port (out uint16 port);
168                         public string get_request_uri ();
169                         public Gst.RTSP.Result set_port (uint16 port);
170                 }
171                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", has_type_id = false)]
172                 [Compact]
173                 [GIR (name = "RTSPWatch")]
174                 public class Watch {
175                         public uint attach (GLib.MainContext context);
176                         [Version (since = "1.2")]
177                         public void get_send_backlog (out size_t bytes, out uint messages);
178                         public void reset ();
179                         public Gst.RTSP.Result send_message (Gst.RTSP.Message message, out uint id);
180                         [Version (since = "1.4")]
181                         public void set_flushing (bool flushing);
182                         [Version (since = "1.2")]
183                         public void set_send_backlog (size_t bytes, uint messages);
184                         public void unref ();
185                         [Version (since = "1.4")]
186                         public Gst.RTSP.Result wait_backlog (GLib.TimeVal timeout);
187                         public Gst.RTSP.Result write_data ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "guint")] owned uint8[] data, out uint id);
188                 }
189                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", type_id = "gst_rtsp_extension_get_type ()")]
190                 [GIR (name = "RTSPExtension")]
191                 public interface Extension : GLib.Object {
192                         public abstract Gst.RTSP.Result after_send (Gst.RTSP.Message req, Gst.RTSP.Message resp);
193                         public abstract Gst.RTSP.Result before_send (Gst.RTSP.Message req);
194                         public abstract bool configure_stream (Gst.Caps caps);
195                         public abstract bool detect_server (Gst.RTSP.Message resp);
196                         public abstract Gst.RTSP.Result get_transports (Gst.RTSP.LowerTrans protocols, string transport);
197                         public abstract Gst.RTSP.Result parse_sdp (Gst.SDP.Message sdp, Gst.Structure s);
198                         public abstract Gst.RTSP.Result receive_request (Gst.RTSP.Message req);
199                         public abstract Gst.RTSP.Result setup_media (Gst.SDP.Media media);
200                         public abstract Gst.RTSP.Result stream_select (Gst.RTSP.Url url);
201                         [HasEmitter]
202                         public virtual signal Gst.RTSP.Result send (void* req, void* resp);
203                 }
204                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", has_type_id = false)]
205                 [GIR (name = "RTSPRange")]
206                 public struct Range {
207                         public int min;
208                         public int max;
209                 }
210                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", has_type_id = false)]
211                 [GIR (name = "RTSPTime")]
212                 public struct Time {
213                         public Gst.RTSP.TimeType type;
214                         public double seconds;
215                 }
216                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", has_type_id = false)]
217                 [GIR (name = "RTSPTime2")]
218                 [Version (since = "1.2")]
219                 public struct Time2 {
220                         public double frames;
221                         public uint year;
222                         public uint month;
223                         public uint day;
224                 }
225                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", has_type_id = false)]
226                 [GIR (name = "RTSPTimeRange")]
227                 public struct TimeRange {
228                         public Gst.RTSP.RangeUnit unit;
229                         public Gst.RTSP.Time min;
230                         public Gst.RTSP.Time max;
231                         public Gst.RTSP.Time2 min2;
232                         public Gst.RTSP.Time2 max2;
233                 }
234                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", has_type_id = false)]
235                 [GIR (name = "RTSPTransport")]
236                 public struct Transport {
237                         public Gst.RTSP.TransMode trans;
238                         public Gst.RTSP.Profile profile;
239                         public Gst.RTSP.LowerTrans lower_transport;
240                         public weak string destination;
241                         public weak string source;
242                         public uint layers;
243                         public bool mode_play;
244                         public bool mode_record;
245                         public bool append;
246                         public Gst.RTSP.Range interleaved;
247                         public uint ttl;
248                         public Gst.RTSP.Range port;
249                         public Gst.RTSP.Range client_port;
250                         public Gst.RTSP.Range server_port;
251                         public uint ssrc;
252                         public string as_text ();
253                         public Gst.RTSP.Result free ();
254                         [Version (since = "1.4")]
255                         public Gst.RTSP.Result get_media_type (out unowned string media_type);
256                         public Gst.RTSP.Result init ();
257                 }
258                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_AUTH_", type_id = "gst_rtsp_auth_method_get_type ()")]
259                 [GIR (name = "RTSPAuthMethod")]
260                 public enum AuthMethod {
261                         NONE,
262                         BASIC,
263                         DIGEST
264                 }
265                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_EV_", type_id = "gst_rtsp_event_get_type ()")]
266                 [Flags]
267                 [GIR (name = "RTSPEvent")]
268                 public enum Event {
269                         READ,
270                         WRITE
271                 }
272                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_FAM_", type_id = "gst_rtsp_family_get_type ()")]
273                 [GIR (name = "RTSPFamily")]
274                 public enum Family {
275                         NONE,
276                         INET,
277                         INET6
278                 }
279                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_HDR_", type_id = "gst_rtsp_header_field_get_type ()")]
280                 [GIR (name = "RTSPHeaderField")]
281                 public enum HeaderField {
282                         INVALID,
283                         ACCEPT,
284                         ACCEPT_ENCODING,
285                         ACCEPT_LANGUAGE,
286                         ALLOW,
287                         AUTHORIZATION,
288                         BANDWIDTH,
289                         BLOCKSIZE,
290                         CACHE_CONTROL,
291                         CONFERENCE,
292                         CONNECTION,
293                         CONTENT_BASE,
294                         CONTENT_ENCODING,
295                         CONTENT_LANGUAGE,
296                         CONTENT_LENGTH,
297                         CONTENT_LOCATION,
298                         CONTENT_TYPE,
299                         CSEQ,
300                         DATE,
301                         EXPIRES,
302                         FROM,
303                         IF_MODIFIED_SINCE,
304                         LAST_MODIFIED,
305                         PROXY_AUTHENTICATE,
306                         PROXY_REQUIRE,
307                         PUBLIC,
308                         RANGE,
309                         REFERER,
310                         REQUIRE,
311                         RETRY_AFTER,
312                         RTP_INFO,
313                         SCALE,
314                         SESSION,
315                         SERVER,
316                         SPEED,
317                         TRANSPORT,
318                         UNSUPPORTED,
319                         USER_AGENT,
320                         VIA,
321                         WWW_AUTHENTICATE,
322                         CLIENT_CHALLENGE,
323                         REAL_CHALLENGE1,
324                         REAL_CHALLENGE2,
325                         REAL_CHALLENGE3,
326                         SUBSCRIBE,
327                         ALERT,
328                         CLIENT_ID,
329                         COMPANY_ID,
330                         GUID,
331                         REGION_DATA,
332                         MAX_ASM_WIDTH,
333                         LANGUAGE,
334                         PLAYER_START_TIME,
335                         LOCATION,
336                         ETAG,
337                         IF_MATCH,
338                         ACCEPT_CHARSET,
339                         SUPPORTED,
340                         VARY,
341                         X_ACCELERATE_STREAMING,
342                         X_ACCEPT_AUTHENT,
343                         X_ACCEPT_PROXY_AUTHENT,
344                         X_BROADCAST_ID,
345                         X_BURST_STREAMING,
346                         X_NOTICE,
347                         X_PLAYER_LAG_TIME,
348                         X_PLAYLIST,
349                         X_PLAYLIST_CHANGE_NOTICE,
350                         X_PLAYLIST_GEN_ID,
351                         X_PLAYLIST_SEEK_ID,
352                         X_PROXY_CLIENT_AGENT,
353                         X_PROXY_CLIENT_VERB,
354                         X_RECEDING_PLAYLISTCHANGE,
355                         X_RTP_INFO,
356                         X_STARTUPPROFILE,
357                         TIMESTAMP,
358                         AUTHENTICATION_INFO,
359                         HOST,
360                         PRAGMA,
361                         X_SERVER_IP_ADDRESS,
362                         X_SESSIONCOOKIE,
363                         RTCP_INTERVAL,
364                         KEYMGMT,
365                         PIPELINED_REQUESTS,
366                         MEDIA_PROPERTIES,
367                         SEEK_STYLE,
368                         ACCEPT_RANGES,
369                         LAST
370                 }
371                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_LOWER_TRANS_", type_id = "gst_rtsp_lower_trans_get_type ()")]
372                 [Flags]
373                 [GIR (name = "RTSPLowerTrans")]
374                 public enum LowerTrans {
375                         UNKNOWN,
376                         UDP,
377                         UDP_MCAST,
378                         TCP,
379                         HTTP,
380                         TLS
381                 }
382                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_", type_id = "gst_rtsp_method_get_type ()")]
383                 [Flags]
384                 [GIR (name = "RTSPMethod")]
385                 public enum Method {
386                         INVALID,
387                         DESCRIBE,
388                         ANNOUNCE,
389                         GET_PARAMETER,
390                         OPTIONS,
391                         PAUSE,
392                         PLAY,
393                         RECORD,
394                         REDIRECT,
395                         SETUP,
396                         SET_PARAMETER,
397                         TEARDOWN,
398                         GET,
399                         POST
400                 }
401                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_MESSAGE_", type_id = "gst_rtsp_msg_type_get_type ()")]
402                 [GIR (name = "RTSPMsgType")]
403                 public enum MsgType {
404                         INVALID,
405                         REQUEST,
406                         RESPONSE,
407                         HTTP_REQUEST,
408                         HTTP_RESPONSE,
409                         DATA
410                 }
411                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_PROFILE_", type_id = "gst_rtsp_profile_get_type ()")]
412                 [Flags]
413                 [GIR (name = "RTSPProfile")]
414                 public enum Profile {
415                         UNKNOWN,
416                         AVP,
417                         SAVP,
418                         AVPF,
419                         SAVPF
420                 }
421                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_RANGE_", type_id = "gst_rtsp_range_unit_get_type ()")]
422                 [GIR (name = "RTSPRangeUnit")]
423                 public enum RangeUnit {
424                         SMPTE,
425                         SMPTE_30_DROP,
426                         SMPTE_25,
427                         NPT,
428                         CLOCK
429                 }
430                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_", type_id = "gst_rtsp_result_get_type ()")]
431                 [GIR (name = "RTSPResult")]
432                 public enum Result {
433                         OK,
434                         ERROR,
435                         EINVAL,
436                         EINTR,
437                         ENOMEM,
438                         ERESOLV,
439                         ENOTIMPL,
440                         ESYS,
441                         EPARSE,
442                         EWSASTART,
443                         EWSAVERSION,
444                         EEOF,
445                         ENET,
446                         ENOTIP,
447                         ETIMEOUT,
448                         ETGET,
449                         ETPOST,
450                         ELAST
451                 }
452                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_STATE_", type_id = "gst_rtsp_state_get_type ()")]
453                 [GIR (name = "RTSPState")]
454                 public enum State {
455                         INVALID,
456                         INIT,
457                         READY,
458                         SEEKING,
459                         PLAYING,
460                         RECORDING
461                 }
462                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_STS_", type_id = "gst_rtsp_status_code_get_type ()")]
463                 [GIR (name = "RTSPStatusCode")]
464                 public enum StatusCode {
465                         INVALID,
466                         CONTINUE,
467                         OK,
468                         CREATED,
469                         LOW_ON_STORAGE,
470                         MULTIPLE_CHOICES,
471                         MOVED_PERMANENTLY,
472                         MOVE_TEMPORARILY,
473                         SEE_OTHER,
474                         NOT_MODIFIED,
475                         USE_PROXY,
476                         BAD_REQUEST,
477                         UNAUTHORIZED,
478                         PAYMENT_REQUIRED,
479                         FORBIDDEN,
480                         NOT_FOUND,
481                         METHOD_NOT_ALLOWED,
482                         NOT_ACCEPTABLE,
483                         PROXY_AUTH_REQUIRED,
484                         REQUEST_TIMEOUT,
485                         GONE,
486                         LENGTH_REQUIRED,
487                         PRECONDITION_FAILED,
488                         REQUEST_ENTITY_TOO_LARGE,
489                         REQUEST_URI_TOO_LARGE,
490                         UNSUPPORTED_MEDIA_TYPE,
491                         PARAMETER_NOT_UNDERSTOOD,
492                         CONFERENCE_NOT_FOUND,
493                         NOT_ENOUGH_BANDWIDTH,
494                         SESSION_NOT_FOUND,
495                         METHOD_NOT_VALID_IN_THIS_STATE,
496                         HEADER_FIELD_NOT_VALID_FOR_RESOURCE,
497                         INVALID_RANGE,
498                         PARAMETER_IS_READONLY,
499                         AGGREGATE_OPERATION_NOT_ALLOWED,
500                         ONLY_AGGREGATE_OPERATION_ALLOWED,
501                         UNSUPPORTED_TRANSPORT,
502                         DESTINATION_UNREACHABLE,
503                         KEY_MANAGEMENT_FAILURE,
504                         INTERNAL_SERVER_ERROR,
505                         NOT_IMPLEMENTED,
506                         BAD_GATEWAY,
507                         SERVICE_UNAVAILABLE,
508                         GATEWAY_TIMEOUT,
509                         RTSP_VERSION_NOT_SUPPORTED,
510                         OPTION_NOT_SUPPORTED
511                 }
512                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_TIME_", type_id = "gst_rtsp_time_type_get_type ()")]
513                 [GIR (name = "RTSPTimeType")]
514                 public enum TimeType {
515                         SECONDS,
516                         NOW,
517                         END,
518                         FRAMES,
519                         UTC
520                 }
521                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_TRANS_", type_id = "gst_rtsp_trans_mode_get_type ()")]
522                 [Flags]
523                 [GIR (name = "RTSPTransMode")]
524                 public enum TransMode {
525                         UNKNOWN,
526                         RTP,
527                         RDT
528                 }
529                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cprefix = "GST_RTSP_VERSION_", type_id = "gst_rtsp_version_get_type ()")]
530                 [GIR (name = "RTSPVersion")]
531                 public enum Version {
532                         INVALID,
533                         @1_0,
534                         @1_1,
535                         @2_0
536                 }
537                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", instance_pos = 3.9)]
538                 public delegate bool ConnectionAcceptCertificateFunc (GLib.TlsConnection conn, GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors);
539                 [CCode (cheader_filename = "gst/rtsp/rtsp.h", cname = "GST_RTSP_DEFAULT_PORT")]
540                 public const int _DEFAULT_PORT;
541                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
542                 [Version (since = "1.12")]
543                 public static void auth_credentials_free (Gst.RTSP.AuthCredential credentials);
544                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
545                 public static Gst.RTSP.Result connection_accept (GLib.Socket socket, out Gst.RTSP.Connection conn, GLib.Cancellable? cancellable = null);
546                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
547                 public static Gst.RTSP.Result connection_create (Gst.RTSP.Url url, out Gst.RTSP.Connection conn);
548                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
549                 public static Gst.RTSP.Result connection_create_from_socket (GLib.Socket socket, string ip, uint16 port, string initial_buffer, out Gst.RTSP.Connection conn);
550                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
551                 public static Gst.RTSP.HeaderField find_header_field (string header);
552                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
553                 public static Gst.RTSP.Method find_method (string method);
554                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
555                 [Version (since = "1.12")]
556                 public static string generate_digest_auth_response (string? algorithm, string method, string realm, string username, string password, string uri, string nonce);
557                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
558                 [Version (since = "1.16")]
559                 public static string generate_digest_auth_response_from_md5 (string? algorithm, string method, string md5, string uri, string nonce);
560                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
561                 public static bool header_allow_multiple (Gst.RTSP.HeaderField field);
562                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
563                 public static unowned string header_as_text (Gst.RTSP.HeaderField field);
564                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
565                 public static Gst.RTSP.Result message_new (out Gst.RTSP.Message msg);
566                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
567                 public static Gst.RTSP.Result message_new_data (out Gst.RTSP.Message msg, uint8 channel);
568                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
569                 public static Gst.RTSP.Result message_new_request (out Gst.RTSP.Message msg, Gst.RTSP.Method method, string uri);
570                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
571                 public static Gst.RTSP.Result message_new_response (out Gst.RTSP.Message msg, Gst.RTSP.StatusCode code, string? reason, Gst.RTSP.Message? request);
572                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
573                 public static unowned string method_as_text (Gst.RTSP.Method method);
574                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
575                 public static string options_as_text (Gst.RTSP.Method options);
576                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
577                 [Version (since = "1.2")]
578                 public static Gst.RTSP.Method options_from_text (string options);
579                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
580                 public static bool range_convert_units (Gst.RTSP.TimeRange range, Gst.RTSP.RangeUnit unit);
581                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
582                 public static void range_free (Gst.RTSP.TimeRange range);
583                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
584                 [Version (since = "1.2")]
585                 public static bool range_get_times (Gst.RTSP.TimeRange range, out Gst.ClockTime min, out Gst.ClockTime max);
586                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
587                 public static Gst.RTSP.Result range_parse (string rangestr, out Gst.RTSP.TimeRange range);
588                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
589                 public static string range_to_string (Gst.RTSP.TimeRange range);
590                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
591                 public static unowned string status_as_text (Gst.RTSP.StatusCode code);
592                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
593                 public static string strresult (Gst.RTSP.Result result);
594                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
595                 public static Gst.RTSP.Result transport_get_manager (Gst.RTSP.TransMode trans, out unowned string? manager, uint option);
596                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
597                 [Version (deprecated = true)]
598                 public static Gst.RTSP.Result transport_get_mime (Gst.RTSP.TransMode trans, string mime);
599                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
600                 public static Gst.RTSP.Result transport_new (Gst.RTSP.Transport transport);
601                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
602                 public static Gst.RTSP.Result transport_parse (string str, Gst.RTSP.Transport transport);
603                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
604                 public static Gst.RTSP.Result url_parse (string urlstr, out Gst.RTSP.Url url);
605                 [CCode (cheader_filename = "gst/rtsp/rtsp.h")]
606                 public static unowned string version_as_text (Gst.RTSP.Version version);
607         }