gio-standalone.vala 31.3 KB
Newer Older
1
[CCode (cprefix = "G", lower_case_cprefix = "g_")]
2
namespace GLib {
3
	[CCode (cprefix = "G_DIRECTORY_MONITOR_EVENT_", cheader_filename = "gio/gvfs.h,glib.h")]
4
5
6
7
8
9
10
	public enum DirectoryMonitorEvent {
		CHANGED,
		DELETED,
		CREATED,
		ATTRIBUTE_CHANGED,
		UNMOUNTED,
	}
11
	[CCode (cprefix = "G_FILE_ATTRIBUTE_TYPE_", cheader_filename = "gio/gvfs.h,glib.h")]
12
13
14
15
16
17
18
19
20
	public enum FileAttributeType {
		INVALID,
		STRING,
		BYTE_STRING,
		UINT32,
		INT32,
		UINT64,
		INT64,
	}
21
	[CCode (cprefix = "G_FILE_COPY_", cheader_filename = "gio/gvfs.h,glib.h")]
22
23
24
25
	public enum FileCopyFlags {
		OVERWRITE,
		BACKUP,
	}
26
	[CCode (cprefix = "G_FILE_FLAG_", cheader_filename = "gio/gvfs.h,glib.h")]
27
28
29
30
31
32
	public enum FileFlags {
		HIDDEN,
		SYMLINK,
		LOCAL,
		VIRTUAL,
	}
33
	[CCode (cprefix = "G_FILE_GET_INFO_NOFOLLOW_", cheader_filename = "gio/gvfs.h,glib.h")]
34
35
36
	public enum FileGetInfoFlags {
		SYMLINKS,
	}
37
	[CCode (cprefix = "G_FILE_MONITOR_EVENT_", cheader_filename = "gio/gvfs.h,glib.h")]
38
39
40
41
42
43
44
	public enum FileMonitorEvent {
		CHANGED,
		DELETED,
		CREATED,
		ATTRIBUTE_CHANGED,
		UNMOUNTED,
	}
45
	[CCode (cprefix = "G_FILE_TYPE_", cheader_filename = "gio/gvfs.h,glib.h")]
46
47
48
49
50
51
52
53
54
	public enum FileType {
		UNKNOWN,
		REGULAR,
		DIRECTORY,
		SYMBOLIC_LINK,
		SPECIAL,
		SHORTCUT,
		MOUNTABLE,
	}
55
	[CCode (cprefix = "G_IO_ERROR_", cheader_filename = "gio/gvfs.h,glib.h")]
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
	public enum IOErrorEnum {
		FAILED,
		NOT_FOUND,
		EXISTS,
		IS_DIRECTORY,
		NOT_DIRECTORY,
		NOT_EMPTY,
		NOT_REGULAR_FILE,
		NOT_SYMBOLIC_LINK,
		NOT_MOUNTABLE,
		FILENAME_TOO_LONG,
		INVALID_FILENAME,
		TOO_MANY_LINKS,
		NO_SPACE,
		INVALID_ARGUMENT,
		PERMISSION_DENIED,
		NOT_SUPPORTED,
		NOT_MOUNTED,
		ALREADY_MOUNTED,
		CLOSED,
		CANCELLED,
		PENDING,
		READ_ONLY,
		CANT_CREATE_BACKUP,
		WRONG_MTIME,
		TIMED_OUT,
	}
83
	[CCode (cprefix = "G_PASSWORD_FLAGS_", cheader_filename = "gio/gvfs.h,glib.h")]
84
85
86
87
88
89
90
	public enum PasswordFlags {
		NEED_PASSWORD,
		NEED_USERNAME,
		NEED_DOMAIN,
		SAVING_SUPPORTED,
		ANON_SUPPORTED,
	}
91
	[CCode (cprefix = "G_PASSWORD_SAVE_", cheader_filename = "gio/gvfs.h,glib.h")]
92
93
94
95
96
	public enum PasswordSave {
		NEVER,
		FOR_SESSION,
		PERMANENTLY,
	}
97
	[CCode (cprefix = "G_UNIX_MOUNT_TYPE_", cheader_filename = "gio/gvfs.h,glib.h")]
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
	public enum UnixMountType {
		UNKNOWN,
		FLOPPY,
		CDROM,
		NFS,
		ZIP,
		JAZ,
		MEMSTICK,
		CF,
		SM,
		SDMMC,
		IPOD,
		CAMERA,
		HD,
	}
113
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
114
115
116
117
118
119
120
	public class BufferedInputStream : GLib.FilterInputStream {
		public static GLib.Type get_type ();
		public BufferedInputStream (GLib.InputStream base_stream);
		public BufferedInputStream.sized (GLib.InputStream base_stream, uint size);
		[NoAccessorMethod]
		public weak uint buffer_size { get; construct; }
	}
121
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
122
123
124
125
126
127
128
	public class BufferedOutputStream : GLib.FilterOutputStream {
		public static GLib.Type get_type ();
		public BufferedOutputStream (GLib.OutputStream base_stream);
		public BufferedOutputStream.sized (GLib.OutputStream base_stream, uint size);
		[NoAccessorMethod]
		public weak uint buffer_size { get; construct; }
	}
129
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
130
131
132
133
134
135
136
137
138
	public class Cancellable : GLib.Object {
		public void cancel ();
		public int get_fd ();
		public static GLib.Type get_type ();
		public bool is_cancelled ();
		public Cancellable ();
		public void reset ();
		public signal void cancelled ();
	}
139
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
140
141
142
143
	public class DesktopAppInfo : GLib.Object, GLib.AppInfo {
		public static GLib.Type get_type ();
		public DesktopAppInfo (string desktop_id);
	}
144
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
145
146
147
148
149
150
151
	public class DirectoryMonitor : GLib.Object {
		public virtual bool cancel ();
		public void emit_event (GLib.File child, GLib.File other_file, GLib.DirectoryMonitorEvent event_type);
		public static GLib.Type get_type ();
		public void set_rate_limit (int limit_msecs);
		public signal void changed (GLib.File child, GLib.File other_file, GLib.DirectoryMonitorEvent event_type);
	}
152
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
153
154
155
156
157
	public class FileEnumerator : GLib.Object {
		public static GLib.Type get_type ();
		public bool has_pending ();
		public bool is_stopped ();
		public virtual weak GLib.FileInfo next_file (GLib.Cancellable cancellable, GLib.Error error);
158
		public virtual void next_files_async (int num_files, int io_priority, GLib.AsyncNextFilesCallback callback, pointer user_data, GLib.Cancellable cancellable);
159
160
		public void set_pending (bool pending);
		public virtual bool stop (GLib.Cancellable cancellable, GLib.Error error);
161
		public virtual void stop_async (int io_priority, GLib.AsyncStopEnumeratingCallback callback, pointer user_data, GLib.Cancellable cancellable);
162
	}
163
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
164
165
166
167
168
	public class FileIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
		public weak GLib.File get_file ();
		public static GLib.Type get_type ();
		public FileIcon (GLib.File file);
	}
169
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
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
	public class FileInfo : GLib.Object {
		public weak GLib.FileInfo copy ();
		public weak string get_attribute_as_string (string attribute);
		public weak string get_attribute_byte_string (string attribute);
		public int get_attribute_int32 (string attribute);
		public int64 get_attribute_int64 (string attribute);
		public weak string get_attribute_string (string attribute);
		public GLib.FileAttributeType get_attribute_type (string attribute);
		public uint get_attribute_uint32 (string attribute);
		public uint64 get_attribute_uint64 (string attribute);
		public weak string get_content_type ();
		public weak string get_display_name ();
		public weak string get_edit_name ();
		public GLib.FileType get_file_type ();
		public GLib.FileFlags get_flags ();
		public weak string get_icon ();
		public void get_modification_time (GLib.TimeVal result);
		public weak string get_name ();
		public int64 get_size ();
		public weak string get_symlink_target ();
		public static GLib.Type get_type ();
		public bool has_attribute (string attribute);
		public weak string list_attributes (string name_space);
		public FileInfo ();
		public void remove_attribute (string attribute);
		public void set_attribute_byte_string (string attribute, string value);
		public void set_attribute_int32 (string attribute, int value);
		public void set_attribute_int64 (string attribute, int64 value);
		public void set_attribute_string (string attribute, string value);
		public void set_attribute_uint32 (string attribute, uint value);
		public void set_attribute_uint64 (string attribute, uint64 value);
		public void set_content_type (string content_type);
		public void set_display_name (string display_name);
		public void set_edit_name (string edit_name);
		public void set_file_type (GLib.FileType type);
205
		public void set_flags (GLib.FileFlags flags);
206
207
208
209
210
211
		public void set_icon (string icon);
		public void set_modification_time (GLib.TimeVal mtime);
		public void set_name (string name);
		public void set_size (int64 size);
		public void set_symlink_target (string symlink_target);
	}
212
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
213
214
215
216
	public class FileInputStream : GLib.InputStream, GLib.Seekable {
		public virtual weak GLib.FileInfo get_file_info (string attributes, GLib.Cancellable cancellable, GLib.Error error);
		public static GLib.Type get_type ();
	}
217
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
218
219
220
221
222
223
224
225
226
	public class FileMonitor : GLib.Object {
		public virtual bool cancel ();
		public static weak GLib.DirectoryMonitor directory (GLib.File file);
		public void emit_event (GLib.File file, GLib.File other_file, GLib.FileMonitorEvent event_type);
		public static weak GLib.FileMonitor file (GLib.File file);
		public static GLib.Type get_type ();
		public void set_rate_limit (int limit_msecs);
		public signal void changed (GLib.File file, GLib.File other_file, GLib.FileMonitorEvent event_type);
	}
227
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
228
229
230
231
232
233
234
235
	public class FileOutputStream : GLib.OutputStream {
		public virtual weak GLib.FileInfo get_file_info (string attributes, GLib.Cancellable cancellable, GLib.Error error);
		public void get_final_mtime (GLib.TimeVal mtime);
		public bool get_should_get_final_mtime ();
		public static GLib.Type get_type ();
		public void set_final_mtime (GLib.TimeVal final_mtime);
		public void set_should_get_final_mtime (bool get_final_mtime);
	}
236
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
237
238
239
240
241
242
	public class FilterInputStream : GLib.InputStream {
		public weak GLib.InputStream get_base_stream ();
		public static GLib.Type get_type ();
		[NoAccessorMethod]
		public weak GLib.InputStream base_stream { get; construct; }
	}
243
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
244
245
246
247
248
249
	public class FilterOutputStream : GLib.OutputStream {
		public weak GLib.OutputStream get_base_stream ();
		public static GLib.Type get_type ();
		[NoAccessorMethod]
		public weak GLib.OutputStream base_stream { get; construct; }
	}
250
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
251
252
	public class InputStream : GLib.Object {
		public virtual bool close (GLib.Cancellable cancellable, GLib.Error error);
253
		public virtual void close_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
254
255
256
257
258
259
		public virtual bool close_finish (GLib.AsyncResult result, GLib.Error error);
		public static GLib.Type get_type ();
		public bool has_pending ();
		public bool is_closed ();
		public virtual long read (pointer buffer, ulong count, GLib.Cancellable cancellable, GLib.Error error);
		public bool read_all (pointer buffer, ulong count, ulong bytes_read, GLib.Cancellable cancellable, GLib.Error error);
260
		public virtual void read_async (pointer buffer, ulong count, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
261
262
263
		public virtual long read_finish (GLib.AsyncResult result, GLib.Error error);
		public void set_pending (bool pending);
		public virtual long skip (ulong count, GLib.Cancellable cancellable, GLib.Error error);
264
		public virtual void skip_async (ulong count, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
265
266
		public virtual long skip_finish (GLib.AsyncResult result, GLib.Error error);
	}
267
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
268
269
270
271
	public class LocalDirectoryMonitor : GLib.DirectoryMonitor {
		public static GLib.Type get_type ();
		public static weak GLib.DirectoryMonitor start (string dirname);
	}
272
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
273
274
	public class LocalFile : GLib.Object, GLib.File {
		public static GLib.Type get_type ();
275
		public static weak GLib.FileInfo info_get (string basename, string path, GLib.FileAttributeMatcher attribute_matcher, GLib.FileGetInfoFlags flags, GLib.LocalParentFileInfo parent_info, GLib.Error error);
276
277
278
279
		public static weak GLib.FileInfo info_get_from_fd (int fd, string attributes, GLib.Error error);
		public static void info_get_parent_info (string dir, GLib.FileAttributeMatcher attribute_matcher, GLib.LocalParentFileInfo parent_info);
		public LocalFile (string filename);
	}
280
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
281
282
	public class LocalFileEnumerator : GLib.FileEnumerator {
		public static GLib.Type get_type ();
283
		public LocalFileEnumerator (string filename, string attributes, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable, GLib.Error error);
284
	}
285
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
286
287
288
289
	public class LocalFileInputStream : GLib.FileInputStream {
		public static GLib.Type get_type ();
		public LocalFileInputStream (int fd);
	}
290
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
291
292
293
294
	public class LocalFileMonitor : GLib.FileMonitor {
		public static GLib.Type get_type ();
		public static weak GLib.FileMonitor start (string dirname);
	}
295
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
296
297
298
299
300
301
	public class LocalFileOutputStream : GLib.FileOutputStream {
		public static weak GLib.FileOutputStream append (string filename, GLib.Cancellable cancellable, GLib.Error error);
		public static weak GLib.FileOutputStream create (string filename, GLib.Cancellable cancellable, GLib.Error error);
		public static GLib.Type get_type ();
		public static weak GLib.FileOutputStream replace (string filename, ulong mtime, bool make_backup, GLib.Cancellable cancellable, GLib.Error error);
	}
302
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
303
304
305
306
	public class LocalVfs : GLib.Object, GLib.Vfs {
		public static GLib.Type get_type ();
		public LocalVfs ();
	}
307
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
308
309
310
311
	public class MemoryInputStream : GLib.InputStream, GLib.Seekable {
		public static weak GLib.InputStream from_data (pointer data, ulong len);
		public static GLib.Type get_type ();
	}
312
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
313
314
315
316
317
318
319
320
321
322
323
	public class MemoryOutputStream : GLib.OutputStream, GLib.Seekable {
		public static GLib.Type get_type ();
		public MemoryOutputStream (GLib.ByteArray data);
		public void set_max_size (uint max_size);
		[NoAccessorMethod]
		public weak pointer data { get; set construct; }
		[NoAccessorMethod]
		public weak bool free_array { get; set; }
		[NoAccessorMethod]
		public weak uint size_limit { get; set; }
	}
324
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
	public class MountOperation : GLib.Object {
		public bool get_anonymous ();
		public int get_choice ();
		public weak string get_domain ();
		public weak string get_password ();
		public GLib.PasswordSave get_password_save ();
		public static GLib.Type get_type ();
		public weak string get_username ();
		public MountOperation ();
		public void set_anonymous (bool anonymous);
		public void set_choice (int choice);
		public void set_domain (string domain);
		public void set_password (string password);
		public void set_password_save (GLib.PasswordSave save);
		public void set_username (string username);
340
		public signal bool ask_password (string message, string default_user, string default_domain, GLib.PasswordFlags flags);
341
342
343
344
		public signal bool ask_question (string message, string[] choices);
		[HasEmitter]
		public signal void reply (bool abort);
	}
345
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
346
347
	public class OutputStream : GLib.Object {
		public virtual bool close (GLib.Cancellable cancellable, GLib.Error error);
348
		public virtual void close_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
349
350
		public virtual bool close_finish (GLib.AsyncResult result, GLib.Error error);
		public virtual bool flush (GLib.Cancellable cancellable, GLib.Error error);
351
		public virtual void flush_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
352
353
354
355
356
357
358
		public virtual bool flush_finish (GLib.AsyncResult result, GLib.Error error);
		public static GLib.Type get_type ();
		public bool has_pending ();
		public bool is_closed ();
		public void set_pending (bool pending);
		public virtual long write (pointer buffer, ulong count, GLib.Cancellable cancellable, GLib.Error error);
		public bool write_all (pointer buffer, ulong count, ulong bytes_written, GLib.Cancellable cancellable, GLib.Error error);
359
		public virtual void write_async (pointer buffer, ulong count, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
360
361
		public virtual long write_finish (GLib.AsyncResult result, GLib.Error error);
	}
362
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
363
364
365
366
367
368
369
370
	public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult {
		public void complete ();
		public void complete_in_idle ();
		public bool get_op_res_gboolean ();
		public pointer get_op_res_gpointer ();
		public long get_op_res_gssize ();
		public pointer get_source_tag ();
		public static GLib.Type get_type ();
371
372
373
		public SimpleAsyncResult (GLib.Object source_object, GLib.AsyncReadyCallback callback, pointer user_data, pointer source_tag);
		public SimpleAsyncResult.error (GLib.Object source_object, GLib.AsyncReadyCallback callback, pointer user_data, GLib.Quark domain, int code, string format);
		public SimpleAsyncResult.from_error (GLib.Object source_object, GLib.AsyncReadyCallback callback, pointer user_data, GLib.Error error);
374
375
376
377
378
379
380
381
382
383
		public bool propagate_error (GLib.Error dest);
		public void run_in_thread (GLib.SimpleAsyncThreadFunc func, int io_priority, GLib.Cancellable cancellable);
		public void set_error (GLib.Quark domain, int code, string format);
		public void set_error_va (GLib.Quark domain, int code, string format, pointer args);
		public void set_from_error (GLib.Error error);
		public void set_handle_cancellation (bool handle_cancellation);
		public void set_op_res_gboolean (bool op_res);
		public void set_op_res_gpointer (pointer op_res, GLib.DestroyNotify destroy_op_res);
		public void set_op_res_gssize (long op_res);
	}
384
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
385
386
387
388
	public class SocketInputStream : GLib.InputStream {
		public static GLib.Type get_type ();
		public SocketInputStream (int fd, bool close_fd_at_close);
	}
389
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
390
391
392
393
	public class SocketOutputStream : GLib.OutputStream {
		public static GLib.Type get_type ();
		public SocketOutputStream (int fd, bool close_fd_at_close);
	}
394
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
395
396
397
398
399
400
	public class ThemedIcon : GLib.Object, GLib.Icon {
		public weak string get_names ();
		public static GLib.Type get_type ();
		public ThemedIcon (string iconname);
		public ThemedIcon.from_names (string iconnames);
	}
401
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
402
403
404
405
406
407
	public class UnionDrive : GLib.Object, GLib.Drive {
		public bool child_is_for_monitor (GLib.VolumeMonitor child_monitor);
		public static GLib.Type get_type ();
		public bool is_for_child_drive (GLib.Drive child_drive);
		public UnionDrive (GLib.VolumeMonitor union_monitor, GLib.Drive child_drive, GLib.VolumeMonitor child_monitor);
	}
408
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
409
410
411
412
413
414
415
416
417
	public class UnionVolume : GLib.Object, GLib.Volume {
		public void add_volume (GLib.Volume volume, GLib.VolumeMonitor monitor);
		public weak GLib.Volume get_child_for_monitor (GLib.VolumeMonitor child_monitor);
		public static GLib.Type get_type ();
		public bool has_child_volume (GLib.Volume child_volume);
		public bool is_last_child (GLib.Volume child_volume);
		public UnionVolume (GLib.VolumeMonitor union_monitor, GLib.Volume volume, GLib.VolumeMonitor monitor);
		public void remove_volume (GLib.Volume volume);
	}
418
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
419
420
421
422
423
	public class UnionVolumeMonitor : GLib.VolumeMonitor {
		public weak GLib.Drive convert_drive (GLib.Drive child_drive);
		public weak GLib.List convert_volumes (GLib.List child_volumes);
		public static GLib.Type get_type ();
	}
424
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
425
426
427
428
429
430
431
432
	public class UnixDrive : GLib.Object, GLib.Drive {
		public void disconnected ();
		public static GLib.Type get_type ();
		public bool has_mountpoint (string mountpoint);
		public UnixDrive (GLib.VolumeMonitor volume_monitor, GLib.UnixMountPoint mountpoint);
		public void set_volume (GLib.UnixVolume volume);
		public void unset_volume (GLib.UnixVolume volume);
	}
433
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
434
435
436
437
438
439
440
	public class UnixVolume : GLib.Object, GLib.Volume {
		public static GLib.Type get_type ();
		public bool has_mountpoint (string mountpoint);
		public UnixVolume (GLib.VolumeMonitor volume_monitor, GLib.UnixMount mount);
		public void unmounted ();
		public void unset_drive (GLib.UnixDrive drive);
	}
441
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
442
443
444
445
446
	public class UnixVolumeMonitor : GLib.VolumeMonitor {
		public static GLib.Type get_type ();
		public weak GLib.UnixDrive lookup_drive_for_mountpoint (string mountpoint);
		public UnixVolumeMonitor ();
	}
447
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
448
449
450
451
452
453
454
455
456
457
	public class VolumeMonitor : GLib.Object {
		public virtual weak GLib.List get_connected_drives ();
		public virtual weak GLib.List get_mounted_volumes ();
		public static GLib.Type get_type ();
		public signal void volume_mounted (GLib.Volume volume);
		public signal void volume_pre_unmount (GLib.Volume volume);
		public signal void volume_unmounted (GLib.Volume volume);
		public signal void drive_connected (GLib.Drive drive);
		public signal void drive_disconnected (GLib.Drive drive);
	}
458
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
459
460
461
	public class Win32AppInfo : GLib.Object, GLib.AppInfo {
		public static GLib.Type get_type ();
	}
462
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
463
464
	public interface AppInfo {
		public static weak GLib.AppInfo create_from_commandline (string commandline, string application_name, GLib.Error error);
465
466
467
468
469
		public abstract weak GLib.AppInfo dup ();
		public abstract bool equal (GLib.AppInfo appinfo2);
		public abstract weak string get_description ();
		public abstract weak string get_icon ();
		public abstract weak string get_name ();
470
		public static GLib.Type get_type ();
471
472
473
474
475
476
		public abstract bool launch (GLib.List filenames, string envp, GLib.Error error);
		public abstract bool launch_uris (GLib.List uris, string envp, GLib.Error error);
		public abstract bool set_as_default_for_type (string content_type, GLib.Error error);
		public abstract bool should_show (string desktop_env);
		public abstract bool supports_uris ();
		public abstract bool supports_xdg_startup_notify ();
477
	}
478
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
479
	public interface AsyncResult {
480
		public abstract weak GLib.Object get_source_object ();
481
		public static GLib.Type get_type ();
482
		public abstract pointer get_user_data ();
483
	}
484
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
485
	public interface Drive {
486
487
488
489
490
491
		public abstract bool can_eject ();
		public abstract bool can_mount ();
		public abstract void eject (GLib.AsyncReadyCallback callback, pointer user_data);
		public abstract bool eject_finish (GLib.AsyncResult result, GLib.Error error);
		public abstract weak string get_icon ();
		public abstract weak string get_name ();
492
493
		public weak string get_platform_id ();
		public static GLib.Type get_type ();
494
495
496
497
		public abstract weak GLib.List get_volumes ();
		public abstract bool is_automounted ();
		public abstract void mount (GLib.MountOperation mount_operation, GLib.AsyncReadyCallback callback, pointer user_data);
		public abstract bool mount_finish (GLib.AsyncResult result, GLib.Error error);
498
499
500
501
		public signal void changed ();
	}
	[CCode (cheader_filename = "gio/gfile.h")]
	public interface File {
502
503
504
		public abstract weak GLib.FileOutputStream append_to (GLib.Cancellable cancellable, GLib.Error error);
		public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable cancellable, GLib.FileProgressCallback progress_callback, pointer progress_callback_data, GLib.Error error);
		public abstract weak GLib.FileOutputStream create (GLib.Cancellable cancellable, GLib.Error error);
505
		public bool delete (GLib.Cancellable cancellable, GLib.Error error);
506
507
508
509
510
511
		public abstract weak GLib.File dup ();
		public abstract void eject_mountable (GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
		public abstract bool eject_mountable_finish (GLib.AsyncResult result, GLib.Error error);
		public abstract weak GLib.FileEnumerator enumerate_children (string attributes, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable, GLib.Error error);
		public abstract bool equal (GLib.File file2);
		public abstract weak string get_basename ();
512
		public weak GLib.File get_child (string name);
513
		public abstract weak GLib.File get_child_for_display_name (string display_name, GLib.Error error);
514
		public void get_contents_async (GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
515
		public bool get_contents_finish (GLib.AsyncResult res, string contents, ulong length, GLib.Error error);
516
		public abstract weak GLib.FileInfo get_filesystem_info (string attributes, GLib.Cancellable cancellable, GLib.Error error);
517
518
519
		public static weak GLib.File get_for_commandline_arg (string arg);
		public static weak GLib.File get_for_path (string path);
		public static weak GLib.File get_for_uri (string uri);
520
521
522
523
		public abstract weak GLib.FileInfo get_info (string attributes, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable, GLib.Error error);
		public abstract weak GLib.File get_parent ();
		public abstract weak string get_parse_name ();
		public abstract weak string get_path ();
524
		public static GLib.Type get_type ();
525
		public abstract weak string get_uri ();
526
		public static uint hash (pointer file);
527
528
529
530
531
532
		public abstract bool is_native ();
		public abstract bool make_directory (GLib.Cancellable cancellable, GLib.Error error);
		public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable cancellable, GLib.Error error);
		public abstract void mount_mountable (GLib.MountOperation mount_operation, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
		public abstract weak GLib.File mount_mountable_finish (GLib.AsyncResult result, GLib.Error error);
		public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable cancellable, GLib.FileProgressCallback progress_callback, pointer progress_callback_data, GLib.Error error);
533
		public static weak GLib.File parse_name (string parse_name);
534
535
536
537
538
539
		public abstract weak GLib.FileInputStream read (GLib.Cancellable cancellable, GLib.Error error);
		public abstract void read_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
		public abstract weak GLib.FileInputStream read_finish (GLib.AsyncResult res, GLib.Error error);
		public abstract weak GLib.FileOutputStream replace (ulong mtime, bool make_backup, GLib.Cancellable cancellable, GLib.Error error);
		public abstract weak GLib.File resolve_relative (string relative_path);
		public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, pointer value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable, GLib.Error error);
540
541
542
543
544
545
		public bool set_attribute_byte_string (string attribute, string value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable, GLib.Error error);
		public bool set_attribute_int32 (string attribute, string value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable, GLib.Error error);
		public bool set_attribute_int64 (string attribute, int64 value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable, GLib.Error error);
		public bool set_attribute_string (string attribute, string value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable, GLib.Error error);
		public bool set_attribute_uint32 (string attribute, uint value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable, GLib.Error error);
		public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable, GLib.Error error);
546
547
548
549
		public abstract weak GLib.File set_display_name (string display_name, GLib.Cancellable cancellable, GLib.Error error);
		public abstract bool trash (GLib.Cancellable cancellable, GLib.Error error);
		public abstract void unmount_mountable (GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
		public abstract bool unmount_mountable_finish (GLib.AsyncResult result, GLib.Error error);
550
	}
551
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
552
	public interface Icon {
553
		public abstract bool equal (GLib.Icon icon2);
554
555
556
		public static GLib.Type get_type ();
		public static uint hash (pointer icon);
	}
557
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
558
559
	public interface LoadableIcon {
		public static GLib.Type get_type ();
560
561
562
		public abstract weak GLib.InputStream load (int size, string type, GLib.Cancellable cancellable, GLib.Error error);
		public abstract void load_async (int size, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
		public abstract weak GLib.InputStream load_finish (GLib.AsyncResult res, string type, GLib.Error error);
563
	}
564
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
565
	public interface Seekable {
566
567
		public abstract bool can_seek ();
		public abstract bool can_truncate ();
568
		public static GLib.Type get_type ();
569
570
571
		public abstract bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable cancellable, GLib.Error err);
		public abstract int64 tell ();
		public abstract bool truncate (int64 offset, GLib.Cancellable cancellable, GLib.Error err);
572
	}
573
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
574
575
	public interface Vfs {
		public static weak GLib.Vfs get ();
576
577
		public abstract weak GLib.File get_file_for_path (string path);
		public abstract weak GLib.File get_file_for_uri (string uri);
578
		public static GLib.Type get_type ();
579
		public abstract weak GLib.File parse_name (string parse_name);
580
	}
581
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
582
	public interface Volume {
583
584
585
586
587
588
589
590
591
592
593
594
		public abstract bool can_eject ();
		public abstract bool can_unmount ();
		public abstract void eject (GLib.AsyncReadyCallback callback, pointer user_data);
		public abstract bool eject_finish (GLib.AsyncResult result, GLib.Error error);
		public abstract weak GLib.Drive get_drive ();
		public abstract weak string get_icon ();
		public abstract weak string get_name ();
		public abstract weak string get_platform_id ();
		public abstract weak GLib.File get_root ();
		public static GLib.Type get_type ();
		public abstract void unmount (GLib.AsyncReadyCallback callback, pointer user_data);
		public abstract bool unmount_finish (GLib.AsyncResult result, GLib.Error error);
595
596
597
		public signal void changed ();
	}
	[ReferenceType]
598
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
599
600
601
602
603
604
	public struct AsyncResultData {
		public pointer async_object;
		public weak GLib.Error error;
		public pointer user_data;
	}
	[ReferenceType]
605
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
606
607
608
609
610
611
612
613
614
	public struct FileAttributeMatcher {
		public bool enumerate_namespace (string @namespace);
		public weak string enumerate_next ();
		public void free ();
		public bool matches (string full_name);
		public bool matches_only (string full_name);
		public FileAttributeMatcher (string attributes);
	}
	[ReferenceType]
615
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
616
617
618
619
	public struct IOJob {
		public void send_to_mainloop (GLib.IODataFunc func, pointer user_data, GLib.DestroyNotify notify, bool block);
	}
	[ReferenceType]
620
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
621
622
623
624
625
626
	public struct LocalParentFileInfo {
		public bool writable;
		public bool is_sticky;
		public int owner;
	}
	[ReferenceType]
627
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
628
629
630
631
632
633
634
	public struct UnixMount {
		public weak string mount_path;
		public weak string device_path;
		public weak string filesystem_type;
		public bool is_read_only;
	}
	[ReferenceType]
635
	[CCode (cheader_filename = "gio/gvfs.h,glib.h")]
636
637
638
639
640
641
642
643
644
	public struct UnixMountPoint {
		public weak string mount_path;
		public weak string device_path;
		public weak string filesystem_type;
		public weak string dev_opt;
		public bool is_read_only;
		public bool is_user_mountable;
		public bool is_loopback;
	}
645
646
647
648
649
650
651
652
653
	public static delegate void AsyncNextFilesCallback (GLib.FileEnumerator enumerator, GLib.List files, int num_files, pointer user_data, GLib.Error error);
	public static delegate void AsyncReadyCallback (GLib.Object source_object, GLib.AsyncResult res, pointer user_data);
	public static delegate void AsyncStopEnumeratingCallback (GLib.FileEnumerator enumerator, bool result, pointer user_data, GLib.Error error);
	public static delegate bool FDSourceFunc (pointer user_data, GLib.IOCondition condition, int fd);
	public static delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes, pointer user_data);
	public static delegate void IODataFunc (pointer user_data);
	public static delegate void IOJobFunc (GLib.IOJob job, GLib.Cancellable cancellable, pointer user_data);
	public static delegate void SimpleAsyncThreadFunc (GLib.SimpleAsyncResult res, GLib.Object object, GLib.Cancellable cancellable);
	public static delegate void UnixMountCallback (pointer user_data);
654
}