This file is indexed.

/usr/share/vala-0.22/vapi/gstreamer-rtsp-server-1.0.vapi is in valac-0.22-vapi 0.22.1-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
/* gstreamer-rtsp-server-1.0.vapi generated by vapigen, do not modify. */

[CCode (cprefix = "Gst", gir_namespace = "GstRtspServer", gir_version = "1.0", lower_case_cprefix = "gst_")]
namespace Gst {
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_rtsp_address_get_type ()")]
	[Compact]
	public class RTSPAddress {
		public weak string address;
		public int n_ports;
		public weak Gst.RTSPAddressPool pool;
		public uint16 port;
		public void* priv;
		public uint8 ttl;
		public Gst.RTSPAddress copy ();
		public void free ();
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h")]
	[Compact]
	public class RTSPAddressClass {
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", type_id = "gst_rtsp_address_pool_get_type ()")]
	public class RTSPAddressPool : GLib.Object {
		[CCode (has_construct_function = false)]
		public RTSPAddressPool ();
		public Gst.RTSPAddress acquire_address (Gst.RTSPAddressFlags flags, int n_ports);
		public bool add_range (string min_address, string max_address, uint16 min_port, uint16 max_port, uint8 ttl);
		public void clear ();
		public void dump ();
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", type_id = "gst_rtsp_auth_get_type ()")]
	public class RTSPAuth : GLib.Object {
		[CCode (has_construct_function = false)]
		public RTSPAuth ();
		public bool check (Gst.RTSPClient client, GLib.Quark hint, Gst.RTSPClientState state);
		[NoWrapper]
		public virtual bool check_method (Gst.RTSPClient client, GLib.Quark hint, Gst.RTSPClientState state);
		public static string make_basic (string user, string pass);
		public void set_basic (string basic);
		public virtual bool setup_auth (Gst.RTSPClient client, GLib.Quark hint, Gst.RTSPClientState state);
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", type_id = "gst_rtsp_client_get_type ()")]
	public class RTSPClient : GLib.Object {
		[CCode (has_construct_function = false)]
		public RTSPClient ();
		public bool accept (GLib.Socket socket, GLib.Cancellable? cancellable = null) throws GLib.Error;
		public uint attach (GLib.MainContext? context);
		public Gst.RTSPAuth get_auth ();
		public Gst.RTSPMountPoints get_mount_points ();
		public Gst.RTSPSessionPool get_session_pool ();
		public bool get_use_client_settings ();
		public Gst.RTSP.Result handle_message (Gst.RTSP.Message message);
		public void set_auth (Gst.RTSPAuth auth);
		public void set_mount_points (Gst.RTSPMountPoints mounts);
		public void set_send_func (owned Gst.RTSPClientSendFunc func);
		public void set_session_pool (Gst.RTSPSessionPool pool);
		public void set_use_client_settings (bool use_client_settings);
		public bool use_socket (GLib.Socket socket, string ip, int port, string initial_buffer) throws GLib.Error;
		public Gst.RTSPMountPoints mount_points { owned get; set; }
		public Gst.RTSPSessionPool session_pool { owned get; set; }
		public bool use_client_settings { get; set; }
		public virtual signal void closed ();
		public virtual signal void describe_request (void* state);
		public virtual signal void get_parameter_request (void* state);
		public virtual signal void new_session (Gst.RTSPSession session);
		public virtual signal void options_request (void* state);
		public virtual signal void pause_request (void* state);
		public virtual signal void play_request (void* state);
		public virtual signal void set_parameter_request (void* state);
		public virtual signal void setup_request (void* state);
		public virtual signal void teardown_request (void* state);
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", type_id = "gst_rtsp_media_get_type ()")]
	public class RTSPMedia : GLib.Object {
		[CCode (has_construct_function = false)]
		public RTSPMedia (owned Gst.Element element);
		public void collect_streams ();
		public unowned Gst.RTSPStream create_stream (Gst.Element payloader, Gst.Pad srcpad);
		[CCode (vfunc_name = "new_state")]
		[NoWrapper]
		public virtual bool emit_new_state (Gst.State state);
		public Gst.RTSPAddressPool get_address_pool ();
		public Gst.RTSPAuth get_auth ();
		public uint get_buffer_size ();
		public Gst.RTSP.LowerTrans get_protocols ();
		public string get_range_string (bool play);
		public Gst.RTSPMediaStatus get_status ();
		public unowned Gst.RTSPStream get_stream (uint idx);
		[NoWrapper]
		public virtual bool handle_message (Gst.Message message);
		public bool is_eos_shutdown ();
		public bool is_reusable ();
		public bool is_shared ();
		public uint n_streams ();
		public bool prepare ();
		public bool seek (Gst.RTSP.TimeRange range);
		public void set_address_pool (Gst.RTSPAddressPool pool);
		public void set_auth (Gst.RTSPAuth auth);
		public void set_buffer_size (uint size);
		public void set_eos_shutdown (bool eos_shutdown);
		public void set_protocols (Gst.RTSP.LowerTrans protocols);
		public void set_reusable (bool reusable);
		public void set_shared (bool shared);
		public void take_pipeline (Gst.Pipeline pipeline);
		public virtual bool unprepare ();
		public uint buffer_size { get; set; }
		[NoAccessorMethod]
		public Gst.Element element { owned get; construct; }
		[NoAccessorMethod]
		public bool eos_shutdown { get; set; }
		public Gst.RTSP.LowerTrans protocols { get; set; }
		[NoAccessorMethod]
		public bool reusable { get; set; }
		[NoAccessorMethod]
		public bool shared { get; set; }
		public virtual signal void new_state ();
		public virtual signal void new_stream (Gst.RTSPStream stream);
		public virtual signal void prepared ();
		public virtual signal void unprepared ();
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", type_id = "gst_rtsp_media_factory_get_type ()")]
	public class RTSPMediaFactory : GLib.Object {
		[CCode (has_construct_function = false)]
		public RTSPMediaFactory ();
		[NoWrapper]
		public virtual void configure (Gst.RTSPMedia media);
		public virtual Gst.RTSPMedia? @construct (Gst.RTSP.Url url);
		public virtual unowned Gst.Element create_element (Gst.RTSP.Url url);
		[NoWrapper]
		public virtual string gen_key (Gst.RTSP.Url url);
		public Gst.RTSPAddressPool get_address_pool ();
		public Gst.RTSPAuth get_auth ();
		public uint get_buffer_size ();
		public string get_launch ();
		public Gst.RTSP.LowerTrans get_protocols ();
		public bool is_eos_shutdown ();
		public bool is_shared ();
		public void set_address_pool (Gst.RTSPAddressPool pool);
		public void set_auth (Gst.RTSPAuth auth);
		public void set_buffer_size (uint size);
		public void set_eos_shutdown (bool eos_shutdown);
		public void set_launch (string launch);
		public void set_protocols (Gst.RTSP.LowerTrans protocols);
		public void set_shared (bool shared);
		public uint buffer_size { get; set; }
		[NoAccessorMethod]
		public bool eos_shutdown { get; set; }
		public string launch { owned get; set; }
		public Gst.RTSP.LowerTrans protocols { get; set; }
		[NoAccessorMethod]
		public bool shared { get; set; }
		public virtual signal void media_configure (Gst.RTSPMedia media);
		public virtual signal void media_constructed (Gst.RTSPMedia media);
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", type_id = "gst_rtsp_media_factory_uri_get_type ()")]
	public class RTSPMediaFactoryURI : Gst.RTSPMediaFactory {
		[CCode (has_construct_function = false)]
		public RTSPMediaFactoryURI ();
		public string get_uri ();
		public void set_uri (string uri);
		public string uri { owned get; set; }
		[NoAccessorMethod]
		public bool use_gstpay { get; set; }
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", type_id = "gst_rtsp_mount_points_get_type ()")]
	public class RTSPMountPoints : GLib.Object {
		[CCode (has_construct_function = false)]
		public RTSPMountPoints ();
		public void add_factory (string path, owned Gst.RTSPMediaFactory factory);
		public virtual Gst.RTSPMediaFactory find_factory (Gst.RTSP.Url url);
		public void remove_factory (string path);
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", type_id = "gst_rtsp_server_get_type ()")]
	public class RTSPServer : GLib.Object {
		[CCode (has_construct_function = false)]
		public RTSPServer ();
		[NoWrapper]
		public virtual bool accept_client (Gst.RTSPClient client, GLib.Socket socket) throws GLib.Error;
		public uint attach (GLib.MainContext? context);
		public GLib.Socket create_socket (GLib.Cancellable? cancellable = null) throws GLib.Error;
		public GLib.Source create_source (GLib.Cancellable? cancellable = null) throws GLib.Error;
		public string get_address ();
		public Gst.RTSPAuth get_auth ();
		public int get_backlog ();
		public int get_bound_port ();
		public int get_max_threads ();
		public Gst.RTSPMountPoints get_mount_points ();
		public string get_service ();
		public Gst.RTSPSessionPool get_session_pool ();
		public static bool io_func (GLib.Socket socket, GLib.IOCondition condition, Gst.RTSPServer server);
		public void set_address (string address);
		public void set_auth (Gst.RTSPAuth auth);
		public void set_backlog (int backlog);
		public void set_max_threads (int max_threads);
		public void set_mount_points (Gst.RTSPMountPoints mounts);
		public void set_service (string service);
		public void set_session_pool (Gst.RTSPSessionPool pool);
		public bool transfer_connection (GLib.Socket socket, string ip, int port, string initial_buffer);
		public string address { owned get; set; }
		public int backlog { get; set; }
		public int bound_port { get; }
		public int max_threads { get; set; }
		public Gst.RTSPMountPoints mount_points { owned get; set; }
		public string service { owned get; set; }
		public Gst.RTSPSessionPool session_pool { owned get; set; }
		public virtual signal void client_connected (Gst.RTSPClient client);
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", type_id = "gst_rtsp_session_get_type ()")]
	public class RTSPSession : GLib.Object {
		[CCode (has_construct_function = false)]
		public RTSPSession (string sessionid);
		public void allow_expire ();
		public GLib.List<Gst.RTSPSessionMedia> filter (Gst.RTSPSessionFilterFunc func);
		public string get_header ();
		public unowned Gst.RTSPSessionMedia get_media (Gst.RTSP.Url url);
		public unowned string get_sessionid ();
		public uint get_timeout ();
		public bool is_expired (GLib.TimeVal now);
		public unowned Gst.RTSPSessionMedia manage_media (Gst.RTSP.Url uri, owned Gst.RTSPMedia media);
		public int next_timeout (GLib.TimeVal now);
		public void prevent_expire ();
		public bool release_media (Gst.RTSPSessionMedia media);
		public void set_timeout (uint timeout);
		public void touch ();
		public string sessionid { get; construct; }
		public uint timeout { get; set; }
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", type_id = "gst_rtsp_session_media_get_type ()")]
	public class RTSPSessionMedia : GLib.Object {
		[CCode (has_construct_function = false)]
		public RTSPSessionMedia (Gst.RTSP.Url url, Gst.RTSPMedia media);
		public bool alloc_channels (Gst.RTSP.Range range);
		public unowned Gst.RTSPMedia get_media ();
		public Gst.RTSP.State get_rtsp_state ();
		public unowned Gst.RTSPStreamTransport get_transport (uint idx);
		public bool matches_url (Gst.RTSP.Url url);
		public void set_rtsp_state (Gst.RTSP.State state);
		public bool set_state (Gst.State state);
		public unowned Gst.RTSPStreamTransport set_transport (Gst.RTSPStream stream, Gst.RTSP.Transport tr);
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", type_id = "gst_rtsp_session_pool_get_type ()")]
	public class RTSPSessionPool : GLib.Object {
		[CCode (has_construct_function = false)]
		public RTSPSessionPool ();
		public uint cleanup ();
		public unowned Gst.RTSPSession create ();
		[NoWrapper]
		public virtual string create_session_id ();
		public GLib.Source create_watch ();
		public GLib.List<Gst.RTSPSession> filter (Gst.RTSPSessionPoolFilterFunc func);
		public Gst.RTSPSession find (string sessionid);
		public uint get_max_sessions ();
		public uint get_n_sessions ();
		public bool remove (Gst.RTSPSession sess);
		public void set_max_sessions (uint max);
		public uint max_sessions { get; set; }
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", type_id = "gst_rtsp_stream_get_type ()")]
	public class RTSPStream : GLib.Object {
		[CCode (has_construct_function = false)]
		public RTSPStream (uint idx, Gst.Element payloader, Gst.Pad srcpad);
		public bool add_transport (Gst.RTSPStreamTransport trans);
		public Gst.RTSPAddress get_address ();
		public Gst.RTSPAddressPool get_address_pool ();
		public Gst.Caps get_caps ();
		public uint get_index ();
		public uint get_mtu ();
		public bool get_rtpinfo (uint rtptime, uint seq);
		public Gst.RTSP.Range get_server_port ();
		public void get_ssrc (out uint ssrc);
		public bool join_bin (Gst.Bin bin, Gst.Element rtpbin, Gst.State state);
		public bool leave_bin (Gst.Bin bin, Gst.Element rtpbin);
		public Gst.FlowReturn recv_rtcp (owned Gst.Buffer buffer);
		public Gst.FlowReturn recv_rtp (owned Gst.Buffer buffer);
		public bool remove_transport (Gst.RTSPStreamTransport trans);
		public void set_address_pool (Gst.RTSPAddressPool pool);
		public void set_mtu (uint mtu);
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", type_id = "gst_rtsp_stream_transport_get_type ()")]
	public class RTSPStreamTransport : GLib.Object {
		[CCode (has_construct_function = false)]
		public RTSPStreamTransport (Gst.RTSPStream stream, owned Gst.RTSP.Transport tr);
		public unowned Gst.RTSPStream get_stream ();
		public unowned Gst.RTSP.Transport? get_transport ();
		public bool is_timed_out ();
		public void keep_alive ();
		public bool send_rtcp (Gst.Buffer buffer);
		public bool send_rtp (Gst.Buffer buffer);
		public bool set_active (bool active);
		public void set_callbacks (Gst.RTSPSendFunc send_rtp, owned Gst.RTSPSendFunc send_rtcp);
		public void set_keepalive (owned Gst.RTSPKeepAliveFunc keep_alive);
		public void set_timed_out (bool timedout);
		public void set_transport (owned Gst.RTSP.Transport tr);
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", has_type_id = false)]
	public struct RTSPClientState {
		public Gst.RTSP.Message request;
		public weak Gst.RTSP.Url uri;
		public Gst.RTSP.Method method;
		public weak Gst.RTSPSession session;
		public weak Gst.RTSPSessionMedia sessmedia;
		public weak Gst.RTSPMediaFactory factory;
		public weak Gst.RTSPMedia media;
		public weak Gst.RTSPStream stream;
		public Gst.RTSP.Message response;
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", has_type_id = false)]
	public struct SDPInfo {
		public weak string server_proto;
		public weak string server_ip;
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cprefix = "GST_RTSP_ADDRESS_FLAG_", has_type_id = false)]
	[Flags]
	public enum RTSPAddressFlags {
		NONE,
		IPV4,
		IPV6,
		EVEN_PORT
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cprefix = "GST_RTSP_FILTER_", has_type_id = false)]
	public enum RTSPFilterResult {
		REMOVE,
		KEEP,
		REF
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cprefix = "GST_RTSP_MEDIA_STATUS_", has_type_id = false)]
	public enum RTSPMediaStatus {
		UNPREPARED,
		UNPREPARING,
		PREPARING,
		PREPARED,
		ERROR
	}
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", instance_pos = 3.9)]
	public delegate bool RTSPClientSendFunc (Gst.RTSPClient client, Gst.RTSP.Message message, bool close);
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", instance_pos = 0.9)]
	public delegate void RTSPKeepAliveFunc ();
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", instance_pos = 2.9)]
	public delegate bool RTSPSendFunc (Gst.Buffer buffer, uint8 channel);
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", instance_pos = 2.9)]
	public delegate Gst.RTSPFilterResult RTSPSessionFilterFunc (Gst.RTSPSession sess, Gst.RTSPSessionMedia media);
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", instance_pos = 2.9)]
	public delegate Gst.RTSPFilterResult RTSPSessionPoolFilterFunc (Gst.RTSPSessionPool pool, Gst.RTSPSession session);
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", instance_pos = 1.9)]
	public delegate bool RTSPSessionPoolFunc (Gst.RTSPSessionPool pool);
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h")]
	public static Gst.RTSP.Result rtsp_params_get (Gst.RTSPClient client, Gst.RTSPClientState state);
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h")]
	public static Gst.RTSP.Result rtsp_params_set (Gst.RTSPClient client, Gst.RTSPClientState state);
	[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h")]
	public static bool rtsp_sdp_from_media (Gst.SDP.Message sdp, Gst.SDPInfo info, Gst.RTSPMedia media);
}