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