GType: Fix C warnings for properties in interface_init
[vala-lang.git] / vapi / gstreamer-rtsp-0.10.vapi
blob5e338b0954c734f208520db4fa7b0217d73f9c7f
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_message (Gst.RTSPMessage message);
136                 public void reset ();
137         }
138         [Compact]
139         [CCode (cheader_filename = "gst/gst.h")]
140         public class RTSPWatchFuncs {
141                 public weak GLib.Callback closed;
142                 public weak GLib.Callback error;
143                 public weak GLib.Callback message_received;
144                 public weak GLib.Callback message_sent;
145                 public weak GLib.Callback tunnel_complete;
146                 public weak GLib.Callback tunnel_start;
147         }
148         [CCode (cheader_filename = "gst/rtsp/gstrtspextension.h")]
149         public interface RTSPExtension {
150                 public abstract Gst.RTSPResult after_send (Gst.RTSPMessage req, Gst.RTSPMessage resp);
151                 public abstract Gst.RTSPResult before_send (Gst.RTSPMessage req);
152                 public abstract bool configure_stream (Gst.Caps caps);
153                 public abstract bool detect_server (Gst.RTSPMessage resp);
154                 public abstract Gst.RTSPResult get_transports (Gst.RTSPLowerTrans protocols, string transport);
155                 public abstract Gst.RTSPResult parse_sdp (Gst.SDPMessage sdp, Gst.Structure s);
156                 public abstract Gst.RTSPResult receive_request (Gst.RTSPMessage req);
157                 public abstract Gst.RTSPResult setup_media (Gst.SDPMedia media);
158                 public abstract Gst.RTSPResult stream_select (Gst.RTSPUrl url);
159                 [HasEmitter]
160                 public signal Gst.RTSPResult send (void* req, void* resp);
161         }
162         [CCode (cprefix = "GST_RTSP_AUTH_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
163         public enum RTSPAuthMethod {
164                 NONE,
165                 BASIC,
166                 DIGEST
167         }
168         [CCode (cprefix = "GST_RTSP_EV_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
169         [Flags]
170         public enum RTSPEvent {
171                 READ,
172                 WRITE
173         }
174         [CCode (cprefix = "GST_RTSP_FAM_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
175         public enum RTSPFamily {
176                 NONE,
177                 INET,
178                 INET6
179         }
180         [CCode (cprefix = "GST_RTSP_HDR_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
181         public enum RTSPHeaderField {
182                 INVALID,
183                 ACCEPT,
184                 ACCEPT_ENCODING,
185                 ACCEPT_LANGUAGE,
186                 ALLOW,
187                 AUTHORIZATION,
188                 BANDWIDTH,
189                 BLOCKSIZE,
190                 CACHE_CONTROL,
191                 CONFERENCE,
192                 CONNECTION,
193                 CONTENT_BASE,
194                 CONTENT_ENCODING,
195                 CONTENT_LANGUAGE,
196                 CONTENT_LENGTH,
197                 CONTENT_LOCATION,
198                 CONTENT_TYPE,
199                 CSEQ,
200                 DATE,
201                 EXPIRES,
202                 FROM,
203                 IF_MODIFIED_SINCE,
204                 LAST_MODIFIED,
205                 PROXY_AUTHENTICATE,
206                 PROXY_REQUIRE,
207                 PUBLIC,
208                 RANGE,
209                 REFERER,
210                 REQUIRE,
211                 RETRY_AFTER,
212                 RTP_INFO,
213                 SCALE,
214                 SESSION,
215                 SERVER,
216                 SPEED,
217                 TRANSPORT,
218                 UNSUPPORTED,
219                 USER_AGENT,
220                 VIA,
221                 WWW_AUTHENTICATE,
222                 CLIENT_CHALLENGE,
223                 REAL_CHALLENGE1,
224                 REAL_CHALLENGE2,
225                 REAL_CHALLENGE3,
226                 SUBSCRIBE,
227                 ALERT,
228                 CLIENT_ID,
229                 COMPANY_ID,
230                 GUID,
231                 REGION_DATA,
232                 MAX_ASM_WIDTH,
233                 LANGUAGE,
234                 PLAYER_START_TIME,
235                 LOCATION,
236                 ETAG,
237                 IF_MATCH
238         }
239         [CCode (cprefix = "GST_RTSP_LOWER_TRANS_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtspextension.h")]
240         public enum RTSPLowerTrans {
241                 UNKNOWN,
242                 UDP,
243                 UDP_MCAST,
244                 TCP,
245                 HTTP
246         }
247         [CCode (cprefix = "GST_RTSP_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
248         [Flags]
249         public enum RTSPMethod {
250                 INVALID,
251                 DESCRIBE,
252                 ANNOUNCE,
253                 GET_PARAMETER,
254                 OPTIONS,
255                 PAUSE,
256                 PLAY,
257                 RECORD,
258                 REDIRECT,
259                 SETUP,
260                 SET_PARAMETER,
261                 TEARDOWN
262         }
263         [CCode (cprefix = "GST_RTSP_MESSAGE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtspmessage.h")]
264         public enum RTSPMsgType {
265                 INVALID,
266                 REQUEST,
267                 RESPONSE,
268                 DATA
269         }
270         [CCode (cprefix = "GST_RTSP_PROFILE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsptransport.h")]
271         public enum RTSPProfile {
272                 UNKNOWN,
273                 AVP,
274                 SAVP
275         }
276         [CCode (cprefix = "GST_RTSP_RANGE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsprange.h")]
277         public enum RTSPRangeUnit {
278                 SMPTE,
279                 SMPTE_30_DROP,
280                 SMPTE_25,
281                 NPT,
282                 CLOCK
283         }
284         [CCode (cprefix = "GST_RTSP_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
285         public enum RTSPResult {
286                 OK,
287                 ERROR,
288                 EINVAL,
289                 EINTR,
290                 ENOMEM,
291                 ERESOLV,
292                 ENOTIMPL,
293                 ESYS,
294                 EPARSE,
295                 EWSASTART,
296                 EWSAVERSION,
297                 EEOF,
298                 ENET,
299                 ENOTIP,
300                 ETIMEOUT,
301                 ETGET,
302                 ETPOST,
303                 ELAST
304         }
305         [CCode (cprefix = "GST_RTSP_STATE_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
306         public enum RTSPState {
307                 INVALID,
308                 INIT,
309                 READY,
310                 SEEKING,
311                 PLAYING,
312                 RECORDING
313         }
314         [CCode (cprefix = "GST_RTSP_STS_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
315         public enum RTSPStatusCode {
316                 INVALID,
317                 CONTINUE,
318                 OK,
319                 CREATED,
320                 LOW_ON_STORAGE,
321                 MULTIPLE_CHOICES,
322                 MOVED_PERMANENTLY,
323                 MOVE_TEMPORARILY,
324                 SEE_OTHER,
325                 NOT_MODIFIED,
326                 USE_PROXY,
327                 BAD_REQUEST,
328                 UNAUTHORIZED,
329                 PAYMENT_REQUIRED,
330                 FORBIDDEN,
331                 NOT_FOUND,
332                 METHOD_NOT_ALLOWED,
333                 NOT_ACCEPTABLE,
334                 PROXY_AUTH_REQUIRED,
335                 REQUEST_TIMEOUT,
336                 GONE,
337                 LENGTH_REQUIRED,
338                 PRECONDITION_FAILED,
339                 REQUEST_ENTITY_TOO_LARGE,
340                 REQUEST_URI_TOO_LARGE,
341                 UNSUPPORTED_MEDIA_TYPE,
342                 PARAMETER_NOT_UNDERSTOOD,
343                 CONFERENCE_NOT_FOUND,
344                 NOT_ENOUGH_BANDWIDTH,
345                 SESSION_NOT_FOUND,
346                 METHOD_NOT_VALID_IN_THIS_STATE,
347                 HEADER_FIELD_NOT_VALID_FOR_RESOURCE,
348                 INVALID_RANGE,
349                 PARAMETER_IS_READONLY,
350                 AGGREGATE_OPERATION_NOT_ALLOWED,
351                 ONLY_AGGREGATE_OPERATION_ALLOWED,
352                 UNSUPPORTED_TRANSPORT,
353                 DESTINATION_UNREACHABLE,
354                 INTERNAL_SERVER_ERROR,
355                 NOT_IMPLEMENTED,
356                 BAD_GATEWAY,
357                 SERVICE_UNAVAILABLE,
358                 GATEWAY_TIMEOUT,
359                 RTSP_VERSION_NOT_SUPPORTED,
360                 OPTION_NOT_SUPPORTED
361         }
362         [CCode (cprefix = "GST_RTSP_TIME_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsprange.h")]
363         public enum RTSPTimeType {
364                 SECONDS,
365                 NOW,
366                 END
367         }
368         [CCode (cprefix = "GST_RTSP_TRANS_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsptransport.h")]
369         public enum RTSPTransMode {
370                 UNKNOWN,
371                 RTP,
372                 RDT
373         }
374         [CCode (cprefix = "GST_RTSP_VERSION_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
375         public enum RTSPVersion {
376                 INVALID,
377                 @1_0
378         }
379         [CCode (cheader_filename = "gst/rtsp/gstrtspurl.h")]
380         public const int RTSP_DEFAULT_PORT;
381         [CCode (cheader_filename = "gst/rtsp/gstrtspbase64.h")]
382         public static void rtsp_base64_decode_ip (string data, size_t len);
383         [CCode (cheader_filename = "gst/rtsp/gstrtspbase64.h")]
384         public static unowned string rtsp_base64_encode (string data, size_t len);
385         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
386         public static Gst.RTSPHeaderField rtsp_find_header_field (string header);
387         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
388         public static Gst.RTSPMethod rtsp_find_method (string method);
389         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
390         public static unowned string rtsp_header_as_text (Gst.RTSPHeaderField field);
391         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
392         public static unowned string rtsp_method_as_text (Gst.RTSPMethod method);
393         [CCode (cheader_filename = "gst/gst.h")]
394         public static string rtsp_options_as_text (Gst.RTSPMethod options);
395         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
396         public static unowned string rtsp_status_as_text (Gst.RTSPStatusCode code);
397         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
398         public static unowned string rtsp_strresult (Gst.RTSPResult _result);
399         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
400         public static unowned string rtsp_version_as_text (Gst.RTSPVersion version);