posix: Fix dup0 wrappers in POSIX profile
[vala-lang.git] / vapi / gstreamer-rtsp-0.10.vapi
blob9553c20d07f85a2269290abf07442d777824ff1f
1 /* gstreamer-rtsp-0.10.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
4 namespace Gst {
5         [Compact]
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);
34         }
35         [Compact]
36         [CCode (cheader_filename = "gst/rtsp/gstrtspmessage.h")]
37         public class RTSPMessage {
38                 public uchar body;
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 ();
65         }
66         [Compact]
67         [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
68         public class RTSPRange {
69                 public int max;
70                 public int min;
71                 public static Gst.RTSPResult parse (string rangestr, out Gst.RTSPTimeRange range);
72                 public static string to_string (Gst.RTSPTimeRange range);
73         }
74         [Compact]
75         [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
76         public class RTSPTime {
77                 public double seconds;
78                 public Gst.RTSPTimeType type;
79         }
80         [Compact]
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;
86         }
87         [Compact]
88         [CCode (cheader_filename = "gst/rtsp/gstrtsptransport.h")]
89         public class RTSPTransport {
90                 public bool append;
91                 public Gst.RTSPRange client_port;
92                 public string destination;
93                 public Gst.RTSPRange interleaved;
94                 public uint layers;
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;
102                 public uint ssrc;
103                 public Gst.RTSPTransMode trans;
104                 public uint ttl;
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);
111         }
112         [Compact]
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;
117                 public string host;
118                 public string passwd;
119                 public uint16 port;
120                 public string query;
121                 public Gst.RTSPLowerTrans transports;
122                 public string user;
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);
128         }
129         [Compact]
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 ();
138         }
139         [Compact]
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;
148         }
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);
160                 [HasEmitter]
161                 public signal Gst.RTSPResult send (void* req, void* resp);
162         }
163         [CCode (cprefix = "GST_RTSP_AUTH_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
164         public enum RTSPAuthMethod {
165                 NONE,
166                 BASIC,
167                 DIGEST
168         }
169         [CCode (cprefix = "GST_RTSP_EV_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
170         [Flags]
171         public enum RTSPEvent {
172                 READ,
173                 WRITE
174         }
175         [CCode (cprefix = "GST_RTSP_FAM_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
176         public enum RTSPFamily {
177                 NONE,
178                 INET,
179                 INET6
180         }
181         [CCode (cprefix = "GST_RTSP_HDR_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
182         public enum RTSPHeaderField {
183                 INVALID,
184                 ACCEPT,
185                 ACCEPT_ENCODING,
186                 ACCEPT_LANGUAGE,
187                 ALLOW,
188                 AUTHORIZATION,
189                 BANDWIDTH,
190                 BLOCKSIZE,
191                 CACHE_CONTROL,
192                 CONFERENCE,
193                 CONNECTION,
194                 CONTENT_BASE,
195                 CONTENT_ENCODING,
196                 CONTENT_LANGUAGE,
197                 CONTENT_LENGTH,
198                 CONTENT_LOCATION,
199                 CONTENT_TYPE,
200                 CSEQ,
201                 DATE,
202                 EXPIRES,
203                 FROM,
204                 IF_MODIFIED_SINCE,
205                 LAST_MODIFIED,
206                 PROXY_AUTHENTICATE,
207                 PROXY_REQUIRE,
208                 PUBLIC,
209                 RANGE,
210                 REFERER,
211                 REQUIRE,
212                 RETRY_AFTER,
213                 RTP_INFO,
214                 SCALE,
215                 SESSION,
216                 SERVER,
217                 SPEED,
218                 TRANSPORT,
219                 UNSUPPORTED,
220                 USER_AGENT,
221                 VIA,
222                 WWW_AUTHENTICATE,
223                 CLIENT_CHALLENGE,
224                 REAL_CHALLENGE1,
225                 REAL_CHALLENGE2,
226                 REAL_CHALLENGE3,
227                 SUBSCRIBE,
228                 ALERT,
229                 CLIENT_ID,
230                 COMPANY_ID,
231                 GUID,
232                 REGION_DATA,
233                 MAX_ASM_WIDTH,
234                 LANGUAGE,
235                 PLAYER_START_TIME,
236                 LOCATION,
237                 ETAG,
238                 IF_MATCH,
239                 ACCEPT_CHARSET,
240                 SUPPORTED,
241                 VARY,
242                 X_ACCELERATE_STREAMING,
243                 X_ACCEPT_AUTHENT,
244                 X_ACCEPT_PROXY_AUTHENT,
245                 X_BROADCAST_ID,
246                 X_BURST_STREAMING,
247                 X_NOTICE,
248                 X_PLAYER_LAG_TIME,
249                 X_PLAYLIST,
250                 X_PLAYLIST_CHANGE_NOTICE,
251                 X_PLAYLIST_GEN_ID,
252                 X_PLAYLIST_SEEK_ID,
253                 X_PROXY_CLIENT_AGENT,
254                 X_PROXY_CLIENT_VERB,
255                 X_RECEDING_PLAYLISTCHANGE,
256                 X_RTP_INFO,
257                 X_STARTUPPROFILE,
258                 TIMESTAMP
259         }
260         [CCode (cprefix = "GST_RTSP_LOWER_TRANS_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtspextension.h")]
261         public enum RTSPLowerTrans {
262                 UNKNOWN,
263                 UDP,
264                 UDP_MCAST,
265                 TCP,
266                 HTTP
267         }
268         [CCode (cprefix = "GST_RTSP_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
269         [Flags]
270         public enum RTSPMethod {
271                 INVALID,
272                 DESCRIBE,
273                 ANNOUNCE,
274                 GET_PARAMETER,
275                 OPTIONS,
276                 PAUSE,
277                 PLAY,
278                 RECORD,
279                 REDIRECT,
280                 SETUP,
281                 SET_PARAMETER,
282                 TEARDOWN
283         }
284         [CCode (cprefix = "GST_RTSP_MESSAGE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtspmessage.h")]
285         public enum RTSPMsgType {
286                 INVALID,
287                 REQUEST,
288                 RESPONSE,
289                 DATA
290         }
291         [CCode (cprefix = "GST_RTSP_PROFILE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsptransport.h")]
292         public enum RTSPProfile {
293                 UNKNOWN,
294                 AVP,
295                 SAVP
296         }
297         [CCode (cprefix = "GST_RTSP_RANGE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsprange.h")]
298         public enum RTSPRangeUnit {
299                 SMPTE,
300                 SMPTE_30_DROP,
301                 SMPTE_25,
302                 NPT,
303                 CLOCK
304         }
305         [CCode (cprefix = "GST_RTSP_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
306         public enum RTSPResult {
307                 OK,
308                 ERROR,
309                 EINVAL,
310                 EINTR,
311                 ENOMEM,
312                 ERESOLV,
313                 ENOTIMPL,
314                 ESYS,
315                 EPARSE,
316                 EWSASTART,
317                 EWSAVERSION,
318                 EEOF,
319                 ENET,
320                 ENOTIP,
321                 ETIMEOUT,
322                 ETGET,
323                 ETPOST,
324                 ELAST
325         }
326         [CCode (cprefix = "GST_RTSP_STATE_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
327         public enum RTSPState {
328                 INVALID,
329                 INIT,
330                 READY,
331                 SEEKING,
332                 PLAYING,
333                 RECORDING
334         }
335         [CCode (cprefix = "GST_RTSP_STS_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
336         public enum RTSPStatusCode {
337                 INVALID,
338                 CONTINUE,
339                 OK,
340                 CREATED,
341                 LOW_ON_STORAGE,
342                 MULTIPLE_CHOICES,
343                 MOVED_PERMANENTLY,
344                 MOVE_TEMPORARILY,
345                 SEE_OTHER,
346                 NOT_MODIFIED,
347                 USE_PROXY,
348                 BAD_REQUEST,
349                 UNAUTHORIZED,
350                 PAYMENT_REQUIRED,
351                 FORBIDDEN,
352                 NOT_FOUND,
353                 METHOD_NOT_ALLOWED,
354                 NOT_ACCEPTABLE,
355                 PROXY_AUTH_REQUIRED,
356                 REQUEST_TIMEOUT,
357                 GONE,
358                 LENGTH_REQUIRED,
359                 PRECONDITION_FAILED,
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,
366                 SESSION_NOT_FOUND,
367                 METHOD_NOT_VALID_IN_THIS_STATE,
368                 HEADER_FIELD_NOT_VALID_FOR_RESOURCE,
369                 INVALID_RANGE,
370                 PARAMETER_IS_READONLY,
371                 AGGREGATE_OPERATION_NOT_ALLOWED,
372                 ONLY_AGGREGATE_OPERATION_ALLOWED,
373                 UNSUPPORTED_TRANSPORT,
374                 DESTINATION_UNREACHABLE,
375                 INTERNAL_SERVER_ERROR,
376                 NOT_IMPLEMENTED,
377                 BAD_GATEWAY,
378                 SERVICE_UNAVAILABLE,
379                 GATEWAY_TIMEOUT,
380                 RTSP_VERSION_NOT_SUPPORTED,
381                 OPTION_NOT_SUPPORTED
382         }
383         [CCode (cprefix = "GST_RTSP_TIME_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsprange.h")]
384         public enum RTSPTimeType {
385                 SECONDS,
386                 NOW,
387                 END
388         }
389         [CCode (cprefix = "GST_RTSP_TRANS_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsptransport.h")]
390         public enum RTSPTransMode {
391                 UNKNOWN,
392                 RTP,
393                 RDT
394         }
395         [CCode (cprefix = "GST_RTSP_VERSION_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
396         public enum RTSPVersion {
397                 INVALID,
398                 @1_0
399         }
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);