This file is indexed.

/usr/share/vala/vapi/gvnc-1.0.vapi is in libgvnc-1.0-dev 0.5.3-0ubuntu2.

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
/* gvnc-1.0.vapi generated by vapigen, do not modify. */

[CCode (cprefix = "Vnc", gir_namespace = "GVnc", gir_version = "1.0", lower_case_cprefix = "vnc_")]
namespace Vnc {
	[CCode (cheader_filename = "gvnc.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "vnc_audio_format_get_type ()")]
	[Compact]
	public class AudioFormat {
		public uint8 format;
		public uint32 frequency;
		public uint8 nchannels;
		[CCode (has_construct_function = false)]
		public AudioFormat ();
		public Vnc.AudioFormat copy ();
		public void free ();
	}
	[CCode (cheader_filename = "gvnc.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "vnc_audio_sample_get_type ()")]
	[Compact]
	public class AudioSample {
		public uint32 capacity;
		public uint8 data;
		public uint32 length;
		[CCode (has_construct_function = false)]
		public AudioSample (uint32 capacity);
		public Vnc.AudioSample copy ();
		public void free ();
	}
	[CCode (cheader_filename = "gvnc.h", type_id = "vnc_base_audio_get_type ()")]
	public class BaseAudio : GLib.Object, Vnc.Audio {
		[CCode (has_construct_function = false)]
		public BaseAudio ();
		[NoWrapper]
		public virtual bool playback_data (Vnc.AudioSample sample);
		[NoWrapper]
		public virtual bool playback_start (Vnc.AudioFormat format);
		[NoWrapper]
		public virtual bool playback_stop ();
		public signal void vnc_audio_playback_data (Vnc.AudioSample object);
		public signal void vnc_audio_playback_start (Vnc.AudioFormat object);
		public signal void vnc_audio_playback_stop ();
	}
	[CCode (cheader_filename = "gvnc.h", type_id = "vnc_base_framebuffer_get_type ()")]
	public class BaseFramebuffer : GLib.Object, Vnc.Framebuffer {
		[CCode (has_construct_function = false)]
		public BaseFramebuffer (uint8 buffer, uint16 width, uint16 height, int rowstride, Vnc.PixelFormat localFormat, Vnc.PixelFormat remoteFormat);
		[NoAccessorMethod]
		public void* buffer { get; construct; }
		[NoAccessorMethod]
		public Vnc.ColorMap color_map { owned get; set; }
		[NoAccessorMethod]
		public int height { get; construct; }
		[NoAccessorMethod]
		public Vnc.PixelFormat local_format { owned get; construct; }
		[NoAccessorMethod]
		public Vnc.PixelFormat remote_format { owned get; construct; }
		[NoAccessorMethod]
		public int rowstride { get; construct; }
		[NoAccessorMethod]
		public int width { get; construct; }
	}
	[CCode (cheader_filename = "gvnc.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "vnc_color_map_get_type ()")]
	[Compact]
	public class ColorMap {
		public Vnc.ColorMapEntry colors;
		public uint16 offset;
		public uint16 size;
		[CCode (has_construct_function = false)]
		public ColorMap (uint16 offset, uint16 nentries);
		public Vnc.ColorMap copy ();
		public void free ();
		public bool lookup (uint16 idx, uint16 red, uint16 green, uint16 blue);
		public bool @set (uint16 idx, uint16 red, uint16 green, uint16 blue);
	}
	[CCode (cheader_filename = "gvnc.h", type_id = "vnc_connection_get_type ()")]
	public class Connection : GLib.Object {
		[CCode (has_construct_function = false)]
		public Connection ();
		public bool audio_disable ();
		public bool audio_enable ();
		public bool client_cut_text (void* data, ulong length);
		public bool framebuffer_update_request (bool incremental, uint16 x, uint16 y, uint16 width, uint16 height);
		public bool get_abs_pointer ();
		public unowned Vnc.AudioFormat get_audio_format ();
		public bool get_ext_key_event ();
		public int get_height ();
		public int get_ledstate ();
		public unowned string get_name ();
		public unowned Vnc.PixelFormat get_pixel_format ();
		public bool get_shared ();
		public int get_width ();
		public bool has_error ();
		public bool is_initialized ();
		public bool is_open ();
		public bool key_event (bool down_flag, uint32 key, uint16 scancode);
		public bool open_fd (int fd);
		public bool open_fd_with_hostname (int fd, string hostname);
		public bool open_host (string host, string port);
		public bool pointer_event (uint8 button_mask, uint16 x, uint16 y);
		public bool set_audio (Vnc.Audio audio);
		public bool set_audio_format (Vnc.AudioFormat fmt);
		public bool set_auth_subtype (uint type);
		public bool set_auth_type (uint type);
		public bool set_credential (int type, string data);
		public bool set_encodings (int n_encoding, int32 encoding);
		public bool set_framebuffer (Vnc.Framebuffer fb);
		public bool set_pixel_format (Vnc.PixelFormat fmt);
		public bool set_shared (bool sharedFlag);
		public void shutdown ();
		[NoAccessorMethod]
		public Vnc.Framebuffer framebuffer { owned get; set; }
		public virtual signal void vnc_auth_choose_subtype (uint type, GLib.ValueArray subtypes);
		public virtual signal void vnc_auth_choose_type (GLib.ValueArray types);
		public virtual signal void vnc_auth_credential (GLib.ValueArray creds);
		public virtual signal void vnc_auth_failure (string reason);
		public virtual signal void vnc_auth_unsupported (uint authType);
		public virtual signal void vnc_bell ();
		public virtual signal void vnc_connected ();
		public virtual signal void vnc_cursor_changed (Vnc.Cursor cursor);
		public virtual signal void vnc_desktop_resize (int width, int height);
		public virtual signal void vnc_disconnected ();
		public virtual signal void vnc_framebuffer_update (int x, int y, int width, int height);
		public virtual signal void vnc_initialized ();
		public virtual signal void vnc_led_state ();
		public virtual signal void vnc_pixel_format_changed (void* format);
		public virtual signal void vnc_pointer_mode_changed (bool absPointer);
		public virtual signal void vnc_server_cut_text (string text);
	}
	[CCode (cheader_filename = "gvnc.h", type_id = "vnc_cursor_get_type ()")]
	public class Cursor : GLib.Object {
		[CCode (has_construct_function = false)]
		public Cursor (uint8 rgba24data, uint16 hotx, uint16 hoty, uint16 width, uint16 height);
		public uint8 get_data ();
		public uint16 get_height ();
		public uint16 get_hotx ();
		public uint16 get_hoty ();
		public uint16 get_width ();
		[NoAccessorMethod]
		public void* data { get; set construct; }
		[NoAccessorMethod]
		public int height { get; set construct; }
		[NoAccessorMethod]
		public int hotx { get; set construct; }
		[NoAccessorMethod]
		public int hoty { get; set construct; }
		[NoAccessorMethod]
		public int width { get; set construct; }
	}
	[CCode (cheader_filename = "gvnc.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "vnc_pixel_format_get_type ()")]
	[Compact]
	public class PixelFormat {
		public uint8 bits_per_pixel;
		public uint16 blue_max;
		public uint8 blue_shift;
		public uint16 byte_order;
		public uint8 depth;
		public uint16 green_max;
		public uint8 green_shift;
		public uint16 red_max;
		public uint8 red_shift;
		public uint8 true_color_flag;
		[CCode (has_construct_function = false)]
		public PixelFormat ();
		public Vnc.PixelFormat copy ();
		public void free ();
	}
	[CCode (cheader_filename = "gvnc.h", type_cname = "VncAudioInterface", type_id = "vnc_audio_get_type ()")]
	public interface Audio : GLib.Object {
		[NoWrapper]
		public abstract bool playback_data (Vnc.AudioSample sample);
		[NoWrapper]
		public abstract bool playback_start (Vnc.AudioFormat format);
		[NoWrapper]
		public abstract bool playback_stop ();
	}
	[CCode (cheader_filename = "gvnc.h", type_cname = "VncFramebufferInterface", type_id = "vnc_framebuffer_get_type ()")]
	public interface Framebuffer : GLib.Object {
		public abstract void blt (uint8 src, int rowstride, uint16 x, uint16 y, uint16 width, uint16 height);
		public abstract void copyrect (uint16 srcx, uint16 srcy, uint16 dstx, uint16 dsty, uint16 width, uint16 height);
		public abstract void fill (uint8 src, uint16 x, uint16 y, uint16 width, uint16 height);
		public abstract uint8 get_buffer ();
		public abstract uint16 get_height ();
		public abstract unowned Vnc.PixelFormat get_local_format ();
		public abstract unowned Vnc.PixelFormat get_remote_format ();
		public abstract int get_rowstride ();
		public abstract uint16 get_width ();
		public abstract bool perfect_format_match ();
		public abstract void rgb24_blt (uint8 src, int rowstride, uint16 x, uint16 y, uint16 width, uint16 height);
		public abstract void set_color_map (Vnc.ColorMap map);
		public abstract void set_pixel_at (uint8 src, uint16 x, uint16 y);
	}
	[CCode (cheader_filename = "gvnc.h", has_type_id = false)]
	public struct ColorMapEntry {
		public uint16 red;
		public uint16 green;
		public uint16 blue;
	}
	[CCode (cheader_filename = "gvnc.h", cprefix = "VNC_AUDIO_FORMAT_RAW_", has_type_id = false)]
	public enum AudioFormatType {
		U8,
		S8,
		U16,
		S16,
		U32,
		S32
	}
	[CCode (cheader_filename = "gvnc.h", cprefix = "VNC_CONNECTION_AUTH_", type_id = "vnc_connection_auth_get_type ()")]
	public enum ConnectionAuth {
		INVALID,
		NONE,
		VNC,
		RA2,
		RA2NE,
		TIGHT,
		ULTRA,
		TLS,
		VENCRYPT,
		SASL,
		ARD,
		MSLOGON
	}
	[CCode (cheader_filename = "gvnc.h", cprefix = "VNC_CONNECTION_AUTH_VENCRYPT_", type_id = "vnc_connection_auth_vencrypt_get_type ()")]
	public enum ConnectionAuthVencrypt {
		PLAIN,
		TLSNONE,
		TLSVNC,
		TLSPLAIN,
		X509NONE,
		X509VNC,
		X509PLAIN,
		X509SASL,
		TLSSASL
	}
	[CCode (cheader_filename = "gvnc.h", cprefix = "VNC_CONNECTION_CREDENTIAL_", type_id = "vnc_connection_credential_get_type ()")]
	public enum ConnectionCredential {
		PASSWORD,
		USERNAME,
		CLIENTNAME
	}
	[CCode (cheader_filename = "gvnc.h", cprefix = "VNC_CONNECTION_ENCODING_", type_id = "vnc_connection_encoding_get_type ()")]
	public enum ConnectionEncoding {
		RAW,
		COPY_RECT,
		RRE,
		CORRE,
		HEXTILE,
		TIGHT,
		ZRLE,
		TIGHT_JPEG0,
		TIGHT_JPEG1,
		TIGHT_JPEG2,
		TIGHT_JPEG3,
		TIGHT_JPEG4,
		TIGHT_JPEG5,
		TIGHT_JPEG6,
		TIGHT_JPEG7,
		TIGHT_JPEG8,
		TIGHT_JPEG9,
		DESKTOP_RESIZE,
		[CCode (cname = "VNC_CONNECTION_ENCODING_WMVi")]
		WMVI,
		CURSOR_POS,
		RICH_CURSOR,
		XCURSOR,
		POINTER_CHANGE,
		EXT_KEY_EVENT,
		AUDIO,
		LED_STATE
	}
	[CCode (cheader_filename = "gvnc.h", cname = "VNC_LEDSTATE_CAPS_LOCK")]
	public const int LEDSTATE_CAPS_LOCK;
	[CCode (cheader_filename = "gvnc.h", cname = "VNC_LEDSTATE_NUM_LOCK")]
	public const int LEDSTATE_NUM_LOCK;
	[CCode (cheader_filename = "gvnc.h", cname = "VNC_LEDSTATE_SCROLL_LOCK")]
	public const int LEDSTATE_SCROLL_LOCK;
	[CCode (cheader_filename = "gvnc.h", cname = "VNC_PADDING")]
	public const int PADDING;
	[CCode (cheader_filename = "gvnc.h", cname = "VNC_PADDING_LARGE")]
	public const int PADDING_LARGE;
	[CCode (cheader_filename = "gvnc.h")]
	public static bool util_check_version (int major, int minor, int micro);
	[CCode (cheader_filename = "gvnc.h")]
	public static bool util_get_debug ();
	[CCode (cheader_filename = "gvnc.h")]
	public static int util_get_version ();
	[CCode (cheader_filename = "gvnc.h")]
	public static unowned string util_get_version_string ();
	[CCode (cheader_filename = "gvnc.h")]
	public static void util_set_debug (bool enabled);
}