This file is indexed.

/usr/share/vala/vapi/libsyncdaemon-1.0.vapi is in libsyncdaemon-1.0-dev 3.0.2-0ubuntu2.2.

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

[CCode (cprefix = "Syncdaemon", gir_namespace = "Syncdaemon", gir_version = "1.0", lower_case_cprefix = "syncdaemon_")]
namespace Syncdaemon {
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_authentication_get_type ()")]
	public class Authentication : GLib.Object {
		[CCode (has_construct_function = false)]
		public Authentication ();
		public void clear_token ();
		public bool has_credentials ();
		public void login_or_register ();
		public virtual signal void authorization_cancelled ();
		public virtual signal void credentials_found (GLib.Object credentials);
		public virtual signal void error (string error);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_config_interface_get_type ()")]
	public class ConfigInterface : Syncdaemon.Interface {
		[CCode (has_construct_function = false)]
		public ConfigInterface (Syncdaemon.Daemon daemon);
		public bool get_bandwidth_throttling ();
		public bool get_files_sync ();
		public void get_throttling_limits (int download, int upload);
		public bool get_udf_autosubscribe ();
		public void set_bandwidth_throttling (bool enabled);
		public void set_files_sync (bool enabled);
		public void set_throttling_limits (int download, int upload);
		public void set_udf_autosubscribe (bool enabled);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_credentials_get_type ()")]
	public class Credentials : GLib.Object {
		[CCode (has_construct_function = false)]
		public Credentials ();
		[CCode (has_construct_function = false)]
		public Credentials.from_hash_table (GLib.HashTable<void*,void*> hash);
		public unowned string get_consumer_key ();
		public unowned string get_consumer_secret ();
		public unowned string get_token ();
		public unowned string get_token_secret ();
		public void set_consumer_key (string consumer_key);
		public void set_consumer_secret (string consumer_secret);
		public void set_token (string token);
		public void set_token_secret (string token_secret);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_daemon_get_type ()")]
	public class Daemon : GLib.Object {
		[CCode (has_construct_function = false)]
		public Daemon ();
		public bool connect ();
		public void create_folder (string path);
		public void delete_folder (string path);
		public void delete_share (string path);
		public bool disconnect ();
		public bool get_bandwidth_throttling ();
		public bool get_files_sync ();
		public unowned string get_root_dir ();
		public void get_throttling_limits (int download, int upload);
		public bool get_udf_autosubscribe ();
		public bool has_network ();
		public bool is_folder_enabled (string path, bool is_root);
		public bool is_ready ();
		public bool publish_file (string path);
		public bool quit ();
		public void set_bandwidth_throttling (bool enabled);
		public void set_files_sync (bool enabled);
		public void set_throttling_limits (int download, int upload);
		public void set_udf_autosubscribe (bool enabled);
		public void subscribe_folder (string path);
		public bool unpublish_file (string path);
		public void unsubscribe_folder (string path);
		public virtual signal void connected ();
		public virtual signal void disconnected ();
		public virtual signal void download_file_progress (string path, GLib.Object tinfo);
		public virtual signal void download_finished (string path, GLib.Object tinfo);
		public virtual signal void download_started (string path);
		public virtual signal void error (string @signal, void* extra_args);
		public virtual signal void event (void* event_dict);
		public virtual signal void file_published (bool success, GLib.Object file_info);
		public virtual signal void file_unpublished (bool success, GLib.Object file_info);
		public virtual signal void folder_created (bool success, GLib.Object folder_info);
		public virtual signal void folder_deleted (bool success, GLib.Object folder_info);
		public virtual signal void folder_subscribed (bool success, GLib.Object folder_info);
		public virtual signal void folder_unsubscribed (bool success, GLib.Object folder_info);
		public virtual signal void quota_exceeded (void* volume_info);
		public virtual signal void ready ();
		public virtual signal void share_created (bool success, GLib.Object share_info);
		public virtual signal void share_deleted (bool success, GLib.Object share_info);
		public virtual signal void status_changed (GLib.Object status_info);
		public virtual signal void upload_file_progress (string path, GLib.Object tinfo);
		public virtual signal void upload_finished (string path, GLib.Object tinfo);
		public virtual signal void upload_started (string path);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_events_interface_get_type ()")]
	public class EventsInterface : Syncdaemon.Interface {
		[CCode (has_construct_function = false)]
		public EventsInterface (Syncdaemon.Daemon daemon);
		public void push_event (string event_name, string args);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_file_info_get_type ()")]
	public class FileInfo : GLib.Object {
		[CCode (has_construct_function = false)]
		public FileInfo ();
		[CCode (has_construct_function = false)]
		public FileInfo.from_hash_table (GLib.HashTable<void*,void*> hash);
		public bool get_is_public ();
		public unowned string get_node_id ();
		public unowned string get_path ();
		public unowned string get_public_url ();
		public unowned string get_volume_id ();
		public void set_is_public (bool is_public);
		public void set_node_id (string node_id);
		public void set_path (string path);
		public void set_public_url (string public_url);
		public void set_volume_id (string volume_id);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_filesystem_interface_get_type ()")]
	public class FilesystemInterface : Syncdaemon.Interface {
		[CCode (has_construct_function = false)]
		public FilesystemInterface (Syncdaemon.Daemon daemon);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_folder_info_get_type ()")]
	public class FolderInfo : GLib.Object {
		[CCode (has_construct_function = false)]
		public FolderInfo ();
		[CCode (has_construct_function = false)]
		public FolderInfo.from_hash_table (GLib.HashTable<void*,void*> hash);
		public unowned string get_path ();
		public bool get_subscribed ();
		public unowned string get_volume_id ();
		public void set_path (string path);
		public void set_subscribed (bool subscribed);
		public void set_volume_id (string volume_id);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_folders_interface_get_type ()")]
	public class FoldersInterface : Syncdaemon.Interface {
		[CCode (has_construct_function = false)]
		public FoldersInterface (Syncdaemon.Daemon daemon);
		public void create (string path);
		public void @delete (string folder_id);
		public void refresh_volumes ();
		public void subscribe (string folder_id);
		public void unsubscribe (string folder_id);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_interface_get_type ()")]
	public class Interface : GLib.Object {
		[CCode (has_construct_function = false)]
		protected Interface ();
		[NoAccessorMethod]
		public Syncdaemon.Daemon daemon { owned get; set construct; }
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_metadata_get_type ()")]
	public class Metadata : GLib.Object {
		[CCode (has_construct_function = false)]
		public Metadata ();
		[CCode (has_construct_function = false)]
		public Metadata.from_hash_table (GLib.HashTable<void*,void*> hash);
		public bool get_is_synced ();
		public unowned string get_local_hash ();
		public unowned string get_node_id ();
		public unowned string get_path ();
		public unowned string get_server_hash ();
		public unowned string get_share_id ();
		public void set_is_synced (bool is_synced);
		public void set_local_hash (string local_hash);
		public void set_node_id (string node_id);
		public void set_path (string path);
		public void set_server_hash (string server_hash);
		public void set_share_id (string share_id);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_publicfiles_interface_get_type ()")]
	public class PublicfilesInterface : Syncdaemon.Interface {
		[CCode (has_construct_function = false)]
		public PublicfilesInterface (Syncdaemon.Daemon daemon);
		public void change_public_access (string share_id, string node_id, bool is_public);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_share_info_get_type ()")]
	public class ShareInfo : GLib.Object {
		[CCode (has_construct_function = false)]
		public ShareInfo ();
		[CCode (has_construct_function = false)]
		public ShareInfo.from_hash_table (GLib.HashTable<void*,void*> hash);
		public bool get_accepted ();
		public bool get_allow_modifications ();
		public unowned string get_name ();
		public unowned string get_node_id ();
		public unowned string get_path ();
		public Syncdaemon.ShareInfoType get_share_type ();
		public unowned string get_user_visible_name ();
		public unowned string get_username ();
		public unowned string get_volume_id ();
		public void set_accepted (bool accepted);
		public void set_allow_modifications (bool allow_modifications);
		public void set_name (string name);
		public void set_node_id (string node_id);
		public void set_path (string path);
		public void set_share_type (Syncdaemon.ShareInfoType type);
		public void set_user_visible_name (string user_visible_name);
		public void set_username (string username);
		public void set_volume_id (string volume_id);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_shares_interface_get_type ()")]
	public class SharesInterface : Syncdaemon.Interface {
		[CCode (has_construct_function = false)]
		public SharesInterface (Syncdaemon.Daemon daemon);
		public void accept (string share_id);
		public void @delete (string path);
		public void refresh ();
		public void reject (string share_id);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_status_info_get_type ()")]
	public class StatusInfo : GLib.Object {
		[CCode (has_construct_function = false)]
		public StatusInfo ();
		[CCode (has_construct_function = false)]
		public StatusInfo.from_hash_table (GLib.HashTable<void*,void*> hash);
		public bool get_connected ();
		public unowned string get_connection ();
		public unowned string get_description ();
		public unowned string get_name ();
		public bool get_online ();
		public unowned string get_queues ();
		public void set_connected (bool connected);
		public void set_connection (string connection);
		public void set_description (string description);
		public void set_name (string name);
		public void set_online (bool connected);
		public void set_queues (string queues);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_status_interface_get_type ()")]
	public class StatusInterface : Syncdaemon.Interface {
		[CCode (has_construct_function = false)]
		public StatusInterface (Syncdaemon.Daemon daemon);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", type_id = "syncdaemon_transfer_info_get_type ()")]
	public class TransferInfo : GLib.Object {
		[CCode (has_construct_function = false)]
		public TransferInfo (string path);
		[CCode (has_construct_function = false)]
		public TransferInfo.from_hash_table (GLib.HashTable<void*,void*> hash);
		public long get_bytes_transferred ();
		public unowned string get_node_id ();
		public unowned string get_path ();
		public unowned string get_share_id ();
		public long get_total_size ();
		public void set_bytes_transferred (long bytes);
		public void set_node_id (string node_id);
		public void set_path (string path);
		public void set_share_id (string share_id);
		public void set_total_size (long bytes);
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", cprefix = "SYNCDAEMON_SHARE_INFO_TYPE_")]
	public enum ShareInfoType {
		UNKNOWN,
		SHARED,
		SHARE
	}
	[CCode (cheader_filename = "libsyncdaemon/libsyncdaemon.h", instance_pos = 3.9)]
	public delegate void GotMetadataFunc (Syncdaemon.FilesystemInterface @interface, bool success, Syncdaemon.Metadata metadata);
}