1 /* gio-2.0.vapi generated by lt-vapigen, do not modify. */
3 [CCode (cprefix = "G", lower_case_cprefix = "g_")]
5 [CCode (cheader_filename = "gio/gio.h")]
6 public class AppLaunchContext : GLib.Object {
7 [CCode (has_construct_function = false)]
8 public AppLaunchContext ();
9 public virtual unowned string get_display (GLib.AppInfo info, GLib.List files);
10 public virtual unowned string get_startup_notify_id (GLib.AppInfo info, GLib.List files);
11 public virtual void launch_failed (string startup_notify_id);
13 [CCode (cheader_filename = "gio/gio.h")]
14 public class BufferedInputStream : GLib.FilterInputStream {
15 [CCode (type = "GInputStream*", has_construct_function = false)]
16 public BufferedInputStream (GLib.InputStream base_stream);
17 public virtual ssize_t fill (ssize_t count, GLib.Cancellable? cancellable) throws GLib.Error;
18 public virtual async ssize_t fill_async (ssize_t count, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
19 public virtual ssize_t fill_finish (GLib.AsyncResult _result) throws GLib.Error;
20 public size_t get_available ();
21 public size_t get_buffer_size ();
22 public size_t peek (void* buffer, size_t offset, size_t count);
23 public void* peek_buffer (size_t count);
24 public int read_byte (GLib.Cancellable? cancellable) throws GLib.Error;
25 public void set_buffer_size (size_t size);
26 [CCode (type = "GInputStream*", has_construct_function = false)]
27 public BufferedInputStream.sized (GLib.InputStream base_stream, size_t size);
28 public uint buffer_size { get; set construct; }
30 [CCode (cheader_filename = "gio/gio.h")]
31 public class BufferedOutputStream : GLib.FilterOutputStream {
32 [CCode (type = "GOutputStream*", has_construct_function = false)]
33 public BufferedOutputStream (GLib.OutputStream base_stream);
34 public bool get_auto_grow ();
35 public size_t get_buffer_size ();
36 public void set_auto_grow (bool auto_grow);
37 public void set_buffer_size (size_t size);
38 [CCode (type = "GOutputStream*", has_construct_function = false)]
39 public BufferedOutputStream.sized (GLib.OutputStream base_stream, size_t size);
40 public bool auto_grow { get; set; }
41 public uint buffer_size { get; set construct; }
43 [CCode (cheader_filename = "gio/gio.h")]
44 public class Cancellable : GLib.Object {
45 [CCode (has_construct_function = false)]
46 public Cancellable ();
47 public void cancel ();
48 public ulong connect (GLib.Callback callback, void* data, GLib.DestroyNotify data_destroy_func);
49 public void disconnect (ulong handler_id);
50 public static unowned GLib.Cancellable get_current ();
52 public bool is_cancelled ();
53 public void make_pollfd (GLib.PollFD pollfd);
54 public void pop_current ();
55 public void push_current ();
57 public bool set_error_if_cancelled () throws GLib.Error;
58 public virtual signal void cancelled ();
60 [CCode (cheader_filename = "gio/gio.h")]
61 public class DataInputStream : GLib.BufferedInputStream {
62 [CCode (has_construct_function = false)]
63 public DataInputStream (GLib.InputStream base_stream);
64 public GLib.DataStreamByteOrder get_byte_order ();
65 public GLib.DataStreamNewlineType get_newline_type ();
66 public uchar read_byte (GLib.Cancellable? cancellable) throws GLib.Error;
67 public int16 read_int16 (GLib.Cancellable? cancellable) throws GLib.Error;
68 public int32 read_int32 (GLib.Cancellable? cancellable) throws GLib.Error;
69 public int64 read_int64 (GLib.Cancellable? cancellable) throws GLib.Error;
70 public unowned string? read_line (out size_t length, GLib.Cancellable? cancellable) throws GLib.Error;
71 public async unowned string read_line_async (int io_priority, GLib.Cancellable? cancellable, out size_t length) throws GLib.Error;
72 public unowned string read_line_finish (GLib.AsyncResult _result, out unowned size_t length) throws GLib.Error;
73 public uint16 read_uint16 (GLib.Cancellable? cancellable) throws GLib.Error;
74 public uint32 read_uint32 (GLib.Cancellable? cancellable) throws GLib.Error;
75 public uint64 read_uint64 (GLib.Cancellable? cancellable) throws GLib.Error;
76 public unowned string? read_until (string stop_chars, out size_t length, GLib.Cancellable? cancellable) throws GLib.Error;
77 public async unowned string read_until_async (string stop_chars, int io_priority, GLib.Cancellable? cancellable, out size_t length) throws GLib.Error;
78 public unowned string read_until_finish (GLib.AsyncResult _result, out unowned size_t length) throws GLib.Error;
79 public void set_byte_order (GLib.DataStreamByteOrder order);
80 public void set_newline_type (GLib.DataStreamNewlineType type);
81 public GLib.DataStreamByteOrder byte_order { get; set; }
82 public GLib.DataStreamNewlineType newline_type { get; set; }
84 [CCode (cheader_filename = "gio/gio.h")]
85 public class DataOutputStream : GLib.FilterOutputStream {
86 [CCode (has_construct_function = false)]
87 public DataOutputStream (GLib.OutputStream base_stream);
88 public GLib.DataStreamByteOrder get_byte_order ();
89 public bool put_byte (uchar data, GLib.Cancellable? cancellable) throws GLib.Error;
90 public bool put_int16 (int16 data, GLib.Cancellable? cancellable) throws GLib.Error;
91 public bool put_int32 (int32 data, GLib.Cancellable? cancellable) throws GLib.Error;
92 public bool put_int64 (int64 data, GLib.Cancellable? cancellable) throws GLib.Error;
93 public bool put_string (string str, GLib.Cancellable? cancellable) throws GLib.Error;
94 public bool put_uint16 (uint16 data, GLib.Cancellable? cancellable) throws GLib.Error;
95 public bool put_uint32 (uint32 data, GLib.Cancellable? cancellable) throws GLib.Error;
96 public bool put_uint64 (uint64 data, GLib.Cancellable? cancellable) throws GLib.Error;
97 public void set_byte_order (GLib.DataStreamByteOrder order);
98 public GLib.DataStreamByteOrder byte_order { get; set; }
100 [CCode (cheader_filename = "gio/gio.h")]
101 public class Emblem : GLib.Object, GLib.Icon {
102 [CCode (has_construct_function = false)]
103 public Emblem (GLib.Icon icon);
104 public unowned GLib.Icon get_icon ();
105 public GLib.EmblemOrigin get_origin ();
106 [CCode (has_construct_function = false)]
107 public Emblem.with_origin (GLib.Icon icon, GLib.EmblemOrigin origin);
108 public GLib.Object icon { get; construct; }
109 public GLib.EmblemOrigin origin { get; construct; }
112 [CCode (cheader_filename = "gio/gio.h")]
113 public class EmblemClass {
115 [CCode (cheader_filename = "gio/gio.h")]
116 public class EmblemedIcon : GLib.Object, GLib.Icon {
117 [CCode (type = "GIcon*", has_construct_function = false)]
118 public EmblemedIcon (GLib.Icon icon, GLib.Emblem emblem);
119 public void add_emblem (GLib.Emblem emblem);
120 public unowned GLib.List get_emblems ();
121 public unowned GLib.Icon get_icon ();
124 [CCode (cheader_filename = "gio/gio.h")]
125 public class EmblemedIconClass {
128 [CCode (cheader_filename = "gio/gio.h")]
129 public class FileAttributeInfo {
130 public GLib.FileAttributeInfoFlags flags;
131 public weak string name;
132 public GLib.FileAttributeType type;
135 [CCode (ref_function = "g_file_attribute_info_list_ref", unref_function = "g_file_attribute_info_list_unref", type_id = "G_TYPE_FILE_ATTRIBUTE_INFO_LIST", cheader_filename = "gio/gio.h")]
136 public class FileAttributeInfoList {
137 public weak GLib.FileAttributeInfo infos;
139 [CCode (has_construct_function = false)]
140 public FileAttributeInfoList ();
141 public void add (string name, GLib.FileAttributeType type, GLib.FileAttributeInfoFlags flags);
142 public unowned GLib.FileAttributeInfoList dup ();
143 public unowned GLib.FileAttributeInfo lookup (string name);
146 [CCode (ref_function = "g_file_attribute_matcher_ref", unref_function = "g_file_attribute_matcher_unref", cheader_filename = "gio/gio.h")]
147 public class FileAttributeMatcher {
148 [CCode (has_construct_function = false)]
149 public FileAttributeMatcher (string attributes);
150 public bool enumerate_namespace (string ns);
151 public unowned string enumerate_next ();
152 public bool matches (string attribute);
153 public bool matches_only (string attribute);
155 [CCode (cheader_filename = "gio/gio.h")]
156 public class FileEnumerator : GLib.Object {
157 public bool close (GLib.Cancellable? cancellable) throws GLib.Error;
158 public virtual async bool close_async (int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
159 public virtual bool close_finish (GLib.AsyncResult _result) throws GLib.Error;
161 public virtual bool close_fn (GLib.Cancellable? cancellable) throws GLib.Error;
162 public unowned GLib.File get_container ();
163 public bool has_pending ();
164 public bool is_closed ();
165 public virtual GLib.FileInfo next_file (GLib.Cancellable? cancellable) throws GLib.Error;
166 public virtual async GLib.List<GLib.FileInfo> next_files_async (int num_files, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
167 public virtual GLib.List<GLib.FileInfo> next_files_finish (GLib.AsyncResult _result) throws GLib.Error;
168 public void set_pending (bool pending);
169 public GLib.File container { construct; }
171 [CCode (cheader_filename = "gio/gio.h")]
172 public class FileIOStream : GLib.IOStream, GLib.Seekable {
174 public virtual bool can_seek ();
176 public virtual bool can_truncate ();
177 public virtual unowned string get_etag ();
178 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable) throws GLib.Error;
179 public virtual async unowned GLib.FileInfo query_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
180 public virtual unowned GLib.FileInfo query_info_finish (GLib.AsyncResult _result) throws GLib.Error;
182 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable) throws GLib.Error;
184 public virtual int64 tell ();
186 public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable) throws GLib.Error;
188 [CCode (cheader_filename = "gio/gio.h")]
189 public class FileIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
190 [CCode (type = "GIcon*", has_construct_function = false)]
191 public FileIcon (GLib.File file);
192 public unowned GLib.File get_file ();
193 public GLib.File file { get; construct; }
196 [CCode (cheader_filename = "gio/gio.h")]
197 public class FileIconClass {
199 [CCode (cheader_filename = "gio/gio.h")]
200 public class FileInfo : GLib.Object {
201 [CCode (has_construct_function = false)]
203 public void clear_status ();
204 public void copy_into (GLib.FileInfo dest_info);
205 public unowned GLib.FileInfo dup ();
206 public unowned string get_attribute_as_string (string attribute);
207 public bool get_attribute_boolean (string attribute);
208 public unowned string get_attribute_byte_string (string attribute);
209 public bool get_attribute_data (string attribute, GLib.FileAttributeType? type, void* value_pp, GLib.FileAttributeStatus? status);
210 public int32 get_attribute_int32 (string attribute);
211 public int64 get_attribute_int64 (string attribute);
212 public unowned GLib.Object get_attribute_object (string attribute);
213 public GLib.FileAttributeStatus get_attribute_status (string attribute);
214 public unowned string get_attribute_string (string attribute);
215 public unowned string get_attribute_stringv (string attribute);
216 public GLib.FileAttributeType get_attribute_type (string attribute);
217 public uint32 get_attribute_uint32 (string attribute);
218 public uint64 get_attribute_uint64 (string attribute);
219 public unowned string get_content_type ();
220 public unowned string get_display_name ();
221 public unowned string get_edit_name ();
222 public unowned string get_etag ();
223 public GLib.FileType get_file_type ();
224 public unowned GLib.Icon get_icon ();
225 public bool get_is_backup ();
226 public bool get_is_hidden ();
227 public bool get_is_symlink ();
228 public void get_modification_time (out GLib.TimeVal _result);
229 public unowned string get_name ();
230 public int64 get_size ();
231 public int32 get_sort_order ();
232 public unowned string get_symlink_target ();
233 public bool has_attribute (string attribute);
234 public bool has_namespace (string name_space);
235 public unowned string list_attributes (string name_space);
236 public void remove_attribute (string attribute);
237 public void set_attribute (string attribute, GLib.FileAttributeType type, void* value_p);
238 public void set_attribute_boolean (string attribute, bool attr_value);
239 public void set_attribute_byte_string (string attribute, string attr_value);
240 public void set_attribute_int32 (string attribute, int32 attr_value);
241 public void set_attribute_int64 (string attribute, int64 attr_value);
242 public void set_attribute_mask (GLib.FileAttributeMatcher mask);
243 public void set_attribute_object (string attribute, GLib.Object attr_value);
244 public bool set_attribute_status (string attribute, GLib.FileAttributeStatus status);
245 public void set_attribute_string (string attribute, string attr_value);
246 public void set_attribute_stringv (string attribute, out unowned string attr_value);
247 public void set_attribute_uint32 (string attribute, uint32 attr_value);
248 public void set_attribute_uint64 (string attribute, uint64 attr_value);
249 public void set_content_type (string content_type);
250 public void set_display_name (string display_name);
251 public void set_edit_name (string edit_name);
252 public void set_file_type (GLib.FileType type);
253 public void set_icon (GLib.Icon icon);
254 public void set_is_hidden (bool is_hidden);
255 public void set_is_symlink (bool is_symlink);
256 public void set_modification_time (GLib.TimeVal mtime);
257 public void set_name (string name);
258 public void set_size (int64 size);
259 public void set_sort_order (int32 sort_order);
260 public void set_symlink_target (string symlink_target);
261 public void unset_attribute_mask ();
264 [CCode (cheader_filename = "gio/gio.h")]
265 public class FileInfoClass {
267 [CCode (cheader_filename = "gio/gio.h")]
268 public class FileInputStream : GLib.InputStream, GLib.Seekable {
270 public virtual bool can_seek ();
271 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable) throws GLib.Error;
272 public virtual async unowned GLib.FileInfo query_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
273 public virtual unowned GLib.FileInfo query_info_finish (GLib.AsyncResult _result) throws GLib.Error;
275 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable) throws GLib.Error;
277 public virtual int64 tell ();
279 [CCode (cheader_filename = "gio/gio.h")]
280 public class FileMonitor : GLib.Object {
281 public virtual bool cancel ();
282 public void emit_event (GLib.File child, GLib.File other_file, GLib.FileMonitorEvent event_type);
283 public bool is_cancelled ();
284 public void set_rate_limit (int limit_msecs);
286 public bool cancelled { get; }
288 public int rate_limit { get; set; }
289 public virtual signal void changed (GLib.File file, GLib.File? other_file, GLib.FileMonitorEvent event_type);
291 [CCode (cheader_filename = "gio/gio.h")]
292 public class FileOutputStream : GLib.OutputStream, GLib.Seekable {
294 public virtual bool can_seek ();
296 public virtual bool can_truncate ();
297 public virtual unowned string get_etag ();
298 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable) throws GLib.Error;
299 public virtual async unowned GLib.FileInfo query_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
300 public virtual unowned GLib.FileInfo query_info_finish (GLib.AsyncResult _result) throws GLib.Error;
302 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable) throws GLib.Error;
304 public virtual int64 tell ();
306 public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable) throws GLib.Error;
308 [CCode (cheader_filename = "gio/gio.h")]
309 public class FilenameCompleter : GLib.Object {
310 [CCode (has_construct_function = false)]
311 public FilenameCompleter ();
312 public unowned string get_completion_suffix (string initial_text);
313 public unowned string get_completions (string initial_text);
314 public void set_dirs_only (bool dirs_only);
315 public virtual signal void got_completion_data ();
317 [CCode (cheader_filename = "gio/gio.h")]
318 public class FilterInputStream : GLib.InputStream {
319 public unowned GLib.InputStream get_base_stream ();
320 public bool get_close_base_stream ();
321 public void set_close_base_stream (bool close_base);
322 public GLib.InputStream base_stream { get; construct; }
323 public bool close_base_stream { get; construct; }
325 [CCode (cheader_filename = "gio/gio.h")]
326 public class FilterOutputStream : GLib.OutputStream {
327 public unowned GLib.OutputStream get_base_stream ();
328 public bool get_close_base_stream ();
329 public void set_close_base_stream (bool close_base);
330 public GLib.OutputStream base_stream { get; construct; }
331 public bool close_base_stream { get; construct; }
334 [CCode (cheader_filename = "gio/gio.h")]
335 public class IOExtension {
336 public unowned string get_name ();
337 public int get_priority ();
338 public unowned GLib.TypeClass ref_class ();
341 [CCode (cheader_filename = "gio/gio.h")]
342 public class IOExtensionPoint {
343 public unowned GLib.IOExtension get_extension_by_name (string name);
344 public unowned GLib.List get_extensions ();
345 public GLib.Type get_required_type ();
346 public static unowned GLib.IOExtension implement (string extension_point_name, GLib.Type type, string extension_name, int priority);
347 public static unowned GLib.IOExtensionPoint lookup (string name);
348 public static unowned GLib.IOExtensionPoint register (string name);
349 public void set_required_type (GLib.Type type);
351 [CCode (cheader_filename = "gio/gio.h")]
352 public class IOModule : GLib.TypeModule, GLib.TypePlugin {
353 [CCode (has_construct_function = false)]
354 public IOModule (string filename);
356 public void unload ();
359 [CCode (cheader_filename = "gio/gio.h")]
360 public class IOModuleClass {
363 [CCode (cheader_filename = "gio/gio.h")]
364 public class IOSchedulerJob {
365 public bool send_to_mainloop (GLib.SourceFunc func, GLib.DestroyNotify? notify);
366 public void send_to_mainloop_async (GLib.SourceFunc func, GLib.DestroyNotify? notify);
368 [CCode (cheader_filename = "gio/gio.h")]
369 public class IOStream : GLib.Object {
370 public void clear_pending ();
371 public bool close (GLib.Cancellable? cancellable) throws GLib.Error;
372 public virtual async bool close_async (int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
373 public virtual bool close_finish (GLib.AsyncResult _result) throws GLib.Error;
375 public virtual bool close_fn (GLib.Cancellable? cancellable) throws GLib.Error;
376 public virtual unowned GLib.InputStream get_input_stream ();
377 public virtual unowned GLib.OutputStream get_output_stream ();
378 public bool has_pending ();
379 public bool is_closed ();
380 public bool set_pending () throws GLib.Error;
382 public bool closed { get; set; }
383 public GLib.InputStream input_stream { get; }
384 public GLib.OutputStream output_stream { get; }
386 [CCode (cheader_filename = "gio/gio.h")]
387 public class InetAddress : GLib.Object {
388 [CCode (has_construct_function = false)]
389 public InetAddress.any (GLib.SocketFamily family);
390 [CCode (has_construct_function = false)]
391 public InetAddress.from_bytes (uchar bytes, GLib.SocketFamily family);
392 [CCode (has_construct_function = false)]
393 public InetAddress.from_string (string str);
394 public GLib.SocketFamily get_family ();
395 public bool get_is_any ();
396 public bool get_is_link_local ();
397 public bool get_is_loopback ();
398 public bool get_is_mc_global ();
399 public bool get_is_mc_link_local ();
400 public bool get_is_mc_node_local ();
401 public bool get_is_mc_org_local ();
402 public bool get_is_mc_site_local ();
403 public bool get_is_multicast ();
404 public bool get_is_site_local ();
405 public size_t get_native_size ();
406 [CCode (has_construct_function = false)]
407 public InetAddress.loopback (GLib.SocketFamily family);
408 public virtual uchar to_bytes ();
409 public virtual unowned string to_string ();
411 public void* bytes { get; construct; }
412 public GLib.SocketFamily family { get; construct; }
413 public bool is_any { get; }
414 public bool is_link_local { get; }
415 public bool is_loopback { get; }
416 public bool is_mc_global { get; }
417 public bool is_mc_link_local { get; }
418 public bool is_mc_node_local { get; }
419 public bool is_mc_org_local { get; }
420 public bool is_mc_site_local { get; }
421 public bool is_multicast { get; }
422 public bool is_site_local { get; }
424 [CCode (cheader_filename = "gio/gio.h")]
425 public class InetSocketAddress : GLib.SocketAddress, GLib.SocketConnectable {
426 [CCode (type = "GSocketAddress*", has_construct_function = false)]
427 public InetSocketAddress (GLib.InetAddress address, uint16 port);
428 public unowned GLib.InetAddress get_address ();
429 public uint16 get_port ();
430 public GLib.InetAddress address { get; construct; }
431 public uint port { get; construct; }
433 [CCode (cheader_filename = "gio/gio.h")]
434 public class InputStream : GLib.Object {
435 public void clear_pending ();
436 public bool close (GLib.Cancellable? cancellable) throws GLib.Error;
437 public virtual async bool close_async (int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
438 public virtual bool close_finish (GLib.AsyncResult _result) throws GLib.Error;
440 public virtual bool close_fn (GLib.Cancellable? cancellable) throws GLib.Error;
441 public bool has_pending ();
442 public bool is_closed ();
443 public ssize_t read (void* buffer, size_t count, GLib.Cancellable? cancellable) throws GLib.Error;
444 public bool read_all (void* buffer, size_t count, out size_t bytes_read, GLib.Cancellable? cancellable) throws GLib.Error;
445 public virtual async ssize_t read_async (void* buffer, size_t count, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
446 public virtual ssize_t read_finish (GLib.AsyncResult _result) throws GLib.Error;
448 public virtual ssize_t read_fn (void* buffer, size_t count, GLib.Cancellable? cancellable) throws GLib.Error;
449 public bool set_pending () throws GLib.Error;
450 public virtual ssize_t skip (size_t count, GLib.Cancellable? cancellable) throws GLib.Error;
451 public virtual async ssize_t skip_async (size_t count, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
452 public virtual ssize_t skip_finish (GLib.AsyncResult _result) throws GLib.Error;
455 [CCode (cheader_filename = "gio/gio.h")]
456 public class InputVector {
460 [CCode (cheader_filename = "gio/gio.h")]
461 public class MemoryInputStream : GLib.InputStream, GLib.Seekable {
462 [CCode (type = "GInputStream*", has_construct_function = false)]
463 public MemoryInputStream ();
464 public void add_data (void* data, ssize_t len, GLib.DestroyNotify? destroy);
465 [CCode (type = "GInputStream*", has_construct_function = false)]
466 public MemoryInputStream.from_data (void* data, ssize_t len, GLib.DestroyNotify? destroy);
468 [CCode (cheader_filename = "gio/gio.h")]
469 public class MemoryOutputStream : GLib.OutputStream, GLib.Seekable {
470 [CCode (type = "GOutputStream*", has_construct_function = false)]
471 public MemoryOutputStream (void* data, size_t len, GLib.ReallocFunc realloc_fn, GLib.DestroyNotify? destroy);
472 public void* get_data ();
473 public size_t get_data_size ();
474 public size_t get_size ();
476 [CCode (cheader_filename = "gio/gio.h")]
477 public class MountOperation : GLib.Object {
478 [CCode (has_construct_function = false)]
479 public MountOperation ();
480 public bool get_anonymous ();
481 public int get_choice ();
482 public unowned string get_domain ();
483 public unowned string get_password ();
484 public GLib.PasswordSave get_password_save ();
485 public unowned string get_username ();
486 public void set_anonymous (bool anonymous);
487 public void set_choice (int choice);
488 public void set_domain (string domain);
489 public void set_password (string password);
490 public void set_password_save (GLib.PasswordSave save);
491 public void set_username (string username);
492 public bool anonymous { get; set; }
493 public int choice { get; set; }
494 public string domain { get; set; }
495 public string password { get; set; }
496 public GLib.PasswordSave password_save { get; set; }
497 public string username { get; set; }
498 public virtual signal void aborted ();
499 public virtual signal void ask_password (string message, string default_user, string default_domain, GLib.AskPasswordFlags flags);
500 public virtual signal void ask_question (string message, string[] choices);
502 public virtual signal void reply (GLib.MountOperationResult result);
503 public virtual signal void show_processes (string message, GLib.Array processes, string[] choices);
505 [CCode (cheader_filename = "gio/gio.h")]
506 public class NativeVolumeMonitor : GLib.VolumeMonitor {
508 public virtual unowned GLib.Mount get_mount_for_mount_path (string mount_path, GLib.Cancellable? cancellable);
510 [CCode (cheader_filename = "gio/gio.h")]
511 public class NetworkAddress : GLib.Object, GLib.SocketConnectable {
512 [CCode (type = "GSocketConnectable*", has_construct_function = false)]
513 public NetworkAddress (string hostname, uint16 port);
514 public unowned string get_hostname ();
515 public uint16 get_port ();
516 public static unowned GLib.SocketConnectable parse (string host_and_port, uint16 default_port) throws GLib.Error;
517 public string hostname { get; construct; }
518 public uint port { get; construct; }
520 [CCode (cheader_filename = "gio/gio.h")]
521 public class NetworkService : GLib.Object, GLib.SocketConnectable {
522 [CCode (type = "GSocketConnectable*", has_construct_function = false)]
523 public NetworkService (string service, string protocol, string domain);
524 public unowned string get_domain ();
525 public unowned string get_protocol ();
526 public unowned string get_service ();
527 public string domain { get; construct; }
528 public string protocol { get; construct; }
529 public string service { get; construct; }
531 [CCode (cheader_filename = "gio/gio.h")]
532 public class OutputStream : GLib.Object {
533 public void clear_pending ();
534 public bool close (GLib.Cancellable? cancellable) throws GLib.Error;
535 public virtual async bool close_async (int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
536 public virtual bool close_finish (GLib.AsyncResult _result) throws GLib.Error;
538 public virtual bool close_fn (GLib.Cancellable? cancellable) throws GLib.Error;
539 public virtual bool flush (GLib.Cancellable? cancellable) throws GLib.Error;
540 public virtual async bool flush_async (int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
541 public virtual bool flush_finish (GLib.AsyncResult _result) throws GLib.Error;
542 public bool has_pending ();
543 public bool is_closed ();
544 public bool set_pending () throws GLib.Error;
545 public virtual ssize_t splice (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
546 public virtual async ssize_t splice_async (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
547 public virtual ssize_t splice_finish (GLib.AsyncResult _result) throws GLib.Error;
548 public ssize_t write (void* buffer, size_t count, GLib.Cancellable? cancellable) throws GLib.Error;
549 public bool write_all (void* buffer, size_t count, out size_t bytes_written, GLib.Cancellable? cancellable) throws GLib.Error;
550 public virtual async ssize_t write_async (void* buffer, size_t count, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
551 public virtual ssize_t write_finish (GLib.AsyncResult _result) throws GLib.Error;
553 public virtual ssize_t write_fn (void* buffer, size_t count, GLib.Cancellable? cancellable) throws GLib.Error;
556 [CCode (cheader_filename = "gio/gio.h")]
557 public class OutputVector {
561 [CCode (cheader_filename = "gio/gio.h")]
562 public class Resolver : GLib.Object {
563 public static GLib.Quark error_quark ();
564 public static void free_addresses (GLib.List addresses);
565 public static void free_targets (GLib.List targets);
566 public static unowned GLib.Resolver get_default ();
567 public virtual unowned string lookup_by_address (GLib.InetAddress address, GLib.Cancellable? cancellable) throws GLib.Error;
568 public virtual async unowned string lookup_by_address_async (GLib.InetAddress address, GLib.Cancellable? cancellable) throws GLib.Error;
569 public virtual unowned string lookup_by_address_finish (GLib.AsyncResult _result) throws GLib.Error;
570 public virtual unowned GLib.List lookup_by_name (string hostname, GLib.Cancellable? cancellable) throws GLib.Error;
571 public virtual async unowned GLib.List lookup_by_name_async (string hostname, GLib.Cancellable? cancellable) throws GLib.Error;
572 public virtual unowned GLib.List lookup_by_name_finish (GLib.AsyncResult _result) throws GLib.Error;
573 public virtual unowned GLib.List lookup_service (string service, string protocol, string domain, GLib.Cancellable? cancellable) throws GLib.Error;
574 public virtual async unowned GLib.List lookup_service_async (string service, string protocol, string domain, GLib.Cancellable? cancellable) throws GLib.Error;
575 public virtual unowned GLib.List lookup_service_finish (GLib.AsyncResult _result) throws GLib.Error;
576 public void set_default ();
578 [CCode (cheader_filename = "gio/gio.h")]
579 public class Settings : GLib.Object {
580 [CCode (has_construct_function = false)]
581 public Settings (string schema);
582 public void apply ();
583 public void destroy ();
584 [CCode (has_construct_function = false)]
585 public Settings.from_path (string path);
586 public void @get (...);
587 public bool get_delay_apply ();
588 public bool get_has_unapplied ();
589 public GLib.SettingsList get_list (string name);
590 public bool get_locked ();
591 public virtual GLib.Settings get_settings (string name);
592 public GLib.Variant get_value (string key);
593 public bool is_writable (string name);
594 public void @lock ();
595 public void revert ();
596 public void @set (...);
597 public void set_delay_apply (bool delay_apply);
598 public void set_value (string key, GLib.Variant value);
600 public GLib.SettingsBackend backend { owned get; construct; }
602 public string base_path { owned get; construct; }
603 public bool delay_apply { get; construct; }
604 public bool has_unapplied { get; }
606 public GLib.Object schema { owned get; construct; }
608 public string schema_name { owned get; construct; }
609 public virtual signal void changed (string key);
611 public virtual signal void changes (void* keys, int n_keys);
612 public virtual signal void destroyed ();
614 [CCode (cheader_filename = "gio/gio.h")]
615 public class SettingsBackend : GLib.Object {
616 public void changed_tree (string prefix, GLib.Tree tree, void* origin_tag);
617 public static unowned GLib.SettingsBackend get_default ();
618 public virtual bool get_writable (string name);
619 public virtual GLib.Variant read (string key, GLib.VariantType expected_type);
620 public void set_default ();
621 public virtual void subscribe (string name);
622 [CCode (type = "GTree*", has_construct_function = false)]
623 public SettingsBackend.tree ();
624 public virtual void unsubscribe (string name);
625 public virtual void write (string prefix, GLib.Tree values, void* origin_tag);
627 public virtual signal void changed (string prefix, string[] names, int names_len, void* origin_tag);
629 [CCode (cheader_filename = "gio/gio.h")]
630 public class SettingsList : GLib.Settings {
631 public string add (string prefix, int before);
632 public GLib.Settings @get (string id);
633 public string[] list ();
634 public bool move_item (string id, int new_index);
635 public void remove (string id);
637 [CCode (cheader_filename = "gio/gio.h")]
638 public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult {
639 [CCode (has_construct_function = false)]
640 public SimpleAsyncResult (GLib.Object source_object, GLib.AsyncReadyCallback callback, void* source_tag);
641 public void complete ();
642 public void complete_in_idle ();
643 [CCode (has_construct_function = false)]
644 public SimpleAsyncResult.error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
645 [CCode (has_construct_function = false)]
646 public SimpleAsyncResult.from_error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Error error);
647 public bool get_op_res_gboolean ();
648 public void* get_op_res_gpointer ();
649 public ssize_t get_op_res_gssize ();
650 public void* get_source_tag ();
651 public static bool is_valid (GLib.AsyncResult _result, GLib.Object source, void* source_tag);
652 public bool propagate_error () throws GLib.Error;
653 public void run_in_thread (GLib.SimpleAsyncThreadFunc func, int io_priority, GLib.Cancellable? cancellable);
654 public void set_error (GLib.Quark domain, int code, string format);
655 public void set_error_va (GLib.Quark domain, int code, string format, void* args);
656 public void set_from_error (GLib.Error error);
657 public void set_handle_cancellation (bool handle_cancellation);
658 public void set_op_res_gboolean (bool op_res);
659 public void set_op_res_gpointer (void* op_res, GLib.DestroyNotify destroy_op_res);
660 public void set_op_res_gssize (ssize_t op_res);
663 [CCode (cheader_filename = "gio/gio.h")]
664 public class SimpleAsyncResultClass {
666 [CCode (cheader_filename = "gio/gio.h")]
667 public class Socket : GLib.Object, GLib.Initable {
668 [CCode (has_construct_function = false)]
669 public Socket (GLib.SocketFamily family, GLib.SocketType type, GLib.SocketProtocol protocol) throws GLib.Error;
670 public unowned GLib.Socket accept (GLib.Cancellable? cancellable) throws GLib.Error;
671 public bool bind (GLib.SocketAddress address, bool allow_reuse) throws GLib.Error;
672 public bool check_connect_result () throws GLib.Error;
673 public bool close () throws GLib.Error;
674 public GLib.IOCondition condition_check (GLib.IOCondition condition);
675 public bool condition_wait (GLib.IOCondition condition, GLib.Cancellable? cancellable) throws GLib.Error;
676 public bool connect (GLib.SocketAddress address, GLib.Cancellable? cancellable) throws GLib.Error;
677 public unowned GLib.TimeoutSource create_source (GLib.IOCondition condition, GLib.Cancellable? cancellable);
678 [CCode (has_construct_function = false)]
679 public Socket.from_fd (int fd) throws GLib.Error;
680 public bool get_blocking ();
681 public GLib.SocketFamily get_family ();
682 public int get_fd ();
683 public bool get_keepalive ();
684 public int get_listen_backlog ();
685 public unowned GLib.SocketAddress get_local_address () throws GLib.Error;
686 public GLib.SocketProtocol get_protocol ();
687 public unowned GLib.SocketAddress get_remote_address () throws GLib.Error;
688 public GLib.SocketType get_socket_type ();
689 public bool is_closed ();
690 public bool is_connected ();
691 public bool listen () throws GLib.Error;
692 public ssize_t receive (string buffer, size_t size, GLib.Cancellable? cancellable) throws GLib.Error;
693 public ssize_t receive_from (out unowned GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable) throws GLib.Error;
694 public ssize_t receive_message (out unowned GLib.SocketAddress address, GLib.InputVector vectors, int num_vectors, out unowned GLib.SocketControlMessage messages, int num_messages, int flags, GLib.Cancellable? cancellable) throws GLib.Error;
695 public ssize_t send (string buffer, size_t size, GLib.Cancellable? cancellable) throws GLib.Error;
696 public ssize_t send_message (GLib.SocketAddress address, GLib.OutputVector vectors, int num_vectors, out unowned GLib.SocketControlMessage messages, int num_messages, int flags, GLib.Cancellable? cancellable) throws GLib.Error;
697 public ssize_t send_to (GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable) throws GLib.Error;
698 public void set_blocking (bool blocking);
699 public void set_keepalive (bool keepalive);
700 public void set_listen_backlog (int backlog);
701 public bool shutdown (bool shutdown_read, bool shutdown_write) throws GLib.Error;
702 public bool speaks_ipv4 ();
703 public bool blocking { get; set; }
704 public GLib.SocketFamily family { get; construct; }
705 public int fd { get; construct; }
706 public bool keepalive { get; set; }
707 public int listen_backlog { get; set; }
708 public GLib.SocketAddress local_address { get; }
709 public GLib.SocketProtocol protocol { get; construct; }
710 public GLib.SocketAddress remote_address { get; }
712 public GLib.SocketType type { get; construct; }
714 [CCode (cheader_filename = "gio/gio.h")]
715 public class SocketAddress : GLib.Object, GLib.SocketConnectable {
716 [CCode (has_construct_function = false)]
717 public SocketAddress.from_native (void* native, size_t len);
718 public virtual GLib.SocketFamily get_family ();
719 public virtual ssize_t get_native_size ();
720 public virtual bool to_native (void* dest, size_t destlen) throws GLib.Error;
721 public GLib.SocketFamily family { get; }
723 [CCode (cheader_filename = "gio/gio.h")]
724 public class SocketAddressEnumerator : GLib.Object {
725 public virtual unowned GLib.SocketAddress next (GLib.Cancellable? cancellable) throws GLib.Error;
726 public virtual async unowned GLib.SocketAddress next_async (GLib.Cancellable? cancellable) throws GLib.Error;
727 public virtual unowned GLib.SocketAddress next_finish (GLib.AsyncResult _result) throws GLib.Error;
729 [CCode (cheader_filename = "gio/gio.h")]
730 public class SocketClient : GLib.Object {
731 [CCode (has_construct_function = false)]
732 public SocketClient ();
733 public unowned GLib.SocketConnection connect (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable) throws GLib.Error;
734 public async unowned GLib.SocketConnection connect_async (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable) throws GLib.Error;
735 public unowned GLib.SocketConnection connect_finish (GLib.AsyncResult _result) throws GLib.Error;
736 public unowned GLib.SocketConnection connect_to_host (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable) throws GLib.Error;
737 public async unowned GLib.SocketConnection connect_to_host_async (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable) throws GLib.Error;
738 public unowned GLib.SocketConnection connect_to_host_finish (GLib.AsyncResult _result) throws GLib.Error;
739 public unowned GLib.SocketConnection connect_to_service (string domain, string service, GLib.Cancellable? cancellable) throws GLib.Error;
740 public async unowned GLib.SocketConnection connect_to_service_async (string domain, string service, GLib.Cancellable? cancellable) throws GLib.Error;
741 public unowned GLib.SocketConnection connect_to_service_finish (GLib.AsyncResult _result) throws GLib.Error;
742 public GLib.SocketFamily get_family ();
743 public unowned GLib.SocketAddress get_local_address ();
744 public GLib.SocketProtocol get_protocol ();
745 public GLib.SocketType get_socket_type ();
746 public void set_family (GLib.SocketFamily family);
747 public void set_local_address (GLib.SocketAddress address);
748 public void set_protocol (GLib.SocketProtocol protocol);
749 public void set_socket_type (GLib.SocketType type);
750 public GLib.SocketFamily family { get; set construct; }
751 public GLib.SocketAddress local_address { get; set construct; }
752 public GLib.SocketProtocol protocol { get; set construct; }
754 public GLib.SocketType type { get; set construct; }
756 [CCode (cheader_filename = "gio/gio.h")]
757 public class SocketConnection : GLib.IOStream {
758 public static unowned GLib.SocketConnection factory_create_connection (GLib.Socket socket);
759 public static GLib.Type factory_lookup_type (GLib.SocketFamily family, GLib.SocketType type, int protocol_id);
760 public static void factory_register_type (GLib.Type g_type, GLib.SocketFamily family, GLib.SocketType type, int protocol);
761 public unowned GLib.SocketAddress get_local_address () throws GLib.Error;
762 public unowned GLib.SocketAddress get_remote_address () throws GLib.Error;
763 public unowned GLib.Socket get_socket ();
764 public GLib.Socket socket { get; construct; }
766 [CCode (cheader_filename = "gio/gio.h")]
767 public class SocketControlMessage : GLib.Object {
768 public virtual unowned GLib.SocketControlMessage deserialize (int level, int type, size_t size, void* data);
769 public virtual int get_level ();
770 public int get_msg_type ();
771 public virtual size_t get_size ();
773 public virtual int get_type ();
774 public virtual void serialize (void* data);
776 [CCode (cheader_filename = "gio/gio.h")]
777 public class SocketListener : GLib.Object {
778 [CCode (has_construct_function = false)]
779 public SocketListener ();
780 public unowned GLib.SocketConnection accept (out unowned GLib.Object source_object, GLib.Cancellable? cancellable) throws GLib.Error;
781 public async unowned GLib.SocketConnection accept_async (GLib.Cancellable? cancellable, out unowned GLib.Object source_object) throws GLib.Error;
782 public unowned GLib.SocketConnection accept_finish (GLib.AsyncResult _result, out unowned GLib.Object source_object) throws GLib.Error;
783 public unowned GLib.Socket accept_socket (out unowned GLib.Object source_object, GLib.Cancellable? cancellable) throws GLib.Error;
784 public async unowned GLib.Socket accept_socket_async (GLib.Cancellable? cancellable, out unowned GLib.Object source_object) throws GLib.Error;
785 public unowned GLib.Socket accept_socket_finish (GLib.AsyncResult _result, out unowned GLib.Object source_object) throws GLib.Error;
786 public bool add_address (GLib.SocketAddress address, GLib.SocketType type, GLib.SocketProtocol protocol, GLib.Object? source_object, out unowned GLib.SocketAddress effective_address) throws GLib.Error;
787 public bool add_inet_port (uint16 port, GLib.Object? source_object) throws GLib.Error;
788 public bool add_socket (GLib.Socket socket, GLib.Object? source_object) throws GLib.Error;
790 public virtual void changed ();
791 public void close ();
792 public void set_backlog (int listen_backlog);
794 public int listen_backlog { get; set construct; }
796 [CCode (cheader_filename = "gio/gio.h")]
797 public class SocketService : GLib.SocketListener {
798 [CCode (has_construct_function = false)]
799 public SocketService ();
800 public bool is_active ();
801 public void start ();
803 public virtual signal bool incoming (GLib.SocketConnection connection, GLib.Object source_object);
806 [CCode (copy_function = "g_srv_target_copy", type_id = "G_TYPE_SRV_TARGET", cheader_filename = "gio/gio.h")]
807 public class SrvTarget {
808 [CCode (has_construct_function = false)]
809 public SrvTarget (string hostname, uint16 port, uint16 priority, uint16 weight);
810 public GLib.SrvTarget copy ();
811 public unowned string get_hostname ();
812 public uint16 get_port ();
813 public uint16 get_priority ();
814 public uint16 get_weight ();
815 public static unowned GLib.List list_sort (GLib.List targets);
817 [CCode (cheader_filename = "gio/gio.h")]
818 public class TcpConnection : GLib.SocketConnection {
819 public bool get_graceful_disconnect ();
820 public void set_graceful_disconnect (bool graceful_disconnect);
821 public bool graceful_disconnect { get; set; }
823 [CCode (cheader_filename = "gio/gio.h")]
824 public class ThemedIcon : GLib.Object, GLib.Icon {
825 [CCode (type = "GIcon*", has_construct_function = false)]
826 public ThemedIcon (string iconname);
827 public void append_name (string iconname);
828 [CCode (type = "GIcon*", has_construct_function = false)]
829 public ThemedIcon.from_names (string[] iconnames);
830 [CCode (array_length = false)]
831 public unowned string[] get_names ();
832 public void prepend_name (string iconname);
833 [CCode (type = "GIcon*", has_construct_function = false)]
834 public ThemedIcon.with_default_fallbacks (string iconname);
835 public string name { construct; }
836 [CCode (array_length = false, array_null_terminated = true)]
837 public string[] names { get; construct; }
839 public bool use_default_fallbacks { get; construct; }
842 [CCode (cheader_filename = "gio/gio.h")]
843 public class ThemedIconClass {
845 [CCode (cheader_filename = "gio/gio.h")]
846 public class ThreadedSocketService : GLib.SocketService {
847 [CCode (type = "GSocketService*", has_construct_function = false)]
848 public ThreadedSocketService (int max_threads);
850 public int max_threads { get; construct; }
851 public virtual signal bool run (GLib.SocketConnection connection, GLib.Object source_object);
853 [CCode (cheader_filename = "gio/gio.h")]
854 public class Vfs : GLib.Object {
856 public virtual void add_writable_namespaces (GLib.FileAttributeInfoList list);
857 public static unowned GLib.Vfs get_default ();
858 public virtual unowned GLib.File get_file_for_path (string path);
859 public virtual unowned GLib.File get_file_for_uri (string uri);
860 public static unowned GLib.Vfs get_local ();
861 public virtual unowned string get_supported_uri_schemes ();
862 public virtual bool is_active ();
864 public virtual void local_file_add_info (string filename, uint64 device, GLib.FileAttributeMatcher attribute_matcher, GLib.FileInfo info, GLib.Cancellable? cancellable, void* extra_data, GLib.DestroyNotify free_extra_data);
866 public virtual void local_file_moved (string source, string dest);
868 public virtual void local_file_removed (string filename);
870 public virtual bool local_file_set_attributes (string filename, GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
871 public virtual unowned GLib.File parse_name (string parse_name);
873 [CCode (cheader_filename = "gio/gio.h")]
874 public class VolumeMonitor : GLib.Object {
875 public virtual unowned GLib.Volume adopt_orphan_mount (GLib.Mount mount);
876 public static unowned GLib.VolumeMonitor @get ();
877 public virtual unowned GLib.List get_connected_drives ();
878 public virtual unowned GLib.Mount get_mount_for_uuid (string uuid);
879 public virtual unowned GLib.List get_mounts ();
880 public virtual unowned GLib.Volume get_volume_for_uuid (string uuid);
881 public virtual unowned GLib.List get_volumes ();
883 public virtual bool is_supported ();
884 public virtual signal void drive_changed (GLib.Drive drive);
885 public virtual signal void drive_connected (GLib.Drive drive);
886 public virtual signal void drive_disconnected (GLib.Drive drive);
887 public virtual signal void drive_eject_button (GLib.Drive drive);
888 public virtual signal void drive_stop_button (GLib.Drive drive);
889 public virtual signal void mount_added (GLib.Mount mount);
890 public virtual signal void mount_changed (GLib.Mount mount);
891 public virtual signal void mount_pre_unmount (GLib.Mount mount);
892 public virtual signal void mount_removed (GLib.Mount mount);
893 public virtual signal void volume_added (GLib.Volume volume);
894 public virtual signal void volume_changed (GLib.Volume volume);
895 public virtual signal void volume_removed (GLib.Volume volume);
897 [CCode (cheader_filename = "gio/gio.h")]
898 public interface AppInfo : GLib.Object {
899 public abstract bool add_supports_type (string content_type) throws GLib.Error;
900 public abstract bool can_delete ();
901 public abstract bool can_remove_supports_type ();
902 public static unowned GLib.AppInfo create_from_commandline (string commandline, string application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error;
903 public bool @delete ();
905 public abstract bool do_delete ();
906 public abstract unowned GLib.AppInfo dup ();
907 public abstract bool equal (GLib.AppInfo appinfo2);
908 public static unowned GLib.List get_all ();
909 public static unowned GLib.List get_all_for_type (string content_type);
910 public abstract unowned string get_commandline ();
911 public static unowned GLib.AppInfo get_default_for_type (string content_type, bool must_support_uris);
912 public static unowned GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
913 public abstract unowned string get_description ();
914 public abstract unowned string get_executable ();
915 public abstract unowned GLib.Icon get_icon ();
916 public abstract unowned string get_id ();
917 public abstract unowned string get_name ();
918 public abstract bool launch (GLib.List? files, GLib.AppLaunchContext? launch_context) throws GLib.Error;
919 public static bool launch_default_for_uri (string uri, GLib.AppLaunchContext? launch_context) throws GLib.Error;
920 public abstract bool launch_uris (GLib.List? uris, GLib.AppLaunchContext launch_context) throws GLib.Error;
921 public abstract bool remove_supports_type (string content_type) throws GLib.Error;
922 public static void reset_type_associations (string content_type);
923 public abstract bool set_as_default_for_extension (string extension) throws GLib.Error;
924 public abstract bool set_as_default_for_type (string content_type) throws GLib.Error;
925 public abstract bool should_show ();
926 public abstract bool supports_files ();
927 public abstract bool supports_uris ();
929 [CCode (cheader_filename = "gio/gio.h")]
930 public interface AsyncInitable : GLib.Object {
931 public abstract async bool init_async (int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
932 public abstract bool init_finish (GLib.AsyncResult res) throws GLib.Error;
933 public static async unowned GLib.Object new_async (GLib.Type object_type, int io_priority, GLib.Cancellable? cancellable, ...) throws GLib.Error;
934 public unowned GLib.Object new_finish (GLib.AsyncResult res) throws GLib.Error;
935 public static async void new_valist_async (GLib.Type object_type, string first_property_name, void* var_args, int io_priority, GLib.Cancellable? cancellable);
936 public static async void newv_async (GLib.Type object_type, uint n_parameters, GLib.Parameter parameters, int io_priority, GLib.Cancellable? cancellable);
938 [CCode (cheader_filename = "gio/gio.h")]
939 public interface AsyncResult : GLib.Object {
940 public abstract unowned GLib.Object get_source_object ();
941 public abstract void* get_user_data ();
943 [CCode (cheader_filename = "gio/gio.h")]
944 public interface Drive : GLib.Object {
945 public abstract bool can_eject ();
946 public abstract bool can_poll_for_media ();
947 public abstract bool can_start ();
948 public abstract bool can_start_degraded ();
949 public abstract bool can_stop ();
950 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
951 public abstract bool eject_finish (GLib.AsyncResult _result) throws GLib.Error;
952 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable) throws GLib.Error;
953 public abstract bool eject_with_operation_finish (GLib.AsyncResult _result) throws GLib.Error;
954 public abstract unowned string enumerate_identifiers ();
955 public abstract unowned GLib.Icon get_icon ();
956 public abstract unowned string get_identifier (string kind);
957 public abstract unowned string get_name ();
958 public abstract GLib.DriveStartStopType get_start_stop_type ();
959 public abstract unowned GLib.List get_volumes ();
960 public abstract bool has_media ();
961 public abstract bool has_volumes ();
962 public abstract bool is_media_check_automatic ();
963 public abstract bool is_media_removable ();
964 public abstract async bool poll_for_media (GLib.Cancellable? cancellable) throws GLib.Error;
965 public abstract bool poll_for_media_finish (GLib.AsyncResult _result) throws GLib.Error;
966 public abstract async bool start (GLib.DriveStartFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable) throws GLib.Error;
967 public abstract bool start_finish (GLib.AsyncResult _result) throws GLib.Error;
968 public abstract async bool stop (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable) throws GLib.Error;
969 public abstract bool stop_finish (GLib.AsyncResult _result) throws GLib.Error;
970 public signal void changed ();
971 public signal void disconnected ();
972 public signal void eject_button ();
973 public signal void stop_button ();
975 [CCode (cheader_filename = "gio/gio.h")]
976 public interface File : GLib.Object {
977 public abstract GLib.FileOutputStream append_to (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
978 public abstract async GLib.FileOutputStream append_to_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
979 public abstract GLib.FileOutputStream append_to_finish (GLib.AsyncResult res) throws GLib.Error;
980 public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable, GLib.FileProgressCallback? progress_callback) throws GLib.Error;
981 public abstract async bool copy_async (GLib.File destination, GLib.FileCopyFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.FileProgressCallback? progress_callback) throws GLib.Error;
982 public bool copy_attributes (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
983 public abstract bool copy_finish (GLib.AsyncResult res) throws GLib.Error;
984 public abstract GLib.FileOutputStream create (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
985 public abstract async GLib.FileOutputStream create_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
986 public abstract GLib.FileOutputStream create_finish (GLib.AsyncResult res) throws GLib.Error;
987 public abstract unowned GLib.FileIOStream create_readwrite (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
988 public abstract async unowned GLib.FileIOStream create_readwrite_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
989 public abstract unowned GLib.FileIOStream create_readwrite_finish (GLib.AsyncResult res) throws GLib.Error;
990 public bool @delete (GLib.Cancellable? cancellable) throws GLib.Error;
992 public abstract bool delete_file (GLib.Cancellable? cancellable) throws GLib.Error;
993 public abstract unowned GLib.File dup ();
994 public abstract async bool eject_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
995 public abstract bool eject_mountable_finish (GLib.AsyncResult _result) throws GLib.Error;
996 public abstract async bool eject_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable) throws GLib.Error;
997 public abstract bool eject_mountable_with_operation_finish (GLib.AsyncResult _result) throws GLib.Error;
998 public abstract GLib.FileEnumerator enumerate_children (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
999 public abstract async GLib.FileEnumerator enumerate_children_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
1000 public abstract GLib.FileEnumerator enumerate_children_finish (GLib.AsyncResult res) throws GLib.Error;
1001 public abstract bool equal (GLib.File file2);
1002 public abstract GLib.Mount find_enclosing_mount (GLib.Cancellable? cancellable) throws GLib.Error;
1003 public abstract async GLib.Mount find_enclosing_mount_async (int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
1004 public abstract GLib.Mount find_enclosing_mount_finish (GLib.AsyncResult res) throws GLib.Error;
1005 public abstract string? get_basename ();
1006 public GLib.File get_child (string name);
1007 public abstract GLib.File get_child_for_display_name (string display_name) throws GLib.Error;
1008 public abstract GLib.File? get_parent ();
1009 public abstract string get_parse_name ();
1010 public abstract string? get_path ();
1011 public abstract string? get_relative_path (GLib.File descendant);
1012 public abstract string get_uri ();
1013 public abstract string get_uri_scheme ();
1014 public bool has_prefix (GLib.File prefix);
1015 public abstract bool has_uri_scheme (string uri_scheme);
1016 public abstract uint hash ();
1017 public abstract bool is_native ();
1018 public bool load_contents (GLib.Cancellable? cancellable, out string contents, out size_t length, out string etag_out) throws GLib.Error;
1019 public async bool load_contents_async (GLib.Cancellable? cancellable, out string contents, out size_t length, out string etag_out) throws GLib.Error;
1020 public bool load_contents_finish (GLib.AsyncResult res, out string contents, out unowned size_t length, out string etag_out) throws GLib.Error;
1021 public async bool load_partial_contents_async (GLib.Cancellable? cancellable, GLib.FileReadMoreCallback read_more_callback, out string contents, out size_t length, out string etag_out) throws GLib.Error;
1022 public bool load_partial_contents_finish (GLib.AsyncResult res, out string contents, out unowned size_t length, out string etag_out) throws GLib.Error;
1023 public abstract bool make_directory (GLib.Cancellable? cancellable) throws GLib.Error;
1024 public bool make_directory_with_parents (GLib.Cancellable? cancellable) throws GLib.Error;
1025 public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable? cancellable) throws GLib.Error;
1026 public unowned GLib.FileMonitor monitor (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1027 public abstract async bool mount_enclosing_volume (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable) throws GLib.Error;
1028 public abstract bool mount_enclosing_volume_finish (GLib.AsyncResult _result) throws GLib.Error;
1029 public abstract async unowned GLib.File mount_mountable (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable) throws GLib.Error;
1030 public abstract unowned GLib.File mount_mountable_finish (GLib.AsyncResult _result) throws GLib.Error;
1031 public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable, GLib.FileProgressCallback? progress_callback) throws GLib.Error;
1032 public static GLib.File new_for_commandline_arg (string arg);
1033 public static GLib.File new_for_path (string path);
1034 public static GLib.File new_for_uri (string uri);
1035 public abstract unowned GLib.FileIOStream open_readwrite (GLib.Cancellable? cancellable) throws GLib.Error;
1036 public abstract async unowned GLib.FileIOStream open_readwrite_async (int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
1037 public abstract unowned GLib.FileIOStream open_readwrite_finish (GLib.AsyncResult res) throws GLib.Error;
1038 public static unowned GLib.File parse_name (string parse_name);
1039 public abstract async bool poll_mountable (GLib.Cancellable? cancellable) throws GLib.Error;
1040 public abstract bool poll_mountable_finish (GLib.AsyncResult _result) throws GLib.Error;
1042 public abstract bool prefix_matches (GLib.File file);
1043 public GLib.AppInfo query_default_handler (GLib.Cancellable? cancellable) throws GLib.Error;
1044 public bool query_exists (GLib.Cancellable? cancellable);
1045 public GLib.FileType query_file_type (GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable);
1046 public abstract unowned GLib.FileInfo query_filesystem_info (string attributes, GLib.Cancellable? cancellable) throws GLib.Error;
1047 public abstract async unowned GLib.FileInfo query_filesystem_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
1048 public abstract unowned GLib.FileInfo query_filesystem_info_finish (GLib.AsyncResult res) throws GLib.Error;
1049 public abstract GLib.FileInfo query_info (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1050 public abstract async GLib.FileInfo query_info_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
1051 public abstract GLib.FileInfo query_info_finish (GLib.AsyncResult res) throws GLib.Error;
1052 public abstract unowned GLib.FileAttributeInfoList query_settable_attributes (GLib.Cancellable? cancellable) throws GLib.Error;
1053 public abstract unowned GLib.FileAttributeInfoList query_writable_namespaces (GLib.Cancellable? cancellable) throws GLib.Error;
1054 public GLib.FileInputStream read (GLib.Cancellable? cancellable) throws GLib.Error;
1055 public abstract async GLib.FileInputStream read_async (int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
1056 public abstract GLib.FileInputStream read_finish (GLib.AsyncResult res) throws GLib.Error;
1058 public abstract unowned GLib.FileInputStream read_fn (GLib.Cancellable? cancellable) throws GLib.Error;
1059 public abstract GLib.FileOutputStream replace (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1060 public abstract async GLib.FileOutputStream replace_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
1061 public bool replace_contents (string contents, size_t length, string? etag, bool make_backup, GLib.FileCreateFlags flags, out string new_etag, GLib.Cancellable? cancellable) throws GLib.Error;
1062 public async bool replace_contents_async (string contents, size_t length, string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable, out string new_etag) throws GLib.Error;
1063 public bool replace_contents_finish (GLib.AsyncResult res, out string new_etag) throws GLib.Error;
1064 public abstract GLib.FileOutputStream replace_finish (GLib.AsyncResult res) throws GLib.Error;
1065 public abstract unowned GLib.FileIOStream replace_readwrite (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1066 public abstract async unowned GLib.FileIOStream replace_readwrite_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
1067 public abstract unowned GLib.FileIOStream replace_readwrite_finish (GLib.AsyncResult res) throws GLib.Error;
1068 public abstract GLib.File resolve_relative_path (string relative_path);
1069 public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, void* value_p, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1070 public bool set_attribute_byte_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1071 public bool set_attribute_int32 (string attribute, int32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1072 public bool set_attribute_int64 (string attribute, int64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1073 public bool set_attribute_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1074 public bool set_attribute_uint32 (string attribute, uint32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1075 public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1076 public abstract async bool set_attributes_async (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable? cancellable, out unowned GLib.FileInfo info_out) throws GLib.Error;
1077 public abstract bool set_attributes_finish (GLib.AsyncResult _result, out unowned GLib.FileInfo info) throws GLib.Error;
1078 public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1079 public abstract unowned GLib.File set_display_name (string display_name, GLib.Cancellable? cancellable) throws GLib.Error;
1080 public abstract async unowned GLib.File set_display_name_async (string display_name, int io_priority, GLib.Cancellable? cancellable) throws GLib.Error;
1081 public abstract unowned GLib.File set_display_name_finish (GLib.AsyncResult res) throws GLib.Error;
1082 public abstract async bool start_mountable (GLib.DriveStartFlags flags, GLib.MountOperation start_operation, GLib.Cancellable? cancellable) throws GLib.Error;
1083 public abstract bool start_mountable_finish (GLib.AsyncResult _result) throws GLib.Error;
1084 public abstract async bool stop_mountable (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable) throws GLib.Error;
1085 public abstract bool stop_mountable_finish (GLib.AsyncResult _result) throws GLib.Error;
1086 public bool supports_thread_contexts ();
1087 public abstract bool trash (GLib.Cancellable? cancellable) throws GLib.Error;
1088 public abstract async bool unmount_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1089 public abstract bool unmount_mountable_finish (GLib.AsyncResult _result) throws GLib.Error;
1090 public abstract async bool unmount_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable) throws GLib.Error;
1091 public abstract bool unmount_mountable_with_operation_finish (GLib.AsyncResult _result) throws GLib.Error;
1093 [CCode (cheader_filename = "gio/gio.h")]
1094 public interface Icon : GLib.Object {
1095 public abstract bool equal (GLib.Icon icon2);
1097 public abstract unowned GLib.Icon from_tokens (string tokens, int num_tokens, int version) throws GLib.Error;
1098 public abstract uint hash (void* icon);
1099 public static unowned GLib.Icon new_for_string (string str) throws GLib.Error;
1100 public unowned string to_string ();
1102 public abstract bool to_tokens (GLib.PtrArray tokens, int out_version);
1104 [CCode (cheader_filename = "gio/gio.h")]
1105 public interface Initable : GLib.Object {
1106 public abstract bool init (GLib.Cancellable? cancellable) throws GLib.Error;
1107 public static void* @new (GLib.Type object_type, GLib.Cancellable? cancellable, ...) throws GLib.Error;
1108 public static unowned GLib.Object new_valist (GLib.Type object_type, string first_property_name, void* var_args, GLib.Cancellable? cancellable) throws GLib.Error;
1109 public static void* newv (GLib.Type object_type, uint n_parameters, GLib.Parameter parameters, GLib.Cancellable? cancellable) throws GLib.Error;
1111 [CCode (cheader_filename = "gio/gio.h")]
1112 public interface LoadableIcon : GLib.Icon, GLib.Object {
1113 public abstract unowned GLib.InputStream load (int size, out unowned string? type, GLib.Cancellable? cancellable) throws GLib.Error;
1114 public abstract async unowned GLib.InputStream load_async (int size, GLib.Cancellable? cancellable, out unowned string? type) throws GLib.Error;
1115 public abstract unowned GLib.InputStream load_finish (GLib.AsyncResult res, out unowned string type) throws GLib.Error;
1117 [CCode (cheader_filename = "gio/gio.h")]
1118 public interface Mount : GLib.Object {
1119 public abstract bool can_eject ();
1120 public abstract bool can_unmount ();
1121 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1122 public abstract bool eject_finish (GLib.AsyncResult _result) throws GLib.Error;
1123 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable) throws GLib.Error;
1124 public abstract bool eject_with_operation_finish (GLib.AsyncResult _result) throws GLib.Error;
1125 public abstract unowned GLib.Drive get_drive ();
1126 public abstract unowned GLib.Icon get_icon ();
1127 public abstract unowned string get_name ();
1128 public abstract unowned GLib.File get_root ();
1129 public abstract unowned string get_uuid ();
1130 public abstract unowned GLib.Volume get_volume ();
1131 public abstract async unowned string guess_content_type (bool force_rescan, GLib.Cancellable? cancellable) throws GLib.Error;
1132 public abstract unowned string guess_content_type_finish (GLib.AsyncResult _result) throws GLib.Error;
1133 public abstract unowned string guess_content_type_sync (bool force_rescan, GLib.Cancellable? cancellable) throws GLib.Error;
1134 public bool is_shadowed ();
1135 public abstract async bool remount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable) throws GLib.Error;
1136 public abstract bool remount_finish (GLib.AsyncResult _result) throws GLib.Error;
1137 public void shadow ();
1138 public abstract async bool unmount (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1139 public abstract bool unmount_finish (GLib.AsyncResult _result) throws GLib.Error;
1140 public abstract async bool unmount_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable) throws GLib.Error;
1141 public abstract bool unmount_with_operation_finish (GLib.AsyncResult _result) throws GLib.Error;
1142 public void unshadow ();
1143 public signal void changed ();
1144 public signal void pre_unmount ();
1145 public signal void unmounted ();
1147 [CCode (cheader_filename = "gio/gio.h")]
1148 public interface Seekable : GLib.Object {
1149 public abstract bool can_seek ();
1150 public abstract bool can_truncate ();
1151 public abstract bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable) throws GLib.Error;
1152 public abstract int64 tell ();
1153 [CCode (vfunc_name = "truncate_fn")]
1154 public abstract bool truncate (int64 offset, GLib.Cancellable? cancellable) throws GLib.Error;
1156 [CCode (cheader_filename = "gio/gio.h")]
1157 public interface SocketConnectable : GLib.Object {
1158 public abstract unowned GLib.SocketAddressEnumerator enumerate ();
1160 [CCode (cheader_filename = "gio/gio.h")]
1161 public interface Volume : GLib.Object {
1162 public abstract bool can_eject ();
1163 public abstract bool can_mount ();
1164 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
1165 public abstract bool eject_finish (GLib.AsyncResult _result) throws GLib.Error;
1166 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable) throws GLib.Error;
1167 public abstract bool eject_with_operation_finish (GLib.AsyncResult _result) throws GLib.Error;
1168 public abstract unowned string enumerate_identifiers ();
1169 public abstract unowned GLib.File get_activation_root ();
1170 public abstract unowned GLib.Drive get_drive ();
1171 public abstract unowned GLib.Icon get_icon ();
1172 public abstract unowned string get_identifier (string kind);
1173 public abstract unowned GLib.Mount get_mount ();
1174 public abstract unowned string get_name ();
1175 public abstract unowned string get_uuid ();
1176 public async bool mount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable) throws GLib.Error;
1177 public abstract bool mount_finish (GLib.AsyncResult _result) throws GLib.Error;
1179 public abstract void mount_fn (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
1180 public abstract bool should_automount ();
1181 public signal void changed ();
1182 public signal void removed ();
1184 [CCode (cprefix = "G_APP_INFO_CREATE_", cheader_filename = "gio/gio.h")]
1186 public enum AppInfoCreateFlags {
1191 [CCode (cprefix = "G_ASK_PASSWORD_", cheader_filename = "gio/gio.h")]
1193 public enum AskPasswordFlags {
1200 [CCode (cprefix = "G_DATA_STREAM_BYTE_ORDER_", cheader_filename = "gio/gio.h")]
1201 public enum DataStreamByteOrder {
1206 [CCode (cprefix = "G_DATA_STREAM_NEWLINE_TYPE_", cheader_filename = "gio/gio.h")]
1207 public enum DataStreamNewlineType {
1213 [CCode (cprefix = "G_DRIVE_START_", cheader_filename = "gio/gio.h")]
1214 public enum DriveStartFlags {
1217 [CCode (cprefix = "G_DRIVE_START_STOP_TYPE_", cheader_filename = "gio/gio.h")]
1218 public enum DriveStartStopType {
1225 [CCode (cprefix = "G_EMBLEM_ORIGIN_", cheader_filename = "gio/gio.h")]
1226 public enum EmblemOrigin {
1232 [CCode (cprefix = "G_FILE_ATTRIBUTE_INFO_", cheader_filename = "gio/gio.h")]
1234 public enum FileAttributeInfoFlags {
1239 [CCode (cprefix = "G_FILE_ATTRIBUTE_STATUS_", cheader_filename = "gio/gio.h")]
1240 public enum FileAttributeStatus {
1245 [CCode (cprefix = "G_FILE_ATTRIBUTE_TYPE_", cheader_filename = "gio/gio.h")]
1246 public enum FileAttributeType {
1258 [CCode (cprefix = "G_FILE_COPY_", cheader_filename = "gio/gio.h")]
1260 public enum FileCopyFlags {
1266 NO_FALLBACK_FOR_MOVE,
1267 TARGET_DEFAULT_PERMS
1269 [CCode (cprefix = "G_FILE_CREATE_", cheader_filename = "gio/gio.h")]
1271 public enum FileCreateFlags {
1276 [CCode (cprefix = "G_FILE_MONITOR_EVENT_", cheader_filename = "gio/gio.h")]
1277 public enum FileMonitorEvent {
1286 [CCode (cprefix = "G_FILE_MONITOR_", cheader_filename = "gio/gio.h")]
1288 public enum FileMonitorFlags {
1292 [CCode (cprefix = "G_FILE_QUERY_INFO_", cheader_filename = "gio/gio.h")]
1294 public enum FileQueryInfoFlags {
1298 [CCode (cprefix = "G_FILE_TYPE_", cheader_filename = "gio/gio.h")]
1299 public enum FileType {
1308 [CCode (cprefix = "G_FILESYSTEM_PREVIEW_TYPE_", cheader_filename = "gio/gio.h")]
1309 public enum FilesystemPreviewType {
1314 [CCode (cprefix = "G_MOUNT_MOUNT_", cheader_filename = "gio/gio.h")]
1315 public enum MountMountFlags {
1318 [CCode (cprefix = "G_MOUNT_OPERATION_", cheader_filename = "gio/gio.h")]
1319 public enum MountOperationResult {
1324 [CCode (cprefix = "G_MOUNT_UNMOUNT_", cheader_filename = "gio/gio.h")]
1326 public enum MountUnmountFlags {
1330 [CCode (cprefix = "G_OUTPUT_STREAM_SPLICE_", cheader_filename = "gio/gio.h")]
1332 public enum OutputStreamSpliceFlags {
1337 [CCode (cprefix = "G_PASSWORD_SAVE_", cheader_filename = "gio/gio.h")]
1338 public enum PasswordSave {
1343 [CCode (cprefix = "G_RESOLVER_ERROR_", cheader_filename = "gio/gio.h")]
1344 public enum ResolverError {
1349 [CCode (cprefix = "G_SOCKET_FAMILY_", cheader_filename = "gio/gio.h")]
1350 public enum SocketFamily {
1356 [CCode (cprefix = "G_SOCKET_MSG_", cheader_filename = "gio/gio.h")]
1357 public enum SocketMsgFlags {
1363 [CCode (cprefix = "G_SOCKET_PROTOCOL_", cheader_filename = "gio/gio.h")]
1364 public enum SocketProtocol {
1371 [CCode (cprefix = "G_SOCKET_TYPE_", cheader_filename = "gio/gio.h")]
1372 public enum SocketType {
1378 [CCode (cprefix = "G_IO_ERROR_", cheader_filename = "gio/gio.h")]
1379 public errordomain IOError {
1411 TOO_MANY_OPEN_FILES,
1415 [CCode (cheader_filename = "gio/gio.h")]
1416 public delegate void AsyncReadyCallback (GLib.Object? source_object, GLib.AsyncResult res);
1417 [CCode (cheader_filename = "gio/gio.h")]
1418 public delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes);
1419 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
1420 public delegate bool FileReadMoreCallback (string file_contents, int64 file_size, void* callback_data);
1421 [CCode (cheader_filename = "gio/gio.h")]
1422 public delegate bool IOSchedulerJobFunc (GLib.IOSchedulerJob job, GLib.Cancellable cancellable);
1423 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
1424 public delegate void* ReallocFunc (void* data, size_t size);
1425 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
1426 public delegate void SimpleAsyncThreadFunc (GLib.SimpleAsyncResult res, GLib.Object object, GLib.Cancellable cancellable);
1427 [CCode (cheader_filename = "gio/gio.h")]
1428 public delegate bool SocketSourceFunc (GLib.Socket socket, GLib.IOCondition condition);
1429 [CCode (cheader_filename = "gio/gio.h")]
1430 public const string FILE_ATTRIBUTE_ACCESS_CAN_DELETE;
1431 [CCode (cheader_filename = "gio/gio.h")]
1432 public const string FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE;
1433 [CCode (cheader_filename = "gio/gio.h")]
1434 public const string FILE_ATTRIBUTE_ACCESS_CAN_READ;
1435 [CCode (cheader_filename = "gio/gio.h")]
1436 public const string FILE_ATTRIBUTE_ACCESS_CAN_RENAME;
1437 [CCode (cheader_filename = "gio/gio.h")]
1438 public const string FILE_ATTRIBUTE_ACCESS_CAN_TRASH;
1439 [CCode (cheader_filename = "gio/gio.h")]
1440 public const string FILE_ATTRIBUTE_ACCESS_CAN_WRITE;
1441 [CCode (cheader_filename = "gio/gio.h")]
1442 public const string FILE_ATTRIBUTE_DOS_IS_ARCHIVE;
1443 [CCode (cheader_filename = "gio/gio.h")]
1444 public const string FILE_ATTRIBUTE_DOS_IS_SYSTEM;
1445 [CCode (cheader_filename = "gio/gio.h")]
1446 public const string FILE_ATTRIBUTE_ETAG_VALUE;
1447 [CCode (cheader_filename = "gio/gio.h")]
1448 public const string FILE_ATTRIBUTE_FILESYSTEM_FREE;
1449 [CCode (cheader_filename = "gio/gio.h")]
1450 public const string FILE_ATTRIBUTE_FILESYSTEM_READONLY;
1451 [CCode (cheader_filename = "gio/gio.h")]
1452 public const string FILE_ATTRIBUTE_FILESYSTEM_SIZE;
1453 [CCode (cheader_filename = "gio/gio.h")]
1454 public const string FILE_ATTRIBUTE_FILESYSTEM_TYPE;
1455 [CCode (cheader_filename = "gio/gio.h")]
1456 public const string FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW;
1457 [CCode (cheader_filename = "gio/gio.h")]
1458 public const string FILE_ATTRIBUTE_GVFS_BACKEND;
1459 [CCode (cheader_filename = "gio/gio.h")]
1460 public const string FILE_ATTRIBUTE_ID_FILE;
1461 [CCode (cheader_filename = "gio/gio.h")]
1462 public const string FILE_ATTRIBUTE_ID_FILESYSTEM;
1463 [CCode (cheader_filename = "gio/gio.h")]
1464 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT;
1465 [CCode (cheader_filename = "gio/gio.h")]
1466 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT;
1467 [CCode (cheader_filename = "gio/gio.h")]
1468 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL;
1469 [CCode (cheader_filename = "gio/gio.h")]
1470 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START;
1471 [CCode (cheader_filename = "gio/gio.h")]
1472 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED;
1473 [CCode (cheader_filename = "gio/gio.h")]
1474 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP;
1475 [CCode (cheader_filename = "gio/gio.h")]
1476 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT;
1477 [CCode (cheader_filename = "gio/gio.h")]
1478 public const string FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI;
1479 [CCode (cheader_filename = "gio/gio.h")]
1480 public const string FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC;
1481 [CCode (cheader_filename = "gio/gio.h")]
1482 public const string FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE;
1483 [CCode (cheader_filename = "gio/gio.h")]
1484 public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE;
1485 [CCode (cheader_filename = "gio/gio.h")]
1486 public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE;
1487 [CCode (cheader_filename = "gio/gio.h")]
1488 public const string FILE_ATTRIBUTE_OWNER_GROUP;
1489 [CCode (cheader_filename = "gio/gio.h")]
1490 public const string FILE_ATTRIBUTE_OWNER_USER;
1491 [CCode (cheader_filename = "gio/gio.h")]
1492 public const string FILE_ATTRIBUTE_OWNER_USER_REAL;
1493 [CCode (cheader_filename = "gio/gio.h")]
1494 public const string FILE_ATTRIBUTE_PREVIEW_ICON;
1495 [CCode (cheader_filename = "gio/gio.h")]
1496 public const string FILE_ATTRIBUTE_SELINUX_CONTEXT;
1497 [CCode (cheader_filename = "gio/gio.h")]
1498 public const string FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE;
1499 [CCode (cheader_filename = "gio/gio.h")]
1500 public const string FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE;
1501 [CCode (cheader_filename = "gio/gio.h")]
1502 public const string FILE_ATTRIBUTE_STANDARD_COPY_NAME;
1503 [CCode (cheader_filename = "gio/gio.h")]
1504 public const string FILE_ATTRIBUTE_STANDARD_DESCRIPTION;
1505 [CCode (cheader_filename = "gio/gio.h")]
1506 public const string FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME;
1507 [CCode (cheader_filename = "gio/gio.h")]
1508 public const string FILE_ATTRIBUTE_STANDARD_EDIT_NAME;
1509 [CCode (cheader_filename = "gio/gio.h")]
1510 public const string FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE;
1511 [CCode (cheader_filename = "gio/gio.h")]
1512 public const string FILE_ATTRIBUTE_STANDARD_ICON;
1513 [CCode (cheader_filename = "gio/gio.h")]
1514 public const string FILE_ATTRIBUTE_STANDARD_IS_BACKUP;
1515 [CCode (cheader_filename = "gio/gio.h")]
1516 public const string FILE_ATTRIBUTE_STANDARD_IS_HIDDEN;
1517 [CCode (cheader_filename = "gio/gio.h")]
1518 public const string FILE_ATTRIBUTE_STANDARD_IS_SYMLINK;
1519 [CCode (cheader_filename = "gio/gio.h")]
1520 public const string FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL;
1521 [CCode (cheader_filename = "gio/gio.h")]
1522 public const string FILE_ATTRIBUTE_STANDARD_NAME;
1523 [CCode (cheader_filename = "gio/gio.h")]
1524 public const string FILE_ATTRIBUTE_STANDARD_SIZE;
1525 [CCode (cheader_filename = "gio/gio.h")]
1526 public const string FILE_ATTRIBUTE_STANDARD_SORT_ORDER;
1527 [CCode (cheader_filename = "gio/gio.h")]
1528 public const string FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET;
1529 [CCode (cheader_filename = "gio/gio.h")]
1530 public const string FILE_ATTRIBUTE_STANDARD_TARGET_URI;
1531 [CCode (cheader_filename = "gio/gio.h")]
1532 public const string FILE_ATTRIBUTE_STANDARD_TYPE;
1533 [CCode (cheader_filename = "gio/gio.h")]
1534 public const string FILE_ATTRIBUTE_THUMBNAILING_FAILED;
1535 [CCode (cheader_filename = "gio/gio.h")]
1536 public const string FILE_ATTRIBUTE_THUMBNAIL_PATH;
1537 [CCode (cheader_filename = "gio/gio.h")]
1538 public const string FILE_ATTRIBUTE_TIME_ACCESS;
1539 [CCode (cheader_filename = "gio/gio.h")]
1540 public const string FILE_ATTRIBUTE_TIME_ACCESS_USEC;
1541 [CCode (cheader_filename = "gio/gio.h")]
1542 public const string FILE_ATTRIBUTE_TIME_CHANGED;
1543 [CCode (cheader_filename = "gio/gio.h")]
1544 public const string FILE_ATTRIBUTE_TIME_CHANGED_USEC;
1545 [CCode (cheader_filename = "gio/gio.h")]
1546 public const string FILE_ATTRIBUTE_TIME_CREATED;
1547 [CCode (cheader_filename = "gio/gio.h")]
1548 public const string FILE_ATTRIBUTE_TIME_CREATED_USEC;
1549 [CCode (cheader_filename = "gio/gio.h")]
1550 public const string FILE_ATTRIBUTE_TIME_MODIFIED;
1551 [CCode (cheader_filename = "gio/gio.h")]
1552 public const string FILE_ATTRIBUTE_TIME_MODIFIED_USEC;
1553 [CCode (cheader_filename = "gio/gio.h")]
1554 public const string FILE_ATTRIBUTE_TRASH_ITEM_COUNT;
1555 [CCode (cheader_filename = "gio/gio.h")]
1556 public const string FILE_ATTRIBUTE_UNIX_BLOCKS;
1557 [CCode (cheader_filename = "gio/gio.h")]
1558 public const string FILE_ATTRIBUTE_UNIX_BLOCK_SIZE;
1559 [CCode (cheader_filename = "gio/gio.h")]
1560 public const string FILE_ATTRIBUTE_UNIX_DEVICE;
1561 [CCode (cheader_filename = "gio/gio.h")]
1562 public const string FILE_ATTRIBUTE_UNIX_GID;
1563 [CCode (cheader_filename = "gio/gio.h")]
1564 public const string FILE_ATTRIBUTE_UNIX_INODE;
1565 [CCode (cheader_filename = "gio/gio.h")]
1566 public const string FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT;
1567 [CCode (cheader_filename = "gio/gio.h")]
1568 public const string FILE_ATTRIBUTE_UNIX_MODE;
1569 [CCode (cheader_filename = "gio/gio.h")]
1570 public const string FILE_ATTRIBUTE_UNIX_NLINK;
1571 [CCode (cheader_filename = "gio/gio.h")]
1572 public const string FILE_ATTRIBUTE_UNIX_RDEV;
1573 [CCode (cheader_filename = "gio/gio.h")]
1574 public const string FILE_ATTRIBUTE_UNIX_UID;
1575 [CCode (cheader_filename = "gio/gio.h")]
1576 public const string NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME;
1577 [CCode (cheader_filename = "gio/gio.h")]
1578 public const string SETTINGS_BACKEND_EXTENSION_POINT_NAME;
1579 [CCode (cheader_filename = "gio/gio.h")]
1580 public const string VFS_EXTENSION_POINT_NAME;
1581 [CCode (cheader_filename = "gio/gio.h")]
1582 public const string VOLUME_IDENTIFIER_KIND_HAL_UDI;
1583 [CCode (cheader_filename = "gio/gio.h")]
1584 public const string VOLUME_IDENTIFIER_KIND_LABEL;
1585 [CCode (cheader_filename = "gio/gio.h")]
1586 public const string VOLUME_IDENTIFIER_KIND_NFS_MOUNT;
1587 [CCode (cheader_filename = "gio/gio.h")]
1588 public const string VOLUME_IDENTIFIER_KIND_UNIX_DEVICE;
1589 [CCode (cheader_filename = "gio/gio.h")]
1590 public const string VOLUME_IDENTIFIER_KIND_UUID;
1591 [CCode (cheader_filename = "gio/gio.h")]
1592 public const string VOLUME_MONITOR_EXTENSION_POINT_NAME;
1593 [CCode (cname = "g_content_type_can_be_executable", cheader_filename = "gio/gio.h")]
1594 public static bool g_content_type_can_be_executable (string type);
1595 [CCode (cname = "g_content_type_equals", cheader_filename = "gio/gio.h")]
1596 public static bool g_content_type_equals (string type1, string type2);
1597 [CCode (cname = "g_content_type_from_mime_type", cheader_filename = "gio/gio.h")]
1598 public static unowned string g_content_type_from_mime_type (string mime_type);
1599 [CCode (cname = "g_content_type_get_description", cheader_filename = "gio/gio.h")]
1600 public static unowned string g_content_type_get_description (string type);
1601 [CCode (cname = "g_content_type_get_icon", cheader_filename = "gio/gio.h")]
1602 public static unowned GLib.Icon g_content_type_get_icon (string type);
1603 [CCode (cname = "g_content_type_get_mime_type", cheader_filename = "gio/gio.h")]
1604 public static unowned string g_content_type_get_mime_type (string type);
1605 [CCode (cname = "g_content_type_guess", cheader_filename = "gio/gio.h")]
1606 public static unowned string g_content_type_guess (string filename, uchar[] data, out bool result_uncertain);
1607 [CCode (cname = "g_content_type_guess_for_tree", cheader_filename = "gio/gio.h")]
1608 public static unowned string g_content_type_guess_for_tree (GLib.File root);
1609 [CCode (cname = "g_content_type_is_a", cheader_filename = "gio/gio.h")]
1610 public static bool g_content_type_is_a (string type, string supertype);
1611 [CCode (cname = "g_content_type_is_unknown", cheader_filename = "gio/gio.h")]
1612 public static bool g_content_type_is_unknown (string type);
1613 [CCode (cname = "g_content_types_get_registered", cheader_filename = "gio/gio.h")]
1614 public static unowned GLib.List g_content_types_get_registered ();
1615 [CCode (cname = "g_io_error_from_errno", cheader_filename = "gio/gio.h")]
1616 public static unowned GLib.IOError g_io_error_from_errno (int err_no);
1617 [CCode (cname = "g_io_error_quark", cheader_filename = "gio/gio.h")]
1618 public static GLib.Quark g_io_error_quark ();
1619 [CCode (cname = "g_io_modules_load_all_in_directory", cheader_filename = "gio/gio.h")]
1620 public static unowned GLib.List g_io_modules_load_all_in_directory (string dirname);
1621 [CCode (cname = "g_io_scheduler_cancel_all_jobs", cheader_filename = "gio/gio.h")]
1622 public static void g_io_scheduler_cancel_all_jobs ();
1623 [CCode (cname = "g_io_scheduler_push_job", cheader_filename = "gio/gio.h")]
1624 public static void g_io_scheduler_push_job (GLib.IOSchedulerJobFunc job_func, GLib.DestroyNotify? notify, int io_priority, GLib.Cancellable? cancellable);
1625 [CCode (cname = "g_simple_async_report_error_in_idle", cheader_filename = "gio/gio.h")]
1626 public static void g_simple_async_report_error_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
1627 [CCode (cname = "g_simple_async_report_gerror_in_idle", cheader_filename = "gio/gio.h")]
1628 public static void g_simple_async_report_gerror_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Error error);