update for 0.4.0 release
[vala-lang.git] / vapi / gstreamer-rtsp-0.10.vapi
blobfd79e7db2a46d1c8d6835c6f24a95ea654746787
1 /* gstreamer-rtsp-0.10.vapi generated by lt-vapigen, do not modify. */
3 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
4 namespace Gst {
5         [CCode (cprefix = "GST_RTSP_AUTH_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
6         public enum RTSPAuthMethod {
7                 NONE,
8                 BASIC,
9                 DIGEST
10         }
11         [CCode (cprefix = "GST_RTSP_FAM_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
12         public enum RTSPFamily {
13                 NONE,
14                 INET,
15                 INET6
16         }
17         [CCode (cprefix = "GST_RTSP_HDR_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
18         public enum RTSPHeaderField {
19                 INVALID,
20                 ACCEPT,
21                 ACCEPT_ENCODING,
22                 ACCEPT_LANGUAGE,
23                 ALLOW,
24                 AUTHORIZATION,
25                 BANDWIDTH,
26                 BLOCKSIZE,
27                 CACHE_CONTROL,
28                 CONFERENCE,
29                 CONNECTION,
30                 CONTENT_BASE,
31                 CONTENT_ENCODING,
32                 CONTENT_LANGUAGE,
33                 CONTENT_LENGTH,
34                 CONTENT_LOCATION,
35                 CONTENT_TYPE,
36                 CSEQ,
37                 DATE,
38                 EXPIRES,
39                 FROM,
40                 IF_MODIFIED_SINCE,
41                 LAST_MODIFIED,
42                 PROXY_AUTHENTICATE,
43                 PROXY_REQUIRE,
44                 PUBLIC,
45                 RANGE,
46                 REFERER,
47                 REQUIRE,
48                 RETRY_AFTER,
49                 RTP_INFO,
50                 SCALE,
51                 SESSION,
52                 SERVER,
53                 SPEED,
54                 TRANSPORT,
55                 UNSUPPORTED,
56                 USER_AGENT,
57                 VIA,
58                 WWW_AUTHENTICATE,
59                 CLIENT_CHALLENGE,
60                 REAL_CHALLENGE1,
61                 REAL_CHALLENGE2,
62                 REAL_CHALLENGE3,
63                 SUBSCRIBE,
64                 ALERT,
65                 CLIENT_ID,
66                 COMPANY_ID,
67                 GUID,
68                 REGION_DATA,
69                 MAX_ASM_WIDTH,
70                 LANGUAGE,
71                 PLAYER_START_TIME,
72                 LOCATION
73         }
74         [CCode (cprefix = "GST_RTSP_LOWER_TRANS_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtspextension.h")]
75         public enum RTSPLowerTrans {
76                 UNKNOWN,
77                 UDP,
78                 UDP_MCAST,
79                 TCP
80         }
81         [CCode (cprefix = "GST_RTSP_MESSAGE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtspmessage.h")]
82         public enum RTSPMsgType {
83                 INVALID,
84                 REQUEST,
85                 RESPONSE,
86                 DATA
87         }
88         [CCode (cprefix = "GST_RTSP_PROFILE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsptransport.h")]
89         public enum RTSPProfile {
90                 UNKNOWN,
91                 AVP,
92                 SAVP
93         }
94         [CCode (cprefix = "GST_RTSP_RANGE_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsprange.h")]
95         public enum RTSPRangeUnit {
96                 SMPTE,
97                 SMPTE_30_DROP,
98                 SMPTE_25,
99                 NPT,
100                 CLOCK
101         }
102         [CCode (cprefix = "GST_RTSP_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
103         public enum RTSPResult {
104                 OK,
105                 ERROR,
106                 EINVAL,
107                 EINTR,
108                 ENOMEM,
109                 ERESOLV,
110                 ENOTIMPL,
111                 ESYS,
112                 EPARSE,
113                 EWSASTART,
114                 EWSAVERSION,
115                 EEOF,
116                 ENET,
117                 ENOTIP,
118                 ETIMEOUT,
119                 ELAST
120         }
121         [CCode (cprefix = "GST_RTSP_STATE_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
122         public enum RTSPState {
123                 INVALID,
124                 INIT,
125                 READY,
126                 SEEKING,
127                 PLAYING,
128                 RECORDING
129         }
130         [CCode (cprefix = "GST_RTSP_STS_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
131         public enum RTSPStatusCode {
132                 INVALID,
133                 CONTINUE,
134                 OK,
135                 CREATED,
136                 LOW_ON_STORAGE,
137                 MULTIPLE_CHOICES,
138                 MOVED_PERMANENTLY,
139                 MOVE_TEMPORARILY,
140                 SEE_OTHER,
141                 NOT_MODIFIED,
142                 USE_PROXY,
143                 BAD_REQUEST,
144                 UNAUTHORIZED,
145                 PAYMENT_REQUIRED,
146                 FORBIDDEN,
147                 NOT_FOUND,
148                 METHOD_NOT_ALLOWED,
149                 NOT_ACCEPTABLE,
150                 PROXY_AUTH_REQUIRED,
151                 REQUEST_TIMEOUT,
152                 GONE,
153                 LENGTH_REQUIRED,
154                 PRECONDITION_FAILED,
155                 REQUEST_ENTITY_TOO_LARGE,
156                 REQUEST_URI_TOO_LARGE,
157                 UNSUPPORTED_MEDIA_TYPE,
158                 PARAMETER_NOT_UNDERSTOOD,
159                 CONFERENCE_NOT_FOUND,
160                 NOT_ENOUGH_BANDWIDTH,
161                 SESSION_NOT_FOUND,
162                 METHOD_NOT_VALID_IN_THIS_STATE,
163                 HEADER_FIELD_NOT_VALID_FOR_RESOURCE,
164                 INVALID_RANGE,
165                 PARAMETER_IS_READONLY,
166                 AGGREGATE_OPERATION_NOT_ALLOWED,
167                 ONLY_AGGREGATE_OPERATION_ALLOWED,
168                 UNSUPPORTED_TRANSPORT,
169                 DESTINATION_UNREACHABLE,
170                 INTERNAL_SERVER_ERROR,
171                 NOT_IMPLEMENTED,
172                 BAD_GATEWAY,
173                 SERVICE_UNAVAILABLE,
174                 GATEWAY_TIMEOUT,
175                 RTSP_VERSION_NOT_SUPPORTED,
176                 OPTION_NOT_SUPPORTED
177         }
178         [CCode (cprefix = "GST_RTSP_TIME_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsprange.h")]
179         public enum RTSPTimeType {
180                 SECONDS,
181                 NOW,
182                 END
183         }
184         [CCode (cprefix = "GST_RTSP_TRANS_", has_type_id = "0", cheader_filename = "gst/rtsp/gstrtsptransport.h")]
185         public enum RTSPTransMode {
186                 UNKNOWN,
187                 RTP,
188                 RDT
189         }
190         [CCode (cprefix = "GST_RTSP_VERSION_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
191         public enum RTSPVersion {
192                 INVALID,
193                 1_0
194         }
195         [CCode (cprefix = "GST_RTSP_EV_", cheader_filename = "gst/rtsp/gstrtspconnection.h")]
196         [Flags]
197         public enum RTSPEvent {
198                 READ,
199                 WRITE
200         }
201         [CCode (cprefix = "GST_RTSP_", cheader_filename = "gst/rtsp/gstrtspdefs.h")]
202         [Flags]
203         public enum RTSPMethod {
204                 INVALID,
205                 DESCRIBE,
206                 ANNOUNCE,
207                 GET_PARAMETER,
208                 OPTIONS,
209                 PAUSE,
210                 PLAY,
211                 RECORD,
212                 REDIRECT,
213                 SETUP,
214                 SET_PARAMETER,
215                 TEARDOWN
216         }
217         [Compact]
218         [CCode (cheader_filename = "gst/rtsp/gstrtspmessage.h")]
219         public class RTSPMessage {
220                 public Gst.RTSPMsgType type;
221                 public void* type_data;
222                 public GLib.Array hdr_fields;
223                 public uchar body;
224                 public uint body_size;
225                 public static Gst.RTSPResult @new (out Gst.RTSPMessage msg);
226                 public static Gst.RTSPResult new_data (out Gst.RTSPMessage msg, uchar channel);
227                 public static Gst.RTSPResult new_request (out Gst.RTSPMessage msg, Gst.RTSPMethod method, string uri);
228                 public static Gst.RTSPResult new_response (out Gst.RTSPMessage msg, Gst.RTSPStatusCode code, string reason, Gst.RTSPMessage request);
229                 public RTSPMessage ();
230                 public Gst.RTSPResult add_header (Gst.RTSPHeaderField field, string value);
231                 public Gst.RTSPResult append_headers (GLib.StringBuilder str);
232                 public Gst.RTSPResult dump ();
233                 public Gst.RTSPResult get_body (out weak uchar[] data, uint size);
234                 public Gst.RTSPResult get_header (Gst.RTSPHeaderField field, out weak string value, int indx);
235                 public Gst.RTSPResult init ();
236                 public Gst.RTSPResult init_data (uchar channel);
237                 public Gst.RTSPResult init_request (Gst.RTSPMethod method, string uri);
238                 public Gst.RTSPResult init_response (Gst.RTSPStatusCode code, string reason, Gst.RTSPMessage request);
239                 public Gst.RTSPResult parse_data (uchar channel);
240                 public Gst.RTSPResult parse_request (Gst.RTSPMethod method, string uri, Gst.RTSPVersion version);
241                 public Gst.RTSPResult parse_response (Gst.RTSPStatusCode code, string reason, Gst.RTSPVersion version);
242                 public Gst.RTSPResult remove_header (Gst.RTSPHeaderField field, int indx);
243                 public Gst.RTSPResult set_body (uchar[] data, uint size);
244                 public Gst.RTSPResult steal_body (out uchar[] data, uint size);
245                 public Gst.RTSPResult take_body (uchar[]# data, uint size);
246                 public Gst.RTSPResult unset ();
247         }
248         [Compact]
249         [CCode (cheader_filename = "gst/rtsp/gstrtsptransport.h")]
250         public class RTSPTransport {
251                 public Gst.RTSPTransMode trans;
252                 public Gst.RTSPProfile profile;
253                 public Gst.RTSPLowerTrans lower_transport;
254                 public string destination;
255                 public string source;
256                 public uint layers;
257                 public bool mode_play;
258                 public bool mode_record;
259                 public bool append;
260                 public Gst.RTSPRange interleaved;
261                 public uint ttl;
262                 public Gst.RTSPRange port;
263                 public Gst.RTSPRange client_port;
264                 public Gst.RTSPRange server_port;
265                 public uint ssrc;
266                 public static Gst.RTSPResult @new (out Gst.RTSPTransport transport);
267                 public RTSPTransport ();
268                 public string as_text ();
269                 public static Gst.RTSPResult get_manager (Gst.RTSPTransMode trans, string manager, uint option);
270                 public static Gst.RTSPResult get_mime (Gst.RTSPTransMode trans, string mime);
271                 public Gst.RTSPResult init ();
272                 public static Gst.RTSPResult parse (string str, Gst.RTSPTransport transport);
273         }
274         [Compact]
275         [CCode (cheader_filename = "gst/rtsp/gstrtspconnection.h")]
276         public class RTSPConnection {
277                 public void clear_auth_params ();
278                 public Gst.RTSPResult close ();
279                 public Gst.RTSPResult connect (GLib.TimeVal timeout);
280                 public static Gst.RTSPResult create (Gst.RTSPUrl url, out Gst.RTSPConnection conn);
281                 public Gst.RTSPResult flush (bool flush);
282                 public weak string get_ip ();
283                 public Gst.RTSPResult next_timeout (GLib.TimeVal timeout);
284                 public Gst.RTSPResult poll (Gst.RTSPEvent events, Gst.RTSPEvent revents, GLib.TimeVal timeout);
285                 public Gst.RTSPResult read (uchar data, uint size, GLib.TimeVal timeout);
286                 public Gst.RTSPResult receive (Gst.RTSPMessage message, GLib.TimeVal timeout);
287                 public Gst.RTSPResult reset_timeout ();
288                 public Gst.RTSPResult send (Gst.RTSPMessage message, GLib.TimeVal timeout);
289                 public Gst.RTSPResult set_auth (Gst.RTSPAuthMethod method, string user, string pass);
290                 public void set_auth_param (string param, string value);
291                 public Gst.RTSPResult set_qos_dscp (uint qos_dscp);
292                 public Gst.RTSPResult write (uchar data, uint size, GLib.TimeVal timeout);
293         }
294         [Compact]
295         [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
296         public class RTSPRange {
297                 public int min;
298                 public int max;
299                 public static Gst.RTSPResult parse (string rangestr, out Gst.RTSPTimeRange range);
300         }
301         [Compact]
302         [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
303         public class RTSPTime {
304                 public Gst.RTSPTimeType type;
305                 public double seconds;
306         }
307         [Compact]
308         [CCode (cheader_filename = "gst/rtsp/gstrtsprange.h")]
309         public class RTSPTimeRange {
310                 public Gst.RTSPRangeUnit unit;
311                 public Gst.RTSPTime min;
312                 public Gst.RTSPTime max;
313         }
314         [Compact]
315         [CCode (cheader_filename = "gst/rtsp/gstrtspconnection.h")]
316         public class RTSPUrl {
317                 public Gst.RTSPLowerTrans transports;
318                 public Gst.RTSPFamily family;
319                 public string user;
320                 public string passwd;
321                 public string host;
322                 public ushort port;
323                 public string abspath;
324                 public string query;
325                 public Gst.RTSPResult get_port (ushort port);
326                 public string get_request_uri ();
327                 public static Gst.RTSPResult parse (string urlstr, out Gst.RTSPUrl url);
328                 public Gst.RTSPResult set_port (ushort port);
329         }
330         [CCode (cheader_filename = "gst/rtsp/gstrtspextension.h")]
331         public interface RTSPExtension {
332                 public abstract Gst.RTSPResult after_send (Gst.RTSPMessage req, Gst.RTSPMessage resp);
333                 public abstract Gst.RTSPResult before_send (Gst.RTSPMessage req);
334                 public abstract bool configure_stream (Gst.Caps caps);
335                 public abstract bool detect_server (Gst.RTSPMessage resp);
336                 public abstract Gst.RTSPResult get_transports (Gst.RTSPLowerTrans protocols, string transport);
337                 public abstract Gst.RTSPResult parse_sdp (Gst.SDPMessage sdp, Gst.Structure s);
338                 public abstract Gst.RTSPResult setup_media (Gst.SDPMedia media);
339                 public abstract Gst.RTSPResult stream_select (Gst.RTSPUrl url);
340                 [HasEmitter]
341                 public virtual signal Gst.RTSPResult send (void* req, void* resp);
342         }
343         [CCode (cheader_filename = "gst/gst.h")]
344         public const int RTSP_DEFAULT_PORT;
345         [CCode (cheader_filename = "gst/rtsp/gstrtspbase64.h")]
346         public static void rtsp_base64_decode_ip (string data, ulong len);
347         [CCode (cheader_filename = "gst/rtsp/gstrtspbase64.h")]
348         public static weak string rtsp_base64_encode (string data, ulong len);
349         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
350         public static Gst.RTSPHeaderField rtsp_find_header_field (string header);
351         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
352         public static Gst.RTSPMethod rtsp_find_method (string method);
353         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
354         public static weak string rtsp_header_as_text (Gst.RTSPHeaderField field);
355         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
356         public static weak string rtsp_method_as_text (Gst.RTSPMethod method);
357         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
358         public static weak string rtsp_status_as_text (Gst.RTSPStatusCode code);
359         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
360         public static weak string rtsp_strresult (Gst.RTSPResult _result);
361         [CCode (cheader_filename = "gst/rtsp/gstrtspdefs.h")]
362         public static weak string rtsp_version_as_text (Gst.RTSPVersion version);