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