gio-2.0.vapi 44.8 KB
Newer Older
1
/* gio-2.0.vapi generated by lt-vapigen, do not modify. */
2

3
[CCode (cprefix = "G", lower_case_cprefix = "g_")]
4
namespace GLib {
5 6 7 8 9
	[CCode (cprefix = "G_APP_INFO_CREATE_", cheader_filename = "gio/gvfs.h")]
	public enum AppInfoCreateFlags {
		FLAGS_NONE,
		NEEDS_TERMINAL,
	}
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
	[CCode (cprefix = "G_DATA_STREAM_BYTE_ORDER_", cheader_filename = "gio/gvfs.h")]
	public enum DataStreamByteOrder {
		BIG_ENDIAN,
		LITTLE_ENDIAN,
		HOST_ENDIAN,
	}
	[CCode (cprefix = "G_DATA_STREAM_NEWLINE_TYPE_", cheader_filename = "gio/gvfs.h")]
	public enum DataStreamNewlineType {
		LF,
		CR,
		CR_LF,
		ANY,
	}
	[CCode (cprefix = "G_FILE_ATTRIBUTE_FLAGS_", cheader_filename = "gio/gvfs.h")]
	public enum FileAttributeFlags {
		NONE,
		COPY_WITH_FILE,
		COPY_WHEN_MOVED,
	}
	[CCode (cprefix = "G_FILE_ATTRIBUTE_STATUS_", cheader_filename = "gio/gvfs.h")]
	public enum FileAttributeStatus {
		UNSET,
		SET,
		ERROR_SETTING,
34
	}
35
	[CCode (cprefix = "G_FILE_ATTRIBUTE_TYPE_", cheader_filename = "gio/gvfs.h")]
36 37 38 39
	public enum FileAttributeType {
		INVALID,
		STRING,
		BYTE_STRING,
40
		BOOLEAN,
41 42 43 44
		UINT32,
		INT32,
		UINT64,
		INT64,
45
		OBJECT,
46
	}
47
	[CCode (cprefix = "G_FILE_COPY_", cheader_filename = "gio/gvfs.h")]
48 49 50
	public enum FileCopyFlags {
		OVERWRITE,
		BACKUP,
51 52
		NOFOLLOW_SYMLINKS,
		ALL_METADATA,
53
	}
54 55 56 57
	[CCode (cprefix = "G_FILE_CREATE_FLAGS_", cheader_filename = "gio/gvfs.h")]
	public enum FileCreateFlags {
		NONE,
		PRIVATE,
58
	}
59
	[CCode (cprefix = "G_FILE_MONITOR_EVENT_", cheader_filename = "gio/gvfs.h")]
60 61
	public enum FileMonitorEvent {
		CHANGED,
62
		CHANGES_DONE_HINT,
63 64 65
		DELETED,
		CREATED,
		ATTRIBUTE_CHANGED,
66
		PRE_UNMOUNT,
67 68
		UNMOUNTED,
	}
69 70 71 72 73
	[CCode (cprefix = "G_FILE_MONITOR_FLAGS_", cheader_filename = "gio/gvfs.h")]
	public enum FileMonitorFlags {
		NONE,
		MONITOR_MOUNTS,
	}
74 75 76 77
	[CCode (cprefix = "G_FILE_QUERY_INFO_NOFOLLOW_", cheader_filename = "gio/gvfs.h")]
	public enum FileQueryInfoFlags {
		SYMLINKS,
	}
78
	[CCode (cprefix = "G_FILE_TYPE_", cheader_filename = "gio/gvfs.h")]
79 80 81 82 83 84 85 86 87
	public enum FileType {
		UNKNOWN,
		REGULAR,
		DIRECTORY,
		SYMBOLIC_LINK,
		SPECIAL,
		SHORTCUT,
		MOUNTABLE,
	}
88
	[CCode (cprefix = "G_IO_ERROR_", cheader_filename = "gio/gvfs.h")]
89 90 91 92 93 94 95 96 97
	public enum IOErrorEnum {
		FAILED,
		NOT_FOUND,
		EXISTS,
		IS_DIRECTORY,
		NOT_DIRECTORY,
		NOT_EMPTY,
		NOT_REGULAR_FILE,
		NOT_SYMBOLIC_LINK,
98
		NOT_MOUNTABLE_FILE,
99 100 101 102 103 104 105 106 107 108 109 110 111 112
		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,
113
		WRONG_ETAG,
114
		TIMED_OUT,
115 116 117
		WOULD_RECURSE,
		BUSY,
		WOULD_BLOCK,
118
		HOST_NOT_FOUND,
119
	}
Jürg Billeter's avatar
Jürg Billeter committed
120 121 122 123 124 125
	[CCode (cprefix = "G_OUTPUT_STREAM_SPLICE_FLAGS_", cheader_filename = "gio/gvfs.h")]
	public enum OutputStreamSpliceFlags {
		NONE,
		CLOSE_SOURCE,
		CLOSE_TARGET,
	}
126
	[CCode (cprefix = "G_PASSWORD_FLAGS_", cheader_filename = "gio/gvfs.h")]
127 128 129 130 131 132 133
	public enum PasswordFlags {
		NEED_PASSWORD,
		NEED_USERNAME,
		NEED_DOMAIN,
		SAVING_SUPPORTED,
		ANON_SUPPORTED,
	}
134
	[CCode (cprefix = "G_PASSWORD_SAVE_", cheader_filename = "gio/gvfs.h")]
135 136 137 138 139
	public enum PasswordSave {
		NEVER,
		FOR_SESSION,
		PERMANENTLY,
	}
140
	[CCode (cheader_filename = "gio/gfileattribute.h")]
141 142 143 144 145
	public class FileAttributeInfo {
		public weak string name;
		public GLib.FileAttributeType type;
		public GLib.FileAttributeFlags flags;
	}
146
	[CCode (ref_function = "g_file_attribute_info_list_ref", unref_function = "g_file_attribute_info_list_unref", cheader_filename = "gio/gfileattribute.h")]
147 148 149 150 151 152 153 154
	public class FileAttributeInfoList {
		public weak GLib.FileAttributeInfo infos;
		public int n_infos;
		public void add (string name, GLib.FileAttributeType type, GLib.FileAttributeFlags flags);
		public weak GLib.FileAttributeInfoList dup ();
		public weak GLib.FileAttributeInfo lookup (string name);
		public FileAttributeInfoList ();
	}
155
	[CCode (ref_function = "g_file_attribute_matcher_ref", unref_function = "g_file_attribute_matcher_unref", cheader_filename = "gio/gfileattribute.h")]
156
	public class FileAttributeMatcher {
Jürg Billeter's avatar
Jürg Billeter committed
157
		public bool enumerate_namespace (string ns);
158
		public weak string enumerate_next ();
Jürg Billeter's avatar
Jürg Billeter committed
159 160
		public bool matches (string attribute);
		public bool matches_only (string attribute);
161 162
		public FileAttributeMatcher (string attributes);
	}
163
	[CCode (cheader_filename = "gio/gfileattribute.h")]
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
	public class FileAttributeValue {
		public GLib.FileAttributeType type;
		public GLib.FileAttributeStatus status;
		public pointer u;
		public weak string as_string ();
		public void clear ();
		public weak GLib.FileAttributeValue dup ();
		public bool get_boolean ();
		public weak string get_byte_string ();
		public int get_int32 ();
		public int64 get_int64 ();
		public weak GLib.Object get_object ();
		public weak string get_string ();
		public uint get_uint32 ();
		public uint64 get_uint64 ();
		public FileAttributeValue ();
		public void set (GLib.FileAttributeValue new_value);
		public void set_boolean (bool value);
Jürg Billeter's avatar
Jürg Billeter committed
182
		public void set_byte_string (string string);
183 184 185
		public void set_int32 (int value);
		public void set_int64 (int64 value);
		public void set_object (GLib.Object obj);
Jürg Billeter's avatar
Jürg Billeter committed
186
		public void set_string (string string);
187 188 189 190
		public void set_uint32 (uint value);
		public void set_uint64 (uint64 value);
	}
	[CCode (cheader_filename = "gio/gvfs.h")]
Jürg Billeter's avatar
Jürg Billeter committed
191 192 193 194 195
	public class FileIconClass {
	}
	[CCode (cheader_filename = "gio/gvfs.h")]
	public class FileInfoClass {
	}
196
	[CCode (cheader_filename = "gio/gioscheduler.h")]
197 198 199 200 201
	public class IOJob {
		public void send_to_mainloop (GLib.IODataFunc func, pointer user_data, GLib.DestroyNotify notify, bool block);
	}
	[CCode (cheader_filename = "gio/gvfs.h")]
	public class IOModuleClass {
202 203
	}
	[CCode (cheader_filename = "gio/gvfs.h")]
Jürg Billeter's avatar
Jürg Billeter committed
204 205 206 207 208 209 210 211 212 213 214 215
	public class SimpleAsyncResultClass {
	}
	[CCode (cheader_filename = "gio/gvfs.h")]
	public class ThemedIconClass {
	}
	[CCode (cheader_filename = "gio/gvfs.h")]
	public class AppLaunchContext : GLib.Object {
		public virtual weak string get_display (GLib.AppInfo info, GLib.List files);
		public virtual weak string get_startup_notify_id (GLib.AppInfo info, GLib.List files);
		public virtual void launch_failed (string startup_notify_id);
		public AppLaunchContext ();
	}
216
	[CCode (cheader_filename = "gio/gbufferedinputstream.h")]
217
	public class BufferedInputStream : GLib.FilterInputStream {
218 219 220
		public virtual long fill (long count, GLib.Cancellable cancellable) throws GLib.Error;
		public virtual void fill_async (long count, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
		public virtual long fill_finish (GLib.AsyncResult result) throws GLib.Error;
Jürg Billeter's avatar
Jürg Billeter committed
221
		public ulong get_available ();
222
		public ulong get_buffer_size ();
223
		public BufferedInputStream (GLib.InputStream base_stream);
224 225 226
		public BufferedInputStream.sized (GLib.InputStream base_stream, ulong size);
		public ulong peek (pointer buffer, ulong offset, ulong count);
		public void set_buffer_size (ulong size);
227
		public weak uint buffer_size { get; set construct; }
228
	}
229
	[CCode (cheader_filename = "gio/gbufferedoutputstream.h")]
230
	public class BufferedOutputStream : GLib.FilterOutputStream {
231 232
		public bool get_auto_grow ();
		public ulong get_buffer_size ();
233 234
		public BufferedOutputStream (GLib.OutputStream base_stream);
		public BufferedOutputStream.sized (GLib.OutputStream base_stream, uint size);
235 236
		public void set_auto_grow (bool auto_grow);
		public void set_buffer_size (ulong size);
237
		public weak uint buffer_size { get; construct; }
238
	}
239
	[CCode (cheader_filename = "gio/gcancellable.h")]
240 241
	public class Cancellable : GLib.Object {
		public void cancel ();
242
		public static weak GLib.Cancellable get_current ();
243 244 245 246
		public int get_fd ();
		public bool is_cancelled ();
		public Cancellable ();
		public void reset ();
247
		public bool set_error_if_cancelled () throws GLib.Error;
248 249
		public signal void cancelled ();
	}
250
	[CCode (cheader_filename = "gio/gdatainputstream.h")]
251 252 253 254
	public class DataInputStream : GLib.BufferedInputStream {
		public GLib.DataStreamByteOrder get_byte_order ();
		public GLib.DataStreamNewlineType get_newline_type ();
		public DataInputStream (GLib.InputStream base_stream);
255 256 257 258 259 260 261 262 263
		public uchar read_byte (GLib.Cancellable cancellable) throws GLib.Error;
		public short read_int16 (GLib.Cancellable cancellable) throws GLib.Error;
		public int read_int32 (GLib.Cancellable cancellable) throws GLib.Error;
		public int64 read_int64 (GLib.Cancellable cancellable) throws GLib.Error;
		public weak string read_line (ulong length, GLib.Cancellable cancellable) throws GLib.Error;
		public ushort read_uint16 (GLib.Cancellable cancellable) throws GLib.Error;
		public uint read_uint32 (GLib.Cancellable cancellable) throws GLib.Error;
		public uint64 read_uint64 (GLib.Cancellable cancellable) throws GLib.Error;
		public weak string read_until (char stop_char, ulong length, GLib.Cancellable cancellable) throws GLib.Error;
264 265 266
		public void set_byte_order (GLib.DataStreamByteOrder order);
		public void set_newline_type (GLib.DataStreamNewlineType type);
	}
267
	[CCode (cheader_filename = "gio/gdataoutputstream.h")]
268 269 270 271 272 273 274 275 276 277 278 279 280 281
	public class DataOutputStream : GLib.FilterOutputStream {
		public GLib.DataStreamByteOrder get_byte_order ();
		public DataOutputStream (GLib.OutputStream base_stream);
		public bool put_byte (uchar data, GLib.Cancellable cancellable) throws GLib.Error;
		public bool put_int16 (short data, GLib.Cancellable cancellable) throws GLib.Error;
		public bool put_int32 (int data, GLib.Cancellable cancellable) throws GLib.Error;
		public bool put_int64 (int64 data, GLib.Cancellable cancellable) throws GLib.Error;
		public bool put_string (string str, GLib.Cancellable cancellable) throws GLib.Error;
		public bool put_uint16 (ushort data, GLib.Cancellable cancellable) throws GLib.Error;
		public bool put_uint32 (uint data, GLib.Cancellable cancellable) throws GLib.Error;
		public bool put_uint64 (uint64 data, GLib.Cancellable cancellable) throws GLib.Error;
		public void set_byte_order (GLib.DataStreamByteOrder order);
		public void set_expand_buffer (bool expand_buffer);
	}
282
	[CCode (cheader_filename = "gio/gdirectorymonitor.h")]
283 284
	public class DirectoryMonitor : GLib.Object {
		public virtual bool cancel ();
285
		public void emit_event (GLib.File child, GLib.File other_file, GLib.FileMonitorEvent event_type);
286
		public bool is_cancelled ();
287
		public void set_rate_limit (int limit_msecs);
288
		public signal void changed (GLib.File child, GLib.File other_file, int event_type);
289
	}
290
	[CCode (cheader_filename = "gio/gdummyfile.h")]
291 292
	public class DummyFile : GLib.Object, GLib.File {
		public DummyFile (string uri);
293
	}
294
	[CCode (cheader_filename = "gio/gfileenumerator.h")]
295
	public class FileEnumerator : GLib.Object {
296 297
		public virtual bool close (GLib.Cancellable cancellable) throws GLib.Error;
		public virtual void close_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
Jürg Billeter's avatar
Jürg Billeter committed
298
		public virtual bool close_finish (GLib.AsyncResult result) throws GLib.Error;
299
		public bool has_pending ();
300
		public bool is_closed ();
301
		public virtual weak GLib.FileInfo next_file (GLib.Cancellable cancellable) throws GLib.Error;
302
		public virtual void next_files_async (int num_files, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
Jürg Billeter's avatar
Jürg Billeter committed
303
		public virtual weak GLib.List next_files_finish (GLib.AsyncResult result) throws GLib.Error;
304 305
		public void set_pending (bool pending);
	}
306
	[CCode (cheader_filename = "gio/gfileicon.h")]
307 308 309 310
	public class FileIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
		public weak GLib.File get_file ();
		public FileIcon (GLib.File file);
	}
311
	[CCode (cheader_filename = "gio/gfileinfo.h")]
312
	public class FileInfo : GLib.Object {
313
		public void clear_status ();
Jürg Billeter's avatar
Jürg Billeter committed
314
		public void copy_into (GLib.FileInfo dest_info);
315 316 317
		public weak GLib.FileInfo dup ();
		public weak GLib.FileAttributeValue get_attribute (string attribute);
		public bool get_attribute_boolean (string attribute);
318 319 320
		public weak string get_attribute_byte_string (string attribute);
		public int get_attribute_int32 (string attribute);
		public int64 get_attribute_int64 (string attribute);
321
		public weak GLib.Object get_attribute_object (string attribute);
322 323 324 325 326 327 328
		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 ();
329
		public weak string get_etag ();
330
		public GLib.FileType get_file_type ();
331
		public weak GLib.Icon get_icon ();
332
		public bool get_is_backup ();
333 334
		public bool get_is_hidden ();
		public bool get_is_symlink ();
335
		public void get_modification_time (out GLib.TimeVal result);
336 337
		public weak string get_name ();
		public int64 get_size ();
338
		public int get_sort_order ();
339 340 341 342 343
		public weak string get_symlink_target ();
		public bool has_attribute (string attribute);
		public weak string list_attributes (string name_space);
		public FileInfo ();
		public void remove_attribute (string attribute);
Jürg Billeter's avatar
Jürg Billeter committed
344 345 346 347 348
		public void set_attribute (string attribute, GLib.FileAttributeValue attr_value);
		public void set_attribute_boolean (string attribute, bool attr_value);
		public void set_attribute_byte_string (string attribute, string attr_value);
		public void set_attribute_int32 (string attribute, int attr_value);
		public void set_attribute_int64 (string attribute, int64 attr_value);
349
		public void set_attribute_mask (GLib.FileAttributeMatcher mask);
Jürg Billeter's avatar
Jürg Billeter committed
350 351 352 353
		public void set_attribute_object (string attribute, GLib.Object attr_value);
		public void set_attribute_string (string attribute, string attr_value);
		public void set_attribute_uint32 (string attribute, uint attr_value);
		public void set_attribute_uint64 (string attribute, uint64 attr_value);
354 355 356 357
		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);
358 359 360
		public void set_icon (GLib.Icon icon);
		public void set_is_hidden (bool is_hidden);
		public void set_is_symlink (bool is_symlink);
361
		public void set_modification_time (out GLib.TimeVal mtime);
362 363
		public void set_name (string name);
		public void set_size (int64 size);
364
		public void set_sort_order (int sort_order);
365
		public void set_symlink_target (string symlink_target);
366
		public void unset_attribute_mask ();
367
	}
368
	[CCode (cheader_filename = "gio/gfileinputstream.h")]
369
	public class FileInputStream : GLib.InputStream, GLib.Seekable {
370
		public virtual bool can_seek ();
371 372
		public virtual weak GLib.FileInfo query_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error;
		public virtual void query_info_async (string attributes, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
Jürg Billeter's avatar
Jürg Billeter committed
373
		public virtual weak GLib.FileInfo query_info_finish (GLib.AsyncResult result) throws GLib.Error;
374 375
		public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable cancellable) throws GLib.Error;
		public virtual int64 tell ();
376
	}
377
	[CCode (cheader_filename = "gio/gfilemonitor.h")]
378 379
	public class FileMonitor : GLib.Object {
		public virtual bool cancel ();
380 381 382
		public static weak GLib.DirectoryMonitor directory (GLib.File file, GLib.FileMonitorFlags flags, GLib.Cancellable cancellable);
		public void emit_event (GLib.File file, GLib.File other_file, GLib.FileMonitorEvent event_type);
		public static weak GLib.FileMonitor file (GLib.File file, GLib.FileMonitorFlags flags, GLib.Cancellable cancellable);
383
		public bool is_cancelled ();
384
		public void set_rate_limit (int limit_msecs);
385
		public signal void changed (GLib.File file, GLib.File other_file, int event_type);
386
	}
387
	[CCode (cheader_filename = "gio/gfileoutputstream.h")]
388 389 390
	public class FileOutputStream : GLib.OutputStream, GLib.Seekable {
		public virtual bool can_seek ();
		public virtual bool can_truncate ();
391 392 393
		public virtual weak string get_etag ();
		public virtual weak GLib.FileInfo query_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error;
		public virtual void query_info_async (string attributes, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
Jürg Billeter's avatar
Jürg Billeter committed
394
		public virtual weak GLib.FileInfo query_info_finish (GLib.AsyncResult result) throws GLib.Error;
395 396 397
		public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable cancellable) throws GLib.Error;
		public virtual int64 tell ();
		public virtual bool truncate (int64 size, GLib.Cancellable cancellable) throws GLib.Error;
398
	}
399
	[CCode (cheader_filename = "gio/gfilenamecompleter.h")]
400 401
	public class FilenameCompleter : GLib.Object {
		public weak string get_completion_suffix (string initial_text);
Jürg Billeter's avatar
Jürg Billeter committed
402
		public weak string get_completions (string initial_text);
403 404 405 406
		public FilenameCompleter ();
		public void set_dirs_only (bool dirs_only);
		public signal void got_completion_data ();
	}
407
	[CCode (cheader_filename = "gio/gfilterinputstream.h")]
408 409 410
	public class FilterInputStream : GLib.InputStream {
		public weak GLib.InputStream get_base_stream ();
		[NoAccessorMethod]
411
		public weak GLib.InputStream base_stream { get; construct; }
412
	}
413
	[CCode (cheader_filename = "gio/gfilteroutputstream.h")]
414 415 416
	public class FilterOutputStream : GLib.OutputStream {
		public weak GLib.OutputStream get_base_stream ();
		[NoAccessorMethod]
417
		public weak GLib.OutputStream base_stream { get; construct; }
418
	}
419
	[CCode (cheader_filename = "gio/giomodule.h")]
420 421 422 423
	public class IOModule : GLib.TypeModule, GLib.TypePlugin {
		public void load ();
		public IOModule (string filename);
		public void unload ();
424
	}
425
	[CCode (cheader_filename = "gio/ginputstream.h")]
426
	public class InputStream : GLib.Object {
427
		public virtual bool close (GLib.Cancellable cancellable) throws GLib.Error;
428
		public virtual void close_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
429
		public virtual bool close_finish (GLib.AsyncResult result) throws GLib.Error;
430 431
		public bool has_pending ();
		public bool is_closed ();
432 433
		public virtual long read (pointer buffer, ulong count, GLib.Cancellable cancellable) throws GLib.Error;
		public bool read_all (pointer buffer, ulong count, ulong bytes_read, GLib.Cancellable cancellable) throws GLib.Error;
434
		public virtual void read_async (pointer buffer, ulong count, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
435
		public virtual long read_finish (GLib.AsyncResult result) throws GLib.Error;
436
		public void set_pending (bool pending);
437
		public virtual long skip (ulong count, GLib.Cancellable cancellable) throws GLib.Error;
438
		public virtual void skip_async (ulong count, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
439
		public virtual long skip_finish (GLib.AsyncResult result) throws GLib.Error;
440
	}
441
	[CCode (cheader_filename = "gio/gmemoryinputstream.h")]
442
	public class MemoryInputStream : GLib.InputStream, GLib.Seekable {
443
		public static weak GLib.InputStream from_data (pointer data, long len);
444 445 446
		public pointer get_data ();
		public ulong get_data_size ();
		public void set_free_data (bool free_data);
447
	}
448
	[CCode (cheader_filename = "gio/gmemoryoutputstream.h")]
449
	public class MemoryOutputStream : GLib.OutputStream, GLib.Seekable {
450
		public weak GLib.ByteArray get_data ();
451
		public MemoryOutputStream (GLib.ByteArray data);
Jürg Billeter's avatar
Jürg Billeter committed
452
		public void set_free_data (bool free_data);
453 454
		public void set_max_size (uint max_size);
		[NoAccessorMethod]
455
		public weak pointer data { get; set construct; }
456 457 458 459 460
		[NoAccessorMethod]
		public weak bool free_array { get; set; }
		[NoAccessorMethod]
		public weak uint size_limit { get; set; }
	}
461
	[CCode (cheader_filename = "gio/gmountoperation.h")]
462 463 464 465 466 467 468 469 470 471 472 473 474 475
	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 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);
476 477
		public signal bool ask_password (string message, string default_user, string default_domain, uint flags);
		public signal bool ask_question (string message, pointer choices);
478 479 480
		[HasEmitter]
		public signal void reply (bool abort);
	}
481
	[CCode (cheader_filename = "gio/goutputstream.h")]
482
	public class OutputStream : GLib.Object {
483
		public virtual bool close (GLib.Cancellable cancellable) throws GLib.Error;
484
		public virtual void close_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
485 486
		public virtual bool close_finish (GLib.AsyncResult result) throws GLib.Error;
		public virtual bool flush (GLib.Cancellable cancellable) throws GLib.Error;
487
		public virtual void flush_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
488
		public virtual bool flush_finish (GLib.AsyncResult result) throws GLib.Error;
489 490 491
		public bool has_pending ();
		public bool is_closed ();
		public void set_pending (bool pending);
Jürg Billeter's avatar
Jürg Billeter committed
492 493 494
		public virtual long splice (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
		public virtual void splice_async (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
		public virtual long splice_finish (GLib.AsyncResult result) throws GLib.Error;
495 496
		public virtual long write (pointer buffer, ulong count, GLib.Cancellable cancellable) throws GLib.Error;
		public bool write_all (pointer buffer, ulong count, ulong bytes_written, GLib.Cancellable cancellable) throws GLib.Error;
497
		public virtual void write_async (pointer buffer, ulong count, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
498
		public virtual long write_finish (GLib.AsyncResult result) throws GLib.Error;
499
	}
500
	[CCode (cheader_filename = "gio/gsimpleasyncresult.h")]
501 502 503 504 505 506 507
	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 ();
508 509
		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);
510 511
		public SimpleAsyncResult.from_error (GLib.Object source_object, GLib.AsyncReadyCallback callback, pointer user_data) throws GLib.Error;
		public bool propagate_error () throws GLib.Error;
512 513 514
		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);
515
		public void set_from_error () throws GLib.Error;
516 517 518 519 520
		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);
	}
521
	[CCode (cheader_filename = "gio/gsocketinputstream.h")]
522 523 524
	public class SocketInputStream : GLib.InputStream {
		public SocketInputStream (int fd, bool close_fd_at_close);
	}
525
	[CCode (cheader_filename = "gio/gsocketoutputstream.h")]
526 527 528
	public class SocketOutputStream : GLib.OutputStream {
		public SocketOutputStream (int fd, bool close_fd_at_close);
	}
529
	[CCode (cheader_filename = "gio/gthemedicon.h")]
530 531 532
	public class ThemedIcon : GLib.Object, GLib.Icon {
		public weak string get_names ();
		public ThemedIcon (string iconname);
533
		[NoArrayLength]
534
		public ThemedIcon.from_names (string[] iconnames, int len);
535
	}
536
	[CCode (cheader_filename = "gio/gvfs.h")]
537 538 539 540 541
	public class Vfs : GLib.Object {
		public static weak GLib.Vfs get_default ();
		public virtual weak GLib.File get_file_for_path (string path);
		public virtual weak GLib.File get_file_for_uri (string uri);
		public static weak GLib.Vfs get_local ();
542
		public virtual weak string get_supported_uri_schemes ();
Jürg Billeter's avatar
Jürg Billeter committed
543
		public virtual bool is_active ();
544 545
		public virtual weak GLib.File parse_name (string parse_name);
	}
546
	[CCode (cheader_filename = "gio/gvolumemonitor.h")]
547
	public class VolumeMonitor : GLib.Object {
548
		public static weak GLib.VolumeMonitor get ();
549 550
		public virtual weak GLib.List get_connected_drives ();
		public virtual weak GLib.List get_mounted_volumes ();
551 552
		public signal void drive_connected (GLib.Drive drive);
		public signal void drive_disconnected (GLib.Drive drive);
553 554 555
		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);
556
	}
557
	[CCode (cheader_filename = "gio/gappinfo.h")]
558
	public interface AppInfo : GLib.Object {
559 560 561
		public abstract bool add_supports_type (string content_type) throws GLib.Error;
		public abstract bool can_remove_supports_type ();
		public static weak GLib.AppInfo create_from_commandline (string commandline, string application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error;
562 563
		public abstract weak GLib.AppInfo dup ();
		public abstract bool equal (GLib.AppInfo appinfo2);
564 565
		public static weak GLib.List get_all ();
		public static weak GLib.List get_all_for_type (string content_type);
566
		public static weak GLib.AppInfo get_default_for_type (string content_type, bool must_support_uris);
Jürg Billeter's avatar
Jürg Billeter committed
567
		public static weak GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
568 569
		public abstract weak string get_description ();
		public abstract weak string get_executable ();
570
		public abstract weak GLib.Icon get_icon ();
571 572
		public abstract weak string get_id ();
		public abstract weak string get_name ();
Jürg Billeter's avatar
Jürg Billeter committed
573 574
		public abstract bool launch (GLib.List files, GLib.AppLaunchContext launch_context) throws GLib.Error;
		public abstract bool launch_uris (GLib.List uris, GLib.AppLaunchContext launch_context) throws GLib.Error;
575 576
		public abstract bool remove_supports_type (string content_type) throws GLib.Error;
		public abstract bool set_as_default_for_extension (string extension) throws GLib.Error;
577
		public abstract bool set_as_default_for_type (string content_type) throws GLib.Error;
578 579
		public abstract bool should_show (string desktop_env);
		public abstract bool supports_uris ();
580
	}
581
	[CCode (cheader_filename = "gio/gvfs.h")]
582
	public interface AsyncResult : GLib.Object {
583 584
		public abstract weak GLib.Object get_source_object ();
		public abstract pointer get_user_data ();
585
	}
586
	[CCode (cheader_filename = "gio/gvfs.h")]
587
	public interface Drive : GLib.Object {
588 589
		public abstract bool can_eject ();
		public abstract bool can_mount ();
Jürg Billeter's avatar
Jürg Billeter committed
590
		public abstract void eject (GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
591
		public abstract bool eject_finish (GLib.AsyncResult result) throws GLib.Error;
592
		public abstract weak GLib.Icon get_icon ();
593 594
		public abstract weak string get_name ();
		public abstract weak GLib.List get_volumes ();
595
		public abstract bool has_volumes ();
596
		public abstract bool is_automounted ();
Jürg Billeter's avatar
Jürg Billeter committed
597
		public abstract void mount (GLib.MountOperation mount_operation, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
598
		public abstract bool mount_finish (GLib.AsyncResult result) throws GLib.Error;
599 600 601
		public signal void changed ();
	}
	[CCode (cheader_filename = "gio/gfile.h")]
602
	public interface File : GLib.Object {
603 604
		public abstract weak GLib.FileOutputStream append_to (GLib.FileCreateFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
		public abstract void append_to_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
605
		public abstract weak GLib.FileOutputStream append_to_finish (GLib.AsyncResult res) throws GLib.Error;
606
		public abstract bool contains_file (GLib.File descendant);
607
		public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable cancellable, GLib.FileProgressCallback progress_callback, pointer progress_callback_data) throws GLib.Error;
608 609
		public abstract weak GLib.FileOutputStream create (GLib.FileCreateFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
		public abstract void create_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
610
		public abstract weak GLib.FileOutputStream create_finish (GLib.AsyncResult res) throws GLib.Error;
611
		public bool delete (GLib.Cancellable cancellable) throws GLib.Error;
612 613
		public abstract weak GLib.File dup ();
		public abstract void eject_mountable (GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
614
		public abstract bool eject_mountable_finish (GLib.AsyncResult result) throws GLib.Error;
615 616 617
		public abstract weak GLib.FileEnumerator enumerate_children (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
		public abstract void enumerate_children_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
		public abstract weak GLib.FileEnumerator enumerate_children_finish (GLib.AsyncResult res) throws GLib.Error;
618
		public abstract bool equal (GLib.File file2);
Jürg Billeter's avatar
Jürg Billeter committed
619
		public abstract weak GLib.Volume find_enclosing_volume (GLib.Cancellable cancellable) throws GLib.Error;
620
		public abstract weak string get_basename ();
621
		public weak GLib.File get_child (string name);
622
		public abstract weak GLib.File get_child_for_display_name (string display_name) throws GLib.Error;
623 624 625
		public abstract weak GLib.File get_parent ();
		public abstract weak string get_parse_name ();
		public abstract weak string get_path ();
626
		public abstract weak string get_relative_path (GLib.File descendant);
627
		public abstract weak string get_uri ();
Jürg Billeter's avatar
Jürg Billeter committed
628
		public abstract weak string get_uri_scheme ();
629
		public abstract bool has_uri_scheme (string uri_scheme);
630
		public static uint hash (pointer file);
631
		public abstract bool is_native ();
632
		public bool load_contents (GLib.Cancellable cancellable, out string contents, ulong length, out string etag_out) throws GLib.Error;
633
		public void load_contents_async (GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
634 635 636
		public bool load_contents_finish (GLib.AsyncResult res, out string contents, ulong length, out string etag_out) throws GLib.Error;
		public void load_partial_contents_async (GLib.Cancellable cancellable, GLib.FileReadMoreCallback read_more_callback, GLib.AsyncReadyCallback callback, pointer user_data);
		public bool load_partial_contents_finish (GLib.AsyncResult res, out string contents, ulong length, out string etag_out) throws GLib.Error;
637 638
		public abstract bool make_directory (GLib.Cancellable cancellable) throws GLib.Error;
		public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable cancellable) throws GLib.Error;
639
		public abstract void mount_mountable (GLib.MountOperation mount_operation, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
640 641
		public abstract weak GLib.File mount_mountable_finish (GLib.AsyncResult result) throws GLib.Error;
		public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable cancellable, GLib.FileProgressCallback progress_callback, pointer progress_callback_data) throws GLib.Error;
642 643 644
		public static weak GLib.File new_for_commandline_arg (string arg);
		public static weak GLib.File new_for_path (string path);
		public static weak GLib.File new_for_uri (string uri);
645
		public static weak GLib.File parse_name (string parse_name);
646 647 648 649
		public abstract weak GLib.FileInfo query_filesystem_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error;
		public abstract weak GLib.FileInfo query_info (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
		public abstract void query_info_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
		public abstract weak GLib.FileInfo query_info_finish (GLib.AsyncResult res) throws GLib.Error;
650 651
		public abstract weak GLib.FileAttributeInfoList query_settable_attributes (GLib.Cancellable cancellable) throws GLib.Error;
		public abstract weak GLib.FileAttributeInfoList query_writable_namespaces (GLib.Cancellable cancellable) throws GLib.Error;
652
		public abstract weak GLib.FileInputStream read (GLib.Cancellable cancellable) throws GLib.Error;
653
		public abstract void read_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
654
		public abstract weak GLib.FileInputStream read_finish (GLib.AsyncResult res) throws GLib.Error;
655 656 657 658 659
		public abstract weak GLib.FileOutputStream replace (string etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
		public abstract void replace_async (string etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
		public bool replace_contents (string contents, ulong length, string etag, bool make_backup, GLib.FileCreateFlags flags, out string new_etag, GLib.Cancellable cancellable) throws GLib.Error;
		public void replace_contents_async (string contents, ulong length, string etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
		public bool replace_contents_finish (GLib.AsyncResult res, out string new_etag) throws GLib.Error;
660
		public abstract weak GLib.FileOutputStream replace_finish (GLib.AsyncResult res) throws GLib.Error;
661 662 663 664 665 666 667 668 669
		public abstract weak GLib.File resolve_relative_path (string relative_path);
		public abstract bool set_attribute (string attribute, GLib.FileAttributeValue value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
		public bool set_attribute_byte_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
		public bool set_attribute_int32 (string attribute, int value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
		public bool set_attribute_int64 (string attribute, int64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
		public bool set_attribute_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
		public bool set_attribute_uint32 (string attribute, uint value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
		public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
		public abstract void set_attributes_async (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
670
		public abstract bool set_attributes_finish (GLib.AsyncResult result, out GLib.FileInfo info) throws GLib.Error;
671
		public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
672
		public abstract weak GLib.File set_display_name (string display_name, GLib.Cancellable cancellable) throws GLib.Error;
673 674
		public abstract void set_display_name_async (string display_name, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
		public abstract weak GLib.File set_display_name_finish (GLib.AsyncResult res) throws GLib.Error;
675
		public abstract bool trash (GLib.Cancellable cancellable) throws GLib.Error;
676
		public abstract void unmount_mountable (GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
677
		public abstract bool unmount_mountable_finish (GLib.AsyncResult result) throws GLib.Error;
678
	}
679
	[CCode (cheader_filename = "gio/gicon.h")]
680
	public interface Icon : GLib.Object {
681
		public abstract bool equal (GLib.Icon icon2);
682 683
		public static uint hash (pointer icon);
	}
684
	[CCode (cheader_filename = "gio/gvfs.h")]
685
	public interface LoadableIcon : GLib.Icon, GLib.Object {
686
		public abstract weak GLib.InputStream load (int size, out string type, GLib.Cancellable cancellable) throws GLib.Error;
687
		public abstract void load_async (int size, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
688
		public abstract weak GLib.InputStream load_finish (GLib.AsyncResult res, out string type) throws GLib.Error;
689
	}
690
	[CCode (cheader_filename = "gio/gseekable.h")]
691
	public interface Seekable : GLib.Object {
692 693
		public abstract bool can_seek ();
		public abstract bool can_truncate ();
694
		public abstract bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable cancellable) throws GLib.Error;
695
		public abstract int64 tell ();
696
		public abstract bool truncate (int64 offset, GLib.Cancellable cancellable) throws GLib.Error;
697
	}
698
	[CCode (cheader_filename = "gio/gvolume.h")]
699
	public interface Volume : GLib.Object {
700 701
		public abstract bool can_eject ();
		public abstract bool can_unmount ();
Jürg Billeter's avatar
Jürg Billeter committed
702
		public abstract void eject (GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
703
		public abstract bool eject_finish (GLib.AsyncResult result) throws GLib.Error;
704
		public abstract weak GLib.Drive get_drive ();
705
		public abstract weak GLib.Icon get_icon ();
706 707
		public abstract weak string get_name ();
		public abstract weak GLib.File get_root ();
Jürg Billeter's avatar
Jürg Billeter committed
708
		public abstract void unmount (GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
709
		public abstract bool unmount_finish (GLib.AsyncResult result) throws GLib.Error;
710 711
		public signal void changed ();
	}
712 713
	public static delegate void AsyncReadyCallback (GLib.Object source_object, GLib.AsyncResult res, pointer user_data);
	public static delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes, pointer user_data);
714
	public static delegate bool FileReadMoreCallback (string file_contents, int64 file_size, pointer callback_data);
715 716 717
	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);
718 719 720 721 722 723 724 725 726 727
	public const string FILE_ATTRIBUTE_ACCESS_CAN_DELETE;
	public const string FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE;
	public const string FILE_ATTRIBUTE_ACCESS_CAN_READ;
	public const string FILE_ATTRIBUTE_ACCESS_CAN_RENAME;
	public const string FILE_ATTRIBUTE_ACCESS_CAN_TRASH;
	public const string FILE_ATTRIBUTE_ACCESS_CAN_WRITE;
	public const string FILE_ATTRIBUTE_DOS_IS_ARCHIVE;
	public const string FILE_ATTRIBUTE_DOS_IS_SYSTEM;
	public const string FILE_ATTRIBUTE_ETAG_VALUE;
	public const string FILE_ATTRIBUTE_FS_FREE;
Jürg Billeter's avatar
Jürg Billeter committed
728
	public const string FILE_ATTRIBUTE_FS_READONLY;
729 730 731
	public const string FILE_ATTRIBUTE_FS_SIZE;
	public const string FILE_ATTRIBUTE_FS_TYPE;
	public const string FILE_ATTRIBUTE_GVFS_BACKEND;
Jürg Billeter's avatar
Jürg Billeter committed
732 733
	public const string FILE_ATTRIBUTE_ID_FILE;
	public const string FILE_ATTRIBUTE_ID_FS;
734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826
	public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT;
	public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT;
	public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT;
	public const string FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI;
	public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE;
	public const string FILE_ATTRIBUTE_OWNER_GROUP;
	public const string FILE_ATTRIBUTE_OWNER_USER;
	public const string FILE_ATTRIBUTE_OWNER_USER_REAL;
	public const string FILE_ATTRIBUTE_STD_CONTENT_TYPE;
	public const string FILE_ATTRIBUTE_STD_DISPLAY_NAME;
	public const string FILE_ATTRIBUTE_STD_EDIT_NAME;
	public const string FILE_ATTRIBUTE_STD_FAST_CONTENT_TYPE;
	public const string FILE_ATTRIBUTE_STD_ICON;
	public const string FILE_ATTRIBUTE_STD_IS_BACKUP;
	public const string FILE_ATTRIBUTE_STD_IS_HIDDEN;
	public const string FILE_ATTRIBUTE_STD_IS_SYMLINK;
	public const string FILE_ATTRIBUTE_STD_IS_VIRTUAL;
	public const string FILE_ATTRIBUTE_STD_NAME;
	public const string FILE_ATTRIBUTE_STD_SIZE;
	public const string FILE_ATTRIBUTE_STD_SORT_ORDER;
	public const string FILE_ATTRIBUTE_STD_SYMLINK_TARGET;
	public const string FILE_ATTRIBUTE_STD_TARGET_URI;
	public const string FILE_ATTRIBUTE_STD_TYPE;
	public const string FILE_ATTRIBUTE_THUMBNAILING_FAILED;
	public const string FILE_ATTRIBUTE_THUMBNAIL_PATH;
	public const string FILE_ATTRIBUTE_TIME_ACCESS;
	public const string FILE_ATTRIBUTE_TIME_ACCESS_USEC;
	public const string FILE_ATTRIBUTE_TIME_CHANGED;
	public const string FILE_ATTRIBUTE_TIME_CHANGED_USEC;
	public const string FILE_ATTRIBUTE_TIME_CREATED;
	public const string FILE_ATTRIBUTE_TIME_CREATED_USEC;
	public const string FILE_ATTRIBUTE_TIME_MODIFIED;
	public const string FILE_ATTRIBUTE_TIME_MODIFIED_USEC;
	public const string FILE_ATTRIBUTE_UNIX_BLOCKS;
	public const string FILE_ATTRIBUTE_UNIX_BLOCK_SIZE;
	public const string FILE_ATTRIBUTE_UNIX_DEVICE;
	public const string FILE_ATTRIBUTE_UNIX_GID;
	public const string FILE_ATTRIBUTE_UNIX_INODE;
	public const string FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT;
	public const string FILE_ATTRIBUTE_UNIX_MODE;
	public const string FILE_ATTRIBUTE_UNIX_NLINK;
	public const string FILE_ATTRIBUTE_UNIX_RDEV;
	public const string FILE_ATTRIBUTE_UNIX_UID;
	public const string URI_RESERVED_CHARS_GENERIC_DELIMITERS;
	public const string URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS;
	[CCode (cname = "g_cancel_all_io_jobs")]
	public static void g_cancel_all_io_jobs ();
	[CCode (cname = "g_content_type_can_be_executable")]
	public static bool g_content_type_can_be_executable (string type);
	[CCode (cname = "g_content_type_equals")]
	public static bool g_content_type_equals (string type1, string type2);
	[CCode (cname = "g_content_type_get_description")]
	public static weak string g_content_type_get_description (string type);
	[CCode (cname = "g_content_type_get_icon")]
	public static weak GLib.Icon g_content_type_get_icon (string type);
	[CCode (cname = "g_content_type_get_mime_type")]
	public static weak string g_content_type_get_mime_type (string type);
	[NoArrayLength]
	[CCode (cname = "g_content_type_guess")]
	public static weak string g_content_type_guess (string filename, uchar[] data, ulong data_size, bool result_uncertain);
	[CCode (cname = "g_content_type_is_a")]
	public static bool g_content_type_is_a (string type, string supertype);
	[CCode (cname = "g_content_type_is_unknown")]
	public static bool g_content_type_is_unknown (string type);
	[CCode (cname = "g_content_types_get_registered")]
	public static weak GLib.List g_content_types_get_registered ();
	[CCode (cname = "g_format_file_size_for_display")]
	public static weak string g_format_file_size_for_display (int64 size);
	[CCode (cname = "g_io_error_from_errno")]
	public static GLib.IOErrorEnum g_io_error_from_errno (int err_no);
	[CCode (cname = "g_io_error_quark")]
	public static GLib.Quark g_io_error_quark ();
	[CCode (cname = "g_io_modules_ensure_loaded")]
	public static void g_io_modules_ensure_loaded (string directory);
	[CCode (cname = "g_mount_for_location")]
	public static void g_mount_for_location (GLib.File location, GLib.MountOperation mount_operation, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
	[CCode (cname = "g_mount_for_location_finish")]
	public static bool g_mount_for_location_finish (GLib.File location, GLib.AsyncResult result) throws GLib.Error;
	[CCode (cname = "g_pop_current_cancellable")]
	public static void g_pop_current_cancellable (GLib.Cancellable cancellable);
	[CCode (cname = "g_push_current_cancellable")]
	public static void g_push_current_cancellable (GLib.Cancellable cancellable);
	[CCode (cname = "g_schedule_io_job")]
	public static void g_schedule_io_job (GLib.IOJobFunc job_func, pointer user_data, GLib.DestroyNotify notify, int io_priority, GLib.Cancellable cancellable);
	[CCode (cname = "g_simple_async_report_error_in_idle")]
	public static void g_simple_async_report_error_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, pointer user_data, GLib.Quark domain, int code, string format);
	[CCode (cname = "g_string_append_uri_escaped")]
	public static weak GLib.String g_string_append_uri_escaped (GLib.String string, string unescaped, string reserved_chars_allowed, bool allow_utf8);
	[CCode (cname = "g_uri_escape_string")]
	public static weak string g_uri_escape_string (string unescaped, string reserved_chars_allowed, bool allow_utf8);
	[CCode (cname = "g_uri_get_scheme")]
	public static weak string g_uri_get_scheme (string uri);
	[CCode (cname = "g_uri_unescape_segment")]
Jürg Billeter's avatar
Jürg Billeter committed
827
	public static weak string g_uri_unescape_segment (string escaped_string, string escaped_string_end, string illegal_characters);
828 829
	[CCode (cname = "g_uri_unescape_string")]
	public static weak string g_uri_unescape_string (string escaped_string, string illegal_characters);
830
}