Release 0.40.3
[vala-gnome.git] / vapi / gstreamer-rtsp-0.10.vapi
blob78833691240e1020ee55f676f6d82c04b5ff905a
1 /* gstreamer-rtsp-0.10.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", gir_namespace = "GstRtsp", gir_version = "0.10", lower_case_cprefix = "gst_")]
4 [Version (deprecated = true, replacement = "gstreamer-1.0")]
5 namespace Gst {
6         [CCode (cheader_filename = "gst/rtsp/gstrtspconnection.h")]
7         [Compact]
8         public class RTSPConnection {
9                 public static Gst.RTSPResult accept (int sock, out unowned Gst.RTSPConnection conn);
10                 public void clear_auth_params ();
11                 public Gst.RTSPResult close ();
12                 public Gst.RTSPResult connect (GLib.TimeVal timeout);
13                 public static Gst.RTSPResult create (Gst.RTSPUrl url, out Gst.RTSPConnection conn);
14                 public static Gst.RTSPResult create_from_fd (int fd, string ip, uint16 port, string initial_buffer, out unowned Gst.RTSPConnection conn);
15                 public Gst.RTSPResult do_tunnel (Gst.RTSPConnection conn2);
16                 public Gst.RTSPResult flush (bool flush);
17                 public unowned string get_ip ();
18                 public int get_readfd ();
19                 public unowned string get_tunnelid ();
20                 public unowned Gst.RTSPUrl get_url ();
21                 public int get_writefd ();
22                 public bool is_tunneled ();
23                 public Gst.RTSPResult next_timeout (GLib.TimeVal timeout);
24                 public Gst.RTSPResult poll (Gst.RTSPEvent events, Gst.RTSPEvent revents, GLib.TimeVal timeout);
25                 public Gst.RTSPResult read (uchar data, uint size, GLib.TimeVal timeout);
26                 public Gst.RTSPResult receive (Gst.RTSPMessage message, GLib.TimeVal timeout);
27                 public Gst.RTSPResult reset_timeout ();
28                 public Gst.RTSPResult send (Gst.RTSPMessage message, GLib.TimeVal timeout);
29                 public Gst.RTSPResult set_auth (Gst.RTSPAuthMethod method, string user, string pass);
30                 public void set_auth_param (string param, string value);
31                 public void set_http_mode (bool enable);
32                 public void set_ip (string ip);
33                 public Gst.RTSPResult set_proxy (string host, uint port);
34                 public Gst.RTSPResult set_qos_dscp (uint qos_dscp);
35                 public void set_tunneled (bool tunneled);
36                 public Gst.RTSPResult write (uchar data, uint size, GLib.TimeVal timeout);
37         }
38         [CCode (cheader_filename = "gst/rtsp/gstrtspmessage.h", free_function = "gst_rtsp_message_free")]
39         [Compact]
40         public class RTSPMessage {
41                 public uchar body;
42                 public uint body_size;
43                 public GLib.Array hdr_fields;
44                 public Gst.RTSPMsgType type;
45                 public void* type_data;
46                 public Gst.RTSPResult add_header (Gst.RTSPHeaderField field, string value);
47                 public Gst.RTSPResult append_headers (GLib.StringBuilder str);
48                 public Gst.RTSPResult dump ();
49                 public Gst.RTSPResult get_body (out unowned uchar[] data, uint size);
50                 public Gst.RTSPResult get_header (Gst.RTSPHeaderField field, out unowned string value, int indx);
51                 public Gst.RTSPResult init ();
52                 public Gst.RTSPResult init_data (uchar channel);
53                 public Gst.RTSPResult init_request (Gst.RTSPMethod method, string uri);
54                 public Gst.RTSPResult init_response (Gst.RTSPStatusCode code, string reason, Gst.RTSPMessage request);
55                 public static Gst.RTSPResult @new (out Gst.RTSPMessage msg);
56                 public static Gst.RTSPResult new_data (out Gst.RTSPMessage msg, uchar channel);
57                 public static Gst.RTSPResult new_request (out Gst.RTSPMessage msg, Gst.RTSPMethod method, string uri);
58                 public static Gst.RTSPResult new_response (out Gst.RTSPMessage msg, Gst.RTSPStatusCode code, string reason, Gst.RTSPMessage request);
59                 public Gst.RTSPResult parse_data (uchar channel);
60                 public Gst.RTSPResult parse_request (Gst.RTSPMethod method, string uri, Gst.RTSPVersion version);
61                 public Gst.RTSPResult parse_response (Gst.RTSPStatusCode code, string reason, Gst.RTSPVersion version);
62                 public Gst.RTSPResult remove_header (Gst.RTSPHeaderField field, int indx);
63                 public Gst.RTSPResult set_body (uchar[] data, uint size);
64                 public Gst.RTSPResult steal_body (out uchar[] data, uint size);
65                 public Gst.RTSPResult take_body (owned uchar[] data, uint size);
66                 public Gst.RTSPResult take_header (Gst.RTSPHeaderField field, owned string value);
67                 public Gst.RTSPResult unset ();
68         }
69         [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
70         [Compact]
71         public class RTSPRange {
72                 public int max;
73                 public int min;
74                 public static Gst.RTSPResult parse (string rangestr, out Gst.RTSPTimeRange range);
75                 public static string to_string (Gst.RTSPTimeRange range);
76         }
77         [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
78         [Compact]
79         public class RTSPTime {
80                 public double seconds;
81                 public Gst.RTSPTimeType type;
82         }
83         [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
84         [Compact]
85         public class RTSPTimeRange {
86                 public Gst.RTSPTime max;
87                 public Gst.RTSPTime min;
88                 public Gst.RTSPRangeUnit unit;
89         }
90         [CCode (cheader_filename = "gst/rtsp/gstrtsptransport.h", free_function = "gst_rtsp_transport_free")]
91         [Compact]
92         public class RTSPTransport {
93                 public bool append;
94                 public Gst.RTSPRange client_port;
95                 public string destination;
96                 public Gst.RTSPRange interleaved;
97                 public uint layers;
98                 public Gst.RTSPLowerTrans lower_transport;
99                 public bool mode_play;
100                 public bool mode_record;
101                 public Gst.RTSPRange port;
102                 public Gst.RTSPProfile profile;
103                 public Gst.RTSPRange server_port;
104                 public string source;
105                 public uint ssrc;
106                 public Gst.RTSPTransMode trans;
107                 public uint ttl;
108                 public string as_text ();
109                 public static Gst.RTSPResult get_manager (Gst.RTSPTransMode trans, string manager, uint option);
110                 public static Gst.RTSPResult get_mime (Gst.RTSPTransMode trans, string mime);
111                 public Gst.RTSPResult init ();
112                 public static Gst.RTSPResult @new (out Gst.RTSPTransport transport);
113                 public static Gst.RTSPResult parse (string str, Gst.RTSPTransport transport);
114         }
115         [CCode (cheader_filename = "gst/rtsp/gstrtspconnection.h", copy_function = "gst_rtsp_url_copy", type_id = "gst_rtsp_url_get_type ()")]
116         [Compact]
117         public class RTSPUrl {
118                 public string abspath;
119                 public Gst.RTSPFamily family;
120                 public string host;
121                 public string passwd;
122                 public uint16 port;
123                 public string query;
124                 public Gst.RTSPLowerTrans transports;
125                 public string user;
126                 public Gst.RTSPUrl copy ();
127                 public unowned string decode_path_components ();
128                 public Gst.RTSPResult get_port (uint16 port);
129                 public string get_request_uri ();
130                 public static Gst.RTSPResult parse (string urlstr, out Gst.RTSPUrl url);
131                 public Gst.RTSPResult set_port (uint16 port);
132         }
133         [CCode (cheader_filename = "gst/rtsp/gstrtspconnection.h", unref_function = "gst_rtsp_watch_unref")]
134         [Compact]
135         public class RTSPWatch {
136                 [CCode (has_construct_function = false)]
137                 public RTSPWatch (Gst.RTSPConnection conn, Gst.RTSPWatchFuncs funcs, GLib.DestroyNotify notify);
138                 public uint attach (GLib.MainContext context);
139                 public uint queue_data (uchar data, uint size);
140                 public uint queue_message (Gst.RTSPMessage message);
141                 public void reset ();
142                 public Gst.RTSPResult send_message (Gst.RTSPMessage message, uint id);
143                 public Gst.RTSPResult write_data (uchar data, uint size, uint id);
144         }
145         [CCode (cheader_filename = "gst/rtsp/gstrtspconnection.h")]
146         [Compact]
147         public class RTSPWatchFuncs {
148                 public weak GLib.Callback closed;
149                 public weak GLib.Callback error;
150                 public weak GLib.Callback error_full;
151                 public weak GLib.Callback message_received;
152                 public weak GLib.Callback message_sent;
153                 public weak GLib.Callback tunnel_complete;
154                 public weak GLib.Callback tunnel_lost;
155                 public weak GLib.Callback tunnel_start;
156         }
157         [CCode (cheader_filename = "gst/rtsp/gstrtspextension.h")]
158         public interface RTSPExtension {
159                 public abstract Gst.RTSPResult after_send (Gst.RTSPMessage req, Gst.RTSPMessage resp);
160                 public abstract Gst.RTSPResult before_send (Gst.RTSPMessage req);
161                 public abstract bool configure_stream (Gst.Caps caps);
162                 public abstract bool detect_server (Gst.RTSPMessage resp);
163                 public abstract Gst.RTSPResult get_transports (Gst.RTSPLowerTrans protocols, string transport);
164                 public abstract Gst.RTSPResult parse_sdp (Gst.SDPMessage sdp, Gst.Structure s);
165                 public abstract Gst.RTSPResult receive_request (Gst.RTSPMessage req);
166                 public abstract Gst.RTSPResult setup_media (Gst.SDPMedia media);
167                 public abstract Gst.RTSPResult stream_select (Gst.RTSPUrl url);
168                 [HasEmitter]
169                 public signal Gst.RTSPResult send (void* req, void* resp);
170         }
171         [CCode (cheader_filename = "gst/rtsp/gstrtspconnection.h", cprefix = "GST_RTSP_AUTH_")]
172         public enum RTSPAuthMethod {
173                 NONE,
174                 BASIC,
175                 DIGEST
176         }
177         [CCode (cheader_filename = "gst/rtsp/gstrtspconnection.h", cprefix = "GST_RTSP_EV_")]
178         [Flags]
179         public enum RTSPEvent {
180                 READ,
181                 WRITE
182         }
183         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h", cprefix = "GST_RTSP_FAM_")]
184         public enum RTSPFamily {
185                 NONE,
186                 INET,
187                 INET6
188         }
189         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h", cprefix = "GST_RTSP_HDR_")]
190         public enum RTSPHeaderField {
191                 INVALID,
192                 ACCEPT,
193                 ACCEPT_ENCODING,
194                 ACCEPT_LANGUAGE,
195                 ALLOW,
196                 AUTHORIZATION,
197                 BANDWIDTH,
198                 BLOCKSIZE,
199                 CACHE_CONTROL,
200                 CONFERENCE,
201                 CONNECTION,
202                 CONTENT_BASE,
203                 CONTENT_ENCODING,
204                 CONTENT_LANGUAGE,
205                 CONTENT_LENGTH,
206                 CONTENT_LOCATION,
207                 CONTENT_TYPE,
208                 CSEQ,
209                 DATE,
210                 EXPIRES,
211                 FROM,
212                 IF_MODIFIED_SINCE,
213                 LAST_MODIFIED,
214                 PROXY_AUTHENTICATE,
215                 PROXY_REQUIRE,
216                 PUBLIC,
217                 RANGE,
218                 REFERER,
219                 REQUIRE,
220                 RETRY_AFTER,
221                 RTP_INFO,
222                 SCALE,
223                 SESSION,
224                 SERVER,
225                 SPEED,
226                 TRANSPORT,
227                 UNSUPPORTED,
228                 USER_AGENT,
229                 VIA,
230                 WWW_AUTHENTICATE,
231                 CLIENT_CHALLENGE,
232                 REAL_CHALLENGE1,
233                 REAL_CHALLENGE2,
234                 REAL_CHALLENGE3,
235                 SUBSCRIBE,
236                 ALERT,
237                 CLIENT_ID,
238                 COMPANY_ID,
239                 GUID,
240                 REGION_DATA,
241                 MAX_ASM_WIDTH,
242                 LANGUAGE,
243                 PLAYER_START_TIME,
244                 LOCATION,
245                 ETAG,
246                 IF_MATCH,
247                 ACCEPT_CHARSET,
248                 SUPPORTED,
249                 VARY,
250                 X_ACCELERATE_STREAMING,
251                 X_ACCEPT_AUTHENT,
252                 X_ACCEPT_PROXY_AUTHENT,
253                 X_BROADCAST_ID,
254                 X_BURST_STREAMING,
255                 X_NOTICE,
256                 X_PLAYER_LAG_TIME,
257                 X_PLAYLIST,
258                 X_PLAYLIST_CHANGE_NOTICE,
259                 X_PLAYLIST_GEN_ID,
260                 X_PLAYLIST_SEEK_ID,
261                 X_PROXY_CLIENT_AGENT,
262                 X_PROXY_CLIENT_VERB,
263                 X_RECEDING_PLAYLISTCHANGE,
264                 X_RTP_INFO,
265                 X_STARTUPPROFILE,
266                 TIMESTAMP,
267                 AUTHENTICATION_INFO,
268                 HOST,
269                 PRAGMA,
270                 X_SERVER_IP_ADDRESS,
271                 X_SESSIONCOOKIE,
272                 LAST
273         }
274         [CCode (cheader_filename = "gst/rtsp/gstrtspextension.h", cprefix = "GST_RTSP_LOWER_TRANS_")]
275         [Flags]
276         public enum RTSPLowerTrans {
277                 UDP,
278                 UDP_MCAST,
279                 TCP,
280                 HTTP
281         }
282         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h", cprefix = "GST_RTSP_")]
283         [Flags]
284         public enum RTSPMethod {
285                 INVALID,
286                 DESCRIBE,
287                 ANNOUNCE,
288                 GET_PARAMETER,
289                 OPTIONS,
290                 PAUSE,
291                 PLAY,
292                 RECORD,
293                 REDIRECT,
294                 SETUP,
295                 SET_PARAMETER,
296                 TEARDOWN,
297                 GET,
298                 POST
299         }
300         [CCode (cheader_filename = "gst/rtsp/gstrtspmessage.h", cprefix = "GST_RTSP_MESSAGE_", has_type_id = false)]
301         public enum RTSPMsgType {
302                 INVALID,
303                 REQUEST,
304                 RESPONSE,
305                 HTTP_REQUEST,
306                 HTTP_RESPONSE,
307                 DATA
308         }
309         [CCode (cheader_filename = "gst/rtsp/gstrtsptransport.h", cprefix = "GST_RTSP_PROFILE_", has_type_id = false)]
310         public enum RTSPProfile {
311                 UNKNOWN,
312                 AVP,
313                 SAVP
314         }
315         [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h", cprefix = "GST_RTSP_RANGE_", has_type_id = false)]
316         public enum RTSPRangeUnit {
317                 SMPTE,
318                 SMPTE_30_DROP,
319                 SMPTE_25,
320                 NPT,
321                 CLOCK
322         }
323         [CCode (cheader_filename = "gst/rtsp/gstrtspconnection.h", cprefix = "GST_RTSP_")]
324         public enum RTSPResult {
325                 OK,
326                 ERROR,
327                 EINVAL,
328                 EINTR,
329                 ENOMEM,
330                 ERESOLV,
331                 ENOTIMPL,
332                 ESYS,
333                 EPARSE,
334                 EWSASTART,
335                 EWSAVERSION,
336                 EEOF,
337                 ENET,
338                 ENOTIP,
339                 ETIMEOUT,
340                 ETGET,
341                 ETPOST,
342                 ELAST
343         }
344         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h", cprefix = "GST_RTSP_STATE_")]
345         public enum RTSPState {
346                 INVALID,
347                 INIT,
348                 READY,
349                 SEEKING,
350                 PLAYING,
351                 RECORDING
352         }
353         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h", cprefix = "GST_RTSP_STS_")]
354         public enum RTSPStatusCode {
355                 INVALID,
356                 CONTINUE,
357                 OK,
358                 CREATED,
359                 LOW_ON_STORAGE,
360                 MULTIPLE_CHOICES,
361                 MOVED_PERMANENTLY,
362                 MOVE_TEMPORARILY,
363                 SEE_OTHER,
364                 NOT_MODIFIED,
365                 USE_PROXY,
366                 BAD_REQUEST,
367                 UNAUTHORIZED,
368                 PAYMENT_REQUIRED,
369                 FORBIDDEN,
370                 NOT_FOUND,
371                 METHOD_NOT_ALLOWED,
372                 NOT_ACCEPTABLE,
373                 PROXY_AUTH_REQUIRED,
374                 REQUEST_TIMEOUT,
375                 GONE,
376                 LENGTH_REQUIRED,
377                 PRECONDITION_FAILED,
378                 REQUEST_ENTITY_TOO_LARGE,
379                 REQUEST_URI_TOO_LARGE,
380                 UNSUPPORTED_MEDIA_TYPE,
381                 PARAMETER_NOT_UNDERSTOOD,
382                 CONFERENCE_NOT_FOUND,
383                 NOT_ENOUGH_BANDWIDTH,
384                 SESSION_NOT_FOUND,
385                 METHOD_NOT_VALID_IN_THIS_STATE,
386                 HEADER_FIELD_NOT_VALID_FOR_RESOURCE,
387                 INVALID_RANGE,
388                 PARAMETER_IS_READONLY,
389                 AGGREGATE_OPERATION_NOT_ALLOWED,
390                 ONLY_AGGREGATE_OPERATION_ALLOWED,
391                 UNSUPPORTED_TRANSPORT,
392                 DESTINATION_UNREACHABLE,
393                 INTERNAL_SERVER_ERROR,
394                 NOT_IMPLEMENTED,
395                 BAD_GATEWAY,
396                 SERVICE_UNAVAILABLE,
397                 GATEWAY_TIMEOUT,
398                 RTSP_VERSION_NOT_SUPPORTED,
399                 OPTION_NOT_SUPPORTED
400         }
401         [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h", cprefix = "GST_RTSP_TIME_", has_type_id = false)]
402         public enum RTSPTimeType {
403                 SECONDS,
404                 NOW,
405                 END
406         }
407         [CCode (cheader_filename = "gst/rtsp/gstrtsptransport.h", cprefix = "GST_RTSP_TRANS_", has_type_id = false)]
408         public enum RTSPTransMode {
409                 UNKNOWN,
410                 RTP,
411                 RDT
412         }
413         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h", cprefix = "GST_RTSP_VERSION_")]
414         public enum RTSPVersion {
415                 INVALID,
416                 @1_0,
417                 @1_1
418         }
419         [CCode (cheader_filename = "gst/rtsp/gstrtspurl.h")]
420         public const int RTSP_DEFAULT_PORT;
421         [CCode (cheader_filename = "gst/rtsp/gstrtspbase64.h")]
422         public static void rtsp_base64_decode_ip (string data, size_t len);
423         [CCode (cheader_filename = "gst/rtsp/gstrtspbase64.h")]
424         public static unowned string rtsp_base64_encode (string data, size_t len);
425         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
426         public static Gst.RTSPHeaderField rtsp_find_header_field (string header);
427         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
428         public static Gst.RTSPMethod rtsp_find_method (string method);
429         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
430         public static bool rtsp_header_allow_multiple (Gst.RTSPHeaderField field);
431         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
432         public static unowned string rtsp_header_as_text (Gst.RTSPHeaderField field);
433         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
434         public static unowned string rtsp_method_as_text (Gst.RTSPMethod method);
435         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs")]
436         public static string rtsp_options_as_text (Gst.RTSPMethod options);
437         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
438         public static unowned string rtsp_status_as_text (Gst.RTSPStatusCode code);
439         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
440         public static unowned string rtsp_strresult (Gst.RTSPResult _result);
441         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
442         public static unowned string rtsp_version_as_text (Gst.RTSPVersion version);