1 /* gio-2.0.vapi generated by 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 public virtual unowned string get_display (GLib.AppInfo info, GLib.List files);
8 public virtual unowned string get_startup_notify_id (GLib.AppInfo info, GLib.List files);
9 public virtual void launch_failed (string startup_notify_id);
10 [CCode (has_construct_function = false)]
11 public AppLaunchContext ();
13 [CCode (cheader_filename = "gio/gio.h")]
14 public class BufferedInputStream : GLib.FilterInputStream {
15 public virtual ssize_t fill (ssize_t count, GLib.Cancellable? cancellable) throws GLib.Error;
16 public virtual void fill_async (ssize_t count, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
17 public virtual ssize_t fill_finish (GLib.AsyncResult _result) throws GLib.Error;
18 public size_t get_available ();
19 public size_t get_buffer_size ();
20 [CCode (type = "GInputStream*", has_construct_function = false)]
21 public BufferedInputStream (GLib.InputStream base_stream);
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 public bool get_auto_grow ();
33 public size_t get_buffer_size ();
34 [CCode (type = "GOutputStream*", has_construct_function = false)]
35 public BufferedOutputStream (GLib.OutputStream base_stream);
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 public void cancel ();
46 public static unowned GLib.Cancellable get_current ();
48 public bool is_cancelled ();
49 public void make_pollfd (GLib.PollFD pollfd);
50 [CCode (has_construct_function = false)]
51 public Cancellable ();
52 public void pop_current ();
53 public void push_current ();
55 public bool set_error_if_cancelled () throws GLib.Error;
56 public virtual signal void cancelled ();
58 [CCode (cheader_filename = "gio/gio.h")]
59 public class DataInputStream : GLib.BufferedInputStream {
60 public GLib.DataStreamByteOrder get_byte_order ();
61 public GLib.DataStreamNewlineType get_newline_type ();
62 [CCode (has_construct_function = false)]
63 public DataInputStream (GLib.InputStream base_stream);
64 public uchar read_byte (GLib.Cancellable? cancellable) throws GLib.Error;
65 public int16 read_int16 (GLib.Cancellable? cancellable) throws GLib.Error;
66 public int32 read_int32 (GLib.Cancellable? cancellable) throws GLib.Error;
67 public int64 read_int64 (GLib.Cancellable? cancellable) throws GLib.Error;
68 public unowned string? read_line (out size_t length, GLib.Cancellable? cancellable) throws GLib.Error;
69 public void read_line_async (int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
70 public unowned string read_line_finish (GLib.AsyncResult _result, size_t length) throws GLib.Error;
71 public uint16 read_uint16 (GLib.Cancellable? cancellable) throws GLib.Error;
72 public uint32 read_uint32 (GLib.Cancellable? cancellable) throws GLib.Error;
73 public uint64 read_uint64 (GLib.Cancellable? cancellable) throws GLib.Error;
74 public unowned string? read_until (string stop_chars, out size_t length, GLib.Cancellable? cancellable) throws GLib.Error;
75 public void read_until_async (string stop_chars, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
76 public unowned string read_until_finish (GLib.AsyncResult _result, size_t length) throws GLib.Error;
77 public void set_byte_order (GLib.DataStreamByteOrder order);
78 public void set_newline_type (GLib.DataStreamNewlineType type);
79 public GLib.DataStreamByteOrder byte_order { get; set; }
80 public GLib.DataStreamNewlineType newline_type { get; set; }
82 [CCode (cheader_filename = "gio/gio.h")]
83 public class DataOutputStream : GLib.FilterOutputStream {
84 public GLib.DataStreamByteOrder get_byte_order ();
85 [CCode (has_construct_function = false)]
86 public DataOutputStream (GLib.OutputStream base_stream);
87 public bool put_byte (uchar data, GLib.Cancellable? cancellable) throws GLib.Error;
88 public bool put_int16 (int16 data, GLib.Cancellable? cancellable) throws GLib.Error;
89 public bool put_int32 (int32 data, GLib.Cancellable? cancellable) throws GLib.Error;
90 public bool put_int64 (int64 data, GLib.Cancellable? cancellable) throws GLib.Error;
91 public bool put_string (string str, GLib.Cancellable? cancellable) throws GLib.Error;
92 public bool put_uint16 (uint16 data, GLib.Cancellable? cancellable) throws GLib.Error;
93 public bool put_uint32 (uint32 data, GLib.Cancellable? cancellable) throws GLib.Error;
94 public bool put_uint64 (uint64 data, GLib.Cancellable? cancellable) throws GLib.Error;
95 public void set_byte_order (GLib.DataStreamByteOrder order);
96 public GLib.DataStreamByteOrder byte_order { get; set; }
98 [CCode (cheader_filename = "gio/gio.h")]
99 public class Emblem : GLib.Object, GLib.Icon {
100 public unowned GLib.Icon get_icon ();
101 public GLib.EmblemOrigin get_origin ();
102 [CCode (has_construct_function = false)]
103 public Emblem (GLib.Icon icon);
104 [CCode (has_construct_function = false)]
105 public Emblem.with_origin (GLib.Icon icon, GLib.EmblemOrigin origin);
106 public GLib.Object icon { get; construct; }
107 public GLib.EmblemOrigin origin { get; construct; }
110 [CCode (cheader_filename = "gio/gio.h")]
111 public class EmblemClass {
113 [CCode (cheader_filename = "gio/gio.h")]
114 public class EmblemedIcon : GLib.Object, GLib.Icon {
115 public void add_emblem (GLib.Emblem emblem);
116 public unowned GLib.List get_emblems ();
117 public unowned GLib.Icon get_icon ();
118 [CCode (type = "GIcon*", has_construct_function = false)]
119 public EmblemedIcon (GLib.Icon icon, GLib.Emblem emblem);
122 [CCode (cheader_filename = "gio/gio.h")]
123 public class EmblemedIconClass {
126 [CCode (cheader_filename = "gio/gio.h")]
127 public class FileAttributeInfo {
128 public GLib.FileAttributeInfoFlags flags;
129 public weak string name;
130 public GLib.FileAttributeType type;
133 [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")]
134 public class FileAttributeInfoList {
135 public weak GLib.FileAttributeInfo infos;
137 public void add (string name, GLib.FileAttributeType type, GLib.FileAttributeInfoFlags flags);
138 public unowned GLib.FileAttributeInfoList dup ();
139 public unowned GLib.FileAttributeInfo lookup (string name);
140 [CCode (has_construct_function = false)]
141 public FileAttributeInfoList ();
144 [CCode (ref_function = "g_file_attribute_matcher_ref", unref_function = "g_file_attribute_matcher_unref", cheader_filename = "gio/gio.h")]
145 public class FileAttributeMatcher {
146 public bool enumerate_namespace (string ns);
147 public unowned string enumerate_next ();
148 public bool matches (string attribute);
149 public bool matches_only (string attribute);
150 [CCode (has_construct_function = false)]
151 public FileAttributeMatcher (string attributes);
153 [CCode (cheader_filename = "gio/gio.h")]
154 public class FileEnumerator : GLib.Object {
155 public bool close (GLib.Cancellable? cancellable) throws GLib.Error;
156 public virtual void close_async (int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
157 public virtual bool close_finish (GLib.AsyncResult _result) throws GLib.Error;
159 public virtual bool close_fn (GLib.Cancellable? cancellable) throws GLib.Error;
160 public unowned GLib.File get_container ();
161 public bool has_pending ();
162 public bool is_closed ();
163 public virtual GLib.FileInfo next_file (GLib.Cancellable? cancellable) throws GLib.Error;
164 public virtual void next_files_async (int num_files, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
165 public virtual GLib.List<GLib.FileInfo> next_files_finish (GLib.AsyncResult _result) throws GLib.Error;
166 public void set_pending (bool pending);
167 public GLib.File container { construct; }
169 [CCode (cheader_filename = "gio/gio.h")]
170 public class FileIcon : GLib.Object, GLib.LoadableIcon, GLib.Icon {
171 public unowned GLib.File get_file ();
172 [CCode (type = "GIcon*", has_construct_function = false)]
173 public FileIcon (GLib.File file);
174 public GLib.File file { get; construct; }
177 [CCode (cheader_filename = "gio/gio.h")]
178 public class FileIconClass {
180 [CCode (cheader_filename = "gio/gio.h")]
181 public class FileInfo : GLib.Object {
182 public void clear_status ();
183 public void copy_into (GLib.FileInfo dest_info);
184 public unowned GLib.FileInfo dup ();
185 public unowned string get_attribute_as_string (string attribute);
186 public bool get_attribute_boolean (string attribute);
187 public unowned string get_attribute_byte_string (string attribute);
188 public bool get_attribute_data (string attribute, GLib.FileAttributeType? type, void* value_pp, GLib.FileAttributeStatus? status);
189 public int32 get_attribute_int32 (string attribute);
190 public int64 get_attribute_int64 (string attribute);
191 public unowned GLib.Object get_attribute_object (string attribute);
192 public GLib.FileAttributeStatus get_attribute_status (string attribute);
193 public unowned string get_attribute_string (string attribute);
194 public GLib.FileAttributeType get_attribute_type (string attribute);
195 public uint32 get_attribute_uint32 (string attribute);
196 public uint64 get_attribute_uint64 (string attribute);
197 public unowned string get_content_type ();
198 public unowned string get_display_name ();
199 public unowned string get_edit_name ();
200 public unowned string get_etag ();
201 public GLib.FileType get_file_type ();
202 public unowned GLib.Icon get_icon ();
203 public bool get_is_backup ();
204 public bool get_is_hidden ();
205 public bool get_is_symlink ();
206 public void get_modification_time (GLib.TimeVal _result);
207 public unowned string get_name ();
208 public int64 get_size ();
209 public int32 get_sort_order ();
210 public unowned string get_symlink_target ();
211 public bool has_attribute (string attribute);
212 public unowned string list_attributes (string name_space);
213 [CCode (has_construct_function = false)]
215 public void remove_attribute (string attribute);
216 public void set_attribute (string attribute, GLib.FileAttributeType type, void* value_p);
217 public void set_attribute_boolean (string attribute, bool attr_value);
218 public void set_attribute_byte_string (string attribute, string attr_value);
219 public void set_attribute_int32 (string attribute, int32 attr_value);
220 public void set_attribute_int64 (string attribute, int64 attr_value);
221 public void set_attribute_mask (GLib.FileAttributeMatcher mask);
222 public void set_attribute_object (string attribute, GLib.Object attr_value);
223 public void set_attribute_string (string attribute, string attr_value);
224 public void set_attribute_uint32 (string attribute, uint32 attr_value);
225 public void set_attribute_uint64 (string attribute, uint64 attr_value);
226 public void set_content_type (string content_type);
227 public void set_display_name (string display_name);
228 public void set_edit_name (string edit_name);
229 public void set_file_type (GLib.FileType type);
230 public void set_icon (GLib.Icon icon);
231 public void set_is_hidden (bool is_hidden);
232 public void set_is_symlink (bool is_symlink);
233 public void set_modification_time (GLib.TimeVal mtime);
234 public void set_name (string name);
235 public void set_size (int64 size);
236 public void set_sort_order (int32 sort_order);
237 public void set_symlink_target (string symlink_target);
238 public void unset_attribute_mask ();
241 [CCode (cheader_filename = "gio/gio.h")]
242 public class FileInfoClass {
244 [CCode (cheader_filename = "gio/gio.h")]
245 public class FileInputStream : GLib.InputStream, GLib.Seekable {
247 public virtual bool can_seek ();
248 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable) throws GLib.Error;
249 public virtual void query_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
250 public virtual unowned GLib.FileInfo query_info_finish (GLib.AsyncResult _result) throws GLib.Error;
252 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable) throws GLib.Error;
254 public virtual int64 tell ();
256 [CCode (cheader_filename = "gio/gio.h")]
257 public class FileMonitor : GLib.Object {
258 public virtual bool cancel ();
259 public static unowned GLib.FileMonitor directory (GLib.File file, GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
260 public void emit_event (GLib.File child, GLib.File other_file, GLib.FileMonitorEvent event_type);
261 public static unowned GLib.FileMonitor file (GLib.File file, GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
262 public bool is_cancelled ();
263 public void set_rate_limit (int limit_msecs);
265 public bool cancelled { get; }
267 public int rate_limit { get; set; }
268 public virtual signal void changed (GLib.File file, GLib.File? other_file, GLib.FileMonitorEvent event_type);
270 [CCode (cheader_filename = "gio/gio.h")]
271 public class FileOutputStream : GLib.OutputStream, GLib.Seekable {
273 public virtual bool can_seek ();
275 public virtual bool can_truncate ();
276 public virtual unowned string get_etag ();
277 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable) throws GLib.Error;
278 public virtual void query_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
279 public virtual unowned GLib.FileInfo query_info_finish (GLib.AsyncResult _result) throws GLib.Error;
281 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable) throws GLib.Error;
283 public virtual int64 tell ();
285 public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable) throws GLib.Error;
287 [CCode (cheader_filename = "gio/gio.h")]
288 public class FilenameCompleter : GLib.Object {
289 public unowned string get_completion_suffix (string initial_text);
290 public unowned string get_completions (string initial_text);
291 [CCode (has_construct_function = false)]
292 public FilenameCompleter ();
293 public void set_dirs_only (bool dirs_only);
294 public virtual signal void got_completion_data ();
296 [CCode (cheader_filename = "gio/gio.h")]
297 public class FilterInputStream : GLib.InputStream {
298 public unowned GLib.InputStream get_base_stream ();
299 public bool get_close_base_stream ();
300 public void set_close_base_stream (bool close_base);
301 public GLib.InputStream base_stream { get; construct; }
302 public bool close_base_stream { get; construct; }
304 [CCode (cheader_filename = "gio/gio.h")]
305 public class FilterOutputStream : GLib.OutputStream {
306 public unowned GLib.OutputStream get_base_stream ();
307 public bool get_close_base_stream ();
308 public void set_close_base_stream (bool close_base);
309 public GLib.OutputStream base_stream { get; construct; }
310 public bool close_base_stream { get; construct; }
313 [CCode (cheader_filename = "gio/gio.h")]
314 public class IOExtension {
315 public unowned string get_name ();
316 public int get_priority ();
317 public unowned GLib.TypeClass ref_class ();
320 [CCode (cheader_filename = "gio/gio.h")]
321 public class IOExtensionPoint {
322 public unowned GLib.IOExtension get_extension_by_name (string name);
323 public unowned GLib.List get_extensions ();
324 public GLib.Type get_required_type ();
325 public static unowned GLib.IOExtension implement (string extension_point_name, GLib.Type type, string extension_name, int priority);
326 public static unowned GLib.IOExtensionPoint lookup (string name);
327 public static unowned GLib.IOExtensionPoint register (string name);
328 public void set_required_type (GLib.Type type);
330 [CCode (cheader_filename = "gio/gio.h")]
331 public class IOModule : GLib.TypeModule, GLib.TypePlugin {
333 [CCode (has_construct_function = false)]
334 public IOModule (string filename);
335 public void unload ();
338 [CCode (cheader_filename = "gio/gio.h")]
339 public class IOModuleClass {
342 [CCode (cheader_filename = "gio/gio.h")]
343 public class IOSchedulerJob {
344 public bool send_to_mainloop (GLib.SourceFunc func, GLib.DestroyNotify? notify);
345 public void send_to_mainloop_async (GLib.SourceFunc func, GLib.DestroyNotify? notify);
347 [CCode (cheader_filename = "gio/gio.h")]
348 public class InetAddress : GLib.Object {
349 [CCode (has_construct_function = false)]
350 public InetAddress.any (GLib.SocketFamily family);
351 [CCode (has_construct_function = false)]
352 public InetAddress.from_bytes (uchar bytes, GLib.SocketFamily family);
353 [CCode (has_construct_function = false)]
354 public InetAddress.from_string (string str);
355 public GLib.SocketFamily get_family ();
356 public bool get_is_any ();
357 public bool get_is_link_local ();
358 public bool get_is_loopback ();
359 public bool get_is_mc_global ();
360 public bool get_is_mc_link_local ();
361 public bool get_is_mc_node_local ();
362 public bool get_is_mc_org_local ();
363 public bool get_is_mc_site_local ();
364 public bool get_is_multicast ();
365 public bool get_is_site_local ();
366 [CCode (has_construct_function = false)]
367 public InetAddress.loopback (GLib.SocketFamily family);
368 public virtual uchar to_bytes ();
369 public virtual unowned string to_string ();
371 public void* bytes { get; construct; }
372 public GLib.SocketFamily family { get; construct; }
373 public bool is_any { get; }
374 public bool is_link_local { get; }
375 public bool is_loopback { get; }
376 public bool is_mc_global { get; }
377 public bool is_mc_link_local { get; }
378 public bool is_mc_node_local { get; }
379 public bool is_mc_org_local { get; }
380 public bool is_mc_site_local { get; }
381 public bool is_multicast { get; }
382 public bool is_site_local { get; }
384 [CCode (cheader_filename = "gio/gio.h")]
385 public class InetSocketAddress : GLib.SocketAddress, GLib.SocketConnectable {
386 public unowned GLib.InetAddress get_address ();
387 public uint16 get_port ();
388 [CCode (type = "GSocketAddress*", has_construct_function = false)]
389 public InetSocketAddress (GLib.InetAddress address, uint16 port);
390 public GLib.InetAddress address { get; construct; }
391 public uint port { get; construct; }
393 [CCode (cheader_filename = "gio/gio.h")]
394 public class InputStream : GLib.Object {
395 public void clear_pending ();
396 public bool close (GLib.Cancellable? cancellable) throws GLib.Error;
397 public virtual void close_async (int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
398 public virtual bool close_finish (GLib.AsyncResult _result) throws GLib.Error;
400 public virtual bool close_fn (GLib.Cancellable? cancellable) throws GLib.Error;
401 public bool has_pending ();
402 public bool is_closed ();
403 public ssize_t read (void* buffer, size_t count, GLib.Cancellable? cancellable) throws GLib.Error;
404 public bool read_all (void* buffer, size_t count, out size_t bytes_read, GLib.Cancellable? cancellable) throws GLib.Error;
405 public virtual void read_async (void* buffer, size_t count, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
406 public virtual ssize_t read_finish (GLib.AsyncResult _result) throws GLib.Error;
408 public virtual ssize_t read_fn (void* buffer, size_t count, GLib.Cancellable? cancellable) throws GLib.Error;
409 public bool set_pending () throws GLib.Error;
410 public virtual ssize_t skip (size_t count, GLib.Cancellable? cancellable) throws GLib.Error;
411 public virtual void skip_async (size_t count, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
412 public virtual ssize_t skip_finish (GLib.AsyncResult _result) throws GLib.Error;
414 [CCode (cheader_filename = "gio/gio.h")]
415 public class MemoryInputStream : GLib.InputStream, GLib.Seekable {
416 public void add_data (void* data, ssize_t len, GLib.DestroyNotify? destroy);
417 [CCode (type = "GInputStream*", has_construct_function = false)]
418 public MemoryInputStream.from_data (void* data, ssize_t len, GLib.DestroyNotify? destroy);
419 [CCode (type = "GInputStream*", has_construct_function = false)]
420 public MemoryInputStream ();
422 [CCode (cheader_filename = "gio/gio.h")]
423 public class MemoryOutputStream : GLib.OutputStream, GLib.Seekable {
424 public void* get_data ();
425 public size_t get_data_size ();
426 public size_t get_size ();
427 [CCode (type = "GOutputStream*", has_construct_function = false)]
428 public MemoryOutputStream (void* data, size_t len, GLib.ReallocFunc realloc_fn, GLib.DestroyNotify? destroy);
430 [CCode (cheader_filename = "gio/gio.h")]
431 public class MountOperation : GLib.Object {
432 public bool get_anonymous ();
433 public int get_choice ();
434 public unowned string get_domain ();
435 public unowned string get_password ();
436 public GLib.PasswordSave get_password_save ();
437 public unowned string get_username ();
438 [CCode (has_construct_function = false)]
439 public MountOperation ();
440 public void set_anonymous (bool anonymous);
441 public void set_choice (int choice);
442 public void set_domain (string domain);
443 public void set_password (string password);
444 public void set_password_save (GLib.PasswordSave save);
445 public void set_username (string username);
446 public bool anonymous { get; set; }
447 public int choice { get; set; }
448 public string domain { get; set; }
449 public string password { get; set; }
450 public GLib.PasswordSave password_save { get; set; }
451 public string username { get; set; }
452 public virtual signal void aborted ();
453 public virtual signal void ask_password (string message, string default_user, string default_domain, GLib.AskPasswordFlags flags);
454 public virtual signal void ask_question (string message, string[] choices);
456 public virtual signal void reply (GLib.MountOperationResult result);
458 [CCode (cheader_filename = "gio/gio.h")]
459 public class NativeVolumeMonitor : GLib.VolumeMonitor {
461 public virtual unowned GLib.Mount get_mount_for_mount_path (string mount_path, GLib.Cancellable? cancellable);
463 [CCode (cheader_filename = "gio/gio.h")]
464 public class NetworkAddress : GLib.Object, GLib.SocketConnectable {
465 public unowned string get_hostname ();
466 public uint16 get_port ();
467 [CCode (type = "GSocketConnectable*", has_construct_function = false)]
468 public NetworkAddress (string hostname, uint16 port);
469 public string hostname { get; construct; }
470 public uint port { get; construct; }
472 [CCode (cheader_filename = "gio/gio.h")]
473 public class NetworkService : GLib.Object, GLib.SocketConnectable {
474 public unowned string get_domain ();
475 public unowned string get_protocol ();
476 public unowned string get_service ();
477 [CCode (type = "GSocketConnectable*", has_construct_function = false)]
478 public NetworkService (string service, string protocol, string domain);
479 public string domain { get; construct; }
480 public string protocol { get; construct; }
481 public string service { get; construct; }
483 [CCode (cheader_filename = "gio/gio.h")]
484 public class OutputStream : GLib.Object {
485 public void clear_pending ();
486 public bool close (GLib.Cancellable? cancellable) throws GLib.Error;
487 public virtual void close_async (int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
488 public virtual bool close_finish (GLib.AsyncResult _result) throws GLib.Error;
490 public virtual bool close_fn (GLib.Cancellable? cancellable) throws GLib.Error;
491 public virtual bool flush (GLib.Cancellable? cancellable) throws GLib.Error;
492 public virtual void flush_async (int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
493 public virtual bool flush_finish (GLib.AsyncResult _result) throws GLib.Error;
494 public bool has_pending ();
495 public bool is_closed ();
496 public bool set_pending () throws GLib.Error;
497 public virtual ssize_t splice (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
498 public virtual void splice_async (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
499 public virtual ssize_t splice_finish (GLib.AsyncResult _result) throws GLib.Error;
500 public ssize_t write (void* buffer, size_t count, GLib.Cancellable? cancellable) throws GLib.Error;
501 public bool write_all (void* buffer, size_t count, out size_t bytes_written, GLib.Cancellable? cancellable) throws GLib.Error;
502 public virtual void write_async (void* buffer, size_t count, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
503 public virtual ssize_t write_finish (GLib.AsyncResult _result) throws GLib.Error;
505 public virtual ssize_t write_fn (void* buffer, size_t count, GLib.Cancellable? cancellable) throws GLib.Error;
507 [CCode (cheader_filename = "gio/gio.h")]
508 public class Resolver : GLib.Object {
509 public static GLib.Quark error_quark ();
510 public static void free_addresses (GLib.List addresses);
511 public static void free_targets (GLib.List targets);
512 public static unowned GLib.Resolver get_default ();
513 public virtual unowned string lookup_by_address (GLib.InetAddress address, GLib.Cancellable? cancellable) throws GLib.Error;
514 public virtual void lookup_by_address_async (GLib.InetAddress address, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
515 public virtual unowned string lookup_by_address_finish (GLib.AsyncResult _result) throws GLib.Error;
516 public virtual unowned GLib.List lookup_by_name (string hostname, GLib.Cancellable? cancellable) throws GLib.Error;
517 public virtual void lookup_by_name_async (string hostname, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
518 public virtual unowned GLib.List lookup_by_name_finish (GLib.AsyncResult _result) throws GLib.Error;
519 public virtual unowned GLib.List lookup_service (string service, string protocol, string domain, GLib.Cancellable? cancellable) throws GLib.Error;
520 public virtual void lookup_service_async (string service, string protocol, string domain, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
521 public virtual unowned GLib.List lookup_service_finish (GLib.AsyncResult _result) throws GLib.Error;
522 public void set_default ();
524 [CCode (cheader_filename = "gio/gio.h")]
525 public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult {
526 public void complete ();
527 public void complete_in_idle ();
528 [CCode (has_construct_function = false)]
529 public SimpleAsyncResult.error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
530 [CCode (has_construct_function = false)]
531 public SimpleAsyncResult.from_error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Error error);
532 public bool get_op_res_gboolean ();
533 public void* get_op_res_gpointer ();
534 public ssize_t get_op_res_gssize ();
535 public void* get_source_tag ();
536 public static bool is_valid (GLib.AsyncResult _result, GLib.Object source, void* source_tag);
537 [CCode (has_construct_function = false)]
538 public SimpleAsyncResult (GLib.Object source_object, GLib.AsyncReadyCallback callback, void* source_tag);
539 public bool propagate_error () throws GLib.Error;
540 public void run_in_thread (GLib.SimpleAsyncThreadFunc func, int io_priority, GLib.Cancellable? cancellable);
541 public void set_error (GLib.Quark domain, int code, string format);
542 public void set_error_va (GLib.Quark domain, int code, string format, void* args);
543 public void set_from_error (GLib.Error error);
544 public void set_handle_cancellation (bool handle_cancellation);
545 public void set_op_res_gboolean (bool op_res);
546 public void set_op_res_gpointer (void* op_res, GLib.DestroyNotify destroy_op_res);
547 public void set_op_res_gssize (ssize_t op_res);
550 [CCode (cheader_filename = "gio/gio.h")]
551 public class SimpleAsyncResultClass {
553 [CCode (cheader_filename = "gio/gio.h")]
554 public class SocketAddress : GLib.Object, GLib.SocketConnectable {
555 [CCode (has_construct_function = false)]
556 public SocketAddress.from_native (void* native, size_t len);
557 public virtual GLib.SocketFamily get_family ();
558 public virtual ssize_t get_native_size ();
559 public virtual bool to_native (void* dest, size_t destlen);
560 public GLib.SocketFamily family { get; }
563 [CCode (copy_function = "g_srv_target_copy", type_id = "G_TYPE_SRV_TARGET", cheader_filename = "gio/gio.h")]
564 public class SrvTarget {
565 public unowned GLib.SrvTarget copy ();
566 public ulong get_expires ();
567 public unowned string get_hostname ();
568 public uint16 get_port ();
569 public uint16 get_priority ();
570 public uint16 get_weight ();
571 public static unowned GLib.List list_sort (GLib.List targets);
572 [CCode (has_construct_function = false)]
573 public SrvTarget (string hostname, uint16 port, uint16 priority, uint16 weight, ulong expires);
575 [CCode (cheader_filename = "gio/gio.h")]
576 public class ThemedIcon : GLib.Object, GLib.Icon {
577 public void append_name (string iconname);
578 [CCode (type = "GIcon*", has_construct_function = false)]
579 public ThemedIcon.from_names (string[] iconnames);
580 [CCode (array_length = false)]
581 public unowned string[] get_names ();
582 [CCode (type = "GIcon*", has_construct_function = false)]
583 public ThemedIcon (string iconname);
584 public void prepend_name (string iconname);
585 [CCode (type = "GIcon*", has_construct_function = false)]
586 public ThemedIcon.with_default_fallbacks (string iconname);
587 public string name { construct; }
588 public string[] names { get; construct; }
590 public bool use_default_fallbacks { get; construct; }
593 [CCode (cheader_filename = "gio/gio.h")]
594 public class ThemedIconClass {
596 [CCode (cheader_filename = "gio/gio.h")]
597 public class Vfs : GLib.Object {
598 public static unowned GLib.Vfs get_default ();
599 public virtual unowned GLib.File get_file_for_path (string path);
600 public virtual unowned GLib.File get_file_for_uri (string uri);
601 public static unowned GLib.Vfs get_local ();
602 public virtual unowned string get_supported_uri_schemes ();
603 public virtual bool is_active ();
604 public virtual unowned GLib.File parse_name (string parse_name);
606 [CCode (cheader_filename = "gio/gio.h")]
607 public class VolumeMonitor : GLib.Object {
608 public virtual unowned GLib.Volume adopt_orphan_mount (GLib.Mount mount);
609 public static unowned GLib.VolumeMonitor get ();
610 public virtual unowned GLib.List get_connected_drives ();
611 public virtual unowned GLib.Mount get_mount_for_uuid (string uuid);
612 public virtual unowned GLib.List get_mounts ();
613 public virtual unowned GLib.Volume get_volume_for_uuid (string uuid);
614 public virtual unowned GLib.List get_volumes ();
616 public virtual bool is_supported ();
617 public virtual signal void drive_changed (GLib.Drive drive);
618 public virtual signal void drive_connected (GLib.Drive drive);
619 public virtual signal void drive_disconnected (GLib.Drive drive);
620 public virtual signal void drive_eject_button (GLib.Drive drive);
621 public virtual signal void mount_added (GLib.Mount mount);
622 public virtual signal void mount_changed (GLib.Mount mount);
623 public virtual signal void mount_pre_unmount (GLib.Mount mount);
624 public virtual signal void mount_removed (GLib.Mount mount);
625 public virtual signal void volume_added (GLib.Volume volume);
626 public virtual signal void volume_changed (GLib.Volume volume);
627 public virtual signal void volume_removed (GLib.Volume volume);
629 [CCode (cheader_filename = "gio/gio.h")]
630 public interface AppInfo : GLib.Object {
631 public abstract bool add_supports_type (string content_type) throws GLib.Error;
632 public abstract bool can_delete ();
633 public abstract bool can_remove_supports_type ();
634 public static unowned GLib.AppInfo create_from_commandline (string commandline, string application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error;
635 public bool @delete ();
637 public abstract bool do_delete ();
638 public abstract unowned GLib.AppInfo dup ();
639 public abstract bool equal (GLib.AppInfo appinfo2);
640 public static unowned GLib.List get_all ();
641 public static unowned GLib.List get_all_for_type (string content_type);
642 public abstract unowned string get_commandline ();
643 public static unowned GLib.AppInfo get_default_for_type (string content_type, bool must_support_uris);
644 public static unowned GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
645 public abstract unowned string get_description ();
646 public abstract unowned string get_executable ();
647 public abstract unowned GLib.Icon get_icon ();
648 public abstract unowned string get_id ();
649 public abstract unowned string get_name ();
650 public abstract bool launch (GLib.List? files, GLib.AppLaunchContext launch_context) throws GLib.Error;
651 public static bool launch_default_for_uri (string uri, GLib.AppLaunchContext? launch_context) throws GLib.Error;
652 public abstract bool launch_uris (GLib.List? uris, GLib.AppLaunchContext launch_context) throws GLib.Error;
653 public abstract bool remove_supports_type (string content_type) throws GLib.Error;
654 public static void reset_type_associations (string content_type);
655 public abstract bool set_as_default_for_extension (string extension) throws GLib.Error;
656 public abstract bool set_as_default_for_type (string content_type) throws GLib.Error;
657 public abstract bool should_show ();
658 public abstract bool supports_files ();
659 public abstract bool supports_uris ();
661 [CCode (cheader_filename = "gio/gio.h")]
662 public interface AsyncResult : GLib.Object {
663 public abstract unowned GLib.Object get_source_object ();
664 public abstract void* get_user_data ();
666 [CCode (cheader_filename = "gio/gio.h")]
667 public interface Drive : GLib.Object {
668 public abstract bool can_eject ();
669 public abstract bool can_poll_for_media ();
670 public abstract void eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? callback);
671 public abstract bool eject_finish (GLib.AsyncResult _result) throws GLib.Error;
672 public abstract unowned string enumerate_identifiers ();
673 public abstract unowned GLib.Icon get_icon ();
674 public abstract unowned string get_identifier (string kind);
675 public abstract unowned string get_name ();
676 public abstract unowned GLib.List get_volumes ();
677 public abstract bool has_media ();
678 public abstract bool has_volumes ();
679 public abstract bool is_media_check_automatic ();
680 public abstract bool is_media_removable ();
681 public abstract void poll_for_media (GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? callback);
682 public abstract bool poll_for_media_finish (GLib.AsyncResult _result) throws GLib.Error;
683 public virtual signal void changed ();
684 public virtual signal void disconnected ();
685 public virtual signal void eject_button ();
687 [CCode (cheader_filename = "gio/gio.h")]
688 public interface File : GLib.Object {
689 public abstract GLib.FileOutputStream append_to (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
690 public abstract void append_to_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
691 public abstract GLib.FileOutputStream append_to_finish (GLib.AsyncResult res) throws GLib.Error;
692 public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable, GLib.FileProgressCallback? progress_callback) throws GLib.Error;
693 public abstract void copy_async (GLib.File destination, GLib.FileCopyFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.FileProgressCallback? progress_callback, GLib.AsyncReadyCallback callback);
694 public bool copy_attributes (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
695 public abstract bool copy_finish (GLib.AsyncResult res) throws GLib.Error;
696 public abstract GLib.FileOutputStream create (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
697 public abstract void create_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
698 public abstract GLib.FileOutputStream create_finish (GLib.AsyncResult res) throws GLib.Error;
699 public bool @delete (GLib.Cancellable? cancellable) throws GLib.Error;
701 public abstract bool delete_file (GLib.Cancellable? cancellable) throws GLib.Error;
702 public abstract unowned GLib.File dup ();
703 public abstract void eject_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? callback);
704 public abstract bool eject_mountable_finish (GLib.AsyncResult _result) throws GLib.Error;
705 public abstract GLib.FileEnumerator enumerate_children (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
706 public abstract void enumerate_children_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
707 public abstract GLib.FileEnumerator enumerate_children_finish (GLib.AsyncResult res) throws GLib.Error;
708 public abstract bool equal (GLib.File file2);
709 public abstract GLib.Mount find_enclosing_mount (GLib.Cancellable? cancellable) throws GLib.Error;
710 public abstract void find_enclosing_mount_async (int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
711 public abstract GLib.Mount find_enclosing_mount_finish (GLib.AsyncResult res) throws GLib.Error;
712 public abstract string? get_basename ();
713 public GLib.File get_child (string name);
714 public abstract GLib.File get_child_for_display_name (string display_name) throws GLib.Error;
715 public abstract GLib.File? get_parent ();
716 public abstract string get_parse_name ();
717 public abstract string? get_path ();
718 public abstract string? get_relative_path (GLib.File descendant);
719 public abstract string get_uri ();
720 public abstract string get_uri_scheme ();
721 public bool has_prefix (GLib.File prefix);
722 public abstract bool has_uri_scheme (string uri_scheme);
723 public abstract uint hash (void* file);
724 public abstract bool is_native ();
725 public bool load_contents (GLib.Cancellable? cancellable, out string contents, out size_t length, out string etag_out) throws GLib.Error;
726 public void load_contents_async (GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
727 public bool load_contents_finish (GLib.AsyncResult res, out string contents, out size_t length, out string etag_out) throws GLib.Error;
728 public void load_partial_contents_async (GLib.Cancellable? cancellable, GLib.FileReadMoreCallback read_more_callback, GLib.AsyncReadyCallback callback);
729 public bool load_partial_contents_finish (GLib.AsyncResult res, out string contents, out size_t length, out string etag_out) throws GLib.Error;
730 public abstract bool make_directory (GLib.Cancellable? cancellable) throws GLib.Error;
731 public bool make_directory_with_parents (GLib.Cancellable? cancellable) throws GLib.Error;
732 public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable? cancellable) throws GLib.Error;
733 public unowned GLib.FileMonitor monitor (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
735 public abstract unowned GLib.FileMonitor monitor_dir (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
737 public abstract unowned GLib.FileMonitor monitor_file (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
738 public abstract void mount_enclosing_volume (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? callback);
739 public abstract bool mount_enclosing_volume_finish (GLib.AsyncResult _result) throws GLib.Error;
740 public abstract void mount_mountable (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? callback);
741 public abstract unowned GLib.File mount_mountable_finish (GLib.AsyncResult _result) throws GLib.Error;
742 public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable, GLib.FileProgressCallback? progress_callback) throws GLib.Error;
743 public static GLib.File new_for_commandline_arg (string arg);
744 public static GLib.File new_for_path (string path);
745 public static GLib.File new_for_uri (string uri);
746 public static unowned GLib.File parse_name (string parse_name);
748 public abstract bool prefix_matches (GLib.File file);
749 public GLib.AppInfo query_default_handler (GLib.Cancellable? cancellable) throws GLib.Error;
750 public bool query_exists (GLib.Cancellable? cancellable);
751 public GLib.FileType query_file_type (GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable);
752 public abstract unowned GLib.FileInfo query_filesystem_info (string attributes, GLib.Cancellable? cancellable) throws GLib.Error;
753 public abstract void query_filesystem_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
754 public abstract unowned GLib.FileInfo query_filesystem_info_finish (GLib.AsyncResult res) throws GLib.Error;
755 public abstract GLib.FileInfo query_info (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
756 public abstract void query_info_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
757 public abstract GLib.FileInfo query_info_finish (GLib.AsyncResult res) throws GLib.Error;
758 public abstract unowned GLib.FileAttributeInfoList query_settable_attributes (GLib.Cancellable? cancellable) throws GLib.Error;
759 public abstract unowned GLib.FileAttributeInfoList query_writable_namespaces (GLib.Cancellable? cancellable) throws GLib.Error;
760 public GLib.FileInputStream read (GLib.Cancellable? cancellable) throws GLib.Error;
761 public abstract void read_async (int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
762 public abstract GLib.FileInputStream read_finish (GLib.AsyncResult res) throws GLib.Error;
764 public abstract unowned GLib.FileInputStream read_fn (GLib.Cancellable? cancellable) throws GLib.Error;
765 public abstract GLib.FileOutputStream replace (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
766 public abstract void replace_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
767 public bool replace_contents (string contents, size_t length, string? etag, bool make_backup, GLib.FileCreateFlags flags, out unowned string new_etag, GLib.Cancellable? cancellable) throws GLib.Error;
768 public void replace_contents_async (string contents, size_t length, string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
769 public bool replace_contents_finish (GLib.AsyncResult res, out unowned string new_etag) throws GLib.Error;
770 public abstract GLib.FileOutputStream replace_finish (GLib.AsyncResult res) throws GLib.Error;
771 public abstract GLib.File resolve_relative_path (string relative_path);
772 public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, void* value_p, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
773 public bool set_attribute_byte_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
774 public bool set_attribute_int32 (string attribute, int32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
775 public bool set_attribute_int64 (string attribute, int64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
776 public bool set_attribute_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
777 public bool set_attribute_uint32 (string attribute, uint32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
778 public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
779 public abstract void set_attributes_async (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
780 public abstract bool set_attributes_finish (GLib.AsyncResult _result, out unowned GLib.FileInfo info) throws GLib.Error;
781 public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
782 public abstract unowned GLib.File set_display_name (string display_name, GLib.Cancellable? cancellable) throws GLib.Error;
783 public abstract void set_display_name_async (string display_name, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
784 public abstract unowned GLib.File set_display_name_finish (GLib.AsyncResult res) throws GLib.Error;
785 public abstract bool trash (GLib.Cancellable? cancellable) throws GLib.Error;
786 public abstract void unmount_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? callback);
787 public abstract bool unmount_mountable_finish (GLib.AsyncResult _result) throws GLib.Error;
789 [CCode (cheader_filename = "gio/gio.h")]
790 public interface Icon : GLib.Object {
791 public abstract bool equal (GLib.Icon icon2);
793 public abstract unowned GLib.Icon from_tokens (string tokens, int num_tokens, int version) throws GLib.Error;
794 public abstract uint hash (void* icon);
795 public static unowned GLib.Icon new_for_string (string str) throws GLib.Error;
796 public unowned string to_string ();
798 public abstract bool to_tokens (GLib.PtrArray tokens, int out_version);
800 [CCode (cheader_filename = "gio/gio.h")]
801 public interface LoadableIcon : GLib.Icon, GLib.Object {
802 public abstract unowned GLib.InputStream load (int size, out unowned string? type, GLib.Cancellable? cancellable) throws GLib.Error;
803 public abstract void load_async (int size, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
804 public abstract unowned GLib.InputStream load_finish (GLib.AsyncResult res, out unowned string? type) throws GLib.Error;
806 [CCode (cheader_filename = "gio/gio.h")]
807 public interface Mount : GLib.Object {
808 public abstract bool can_eject ();
809 public abstract bool can_unmount ();
810 public abstract void eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? callback);
811 public abstract bool eject_finish (GLib.AsyncResult _result) throws GLib.Error;
812 public abstract unowned GLib.Drive get_drive ();
813 public abstract unowned GLib.Icon get_icon ();
814 public abstract unowned string get_name ();
815 public abstract unowned GLib.File get_root ();
816 public abstract unowned string get_uuid ();
817 public abstract unowned GLib.Volume get_volume ();
818 public abstract void guess_content_type (bool force_rescan, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
819 public abstract unowned string guess_content_type_finish (GLib.AsyncResult _result) throws GLib.Error;
820 public abstract unowned string guess_content_type_sync (bool force_rescan, GLib.Cancellable? cancellable) throws GLib.Error;
821 public bool is_shadowed ();
822 public abstract void remount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? callback);
823 public abstract bool remount_finish (GLib.AsyncResult _result) throws GLib.Error;
824 public void shadow ();
825 public abstract void unmount (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? callback);
826 public abstract bool unmount_finish (GLib.AsyncResult _result) throws GLib.Error;
827 public void unshadow ();
828 public virtual signal void changed ();
829 public virtual signal void unmounted ();
831 [CCode (cheader_filename = "gio/gio.h")]
832 public interface Seekable : GLib.Object {
833 public abstract bool can_seek ();
834 public abstract bool can_truncate ();
835 public abstract bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable) throws GLib.Error;
836 public abstract int64 tell ();
837 [CCode (vfunc_name = "truncate_fn")]
838 public abstract bool truncate (int64 offset, GLib.Cancellable? cancellable) throws GLib.Error;
840 [CCode (cheader_filename = "gio/gio.h")]
841 public interface SocketConnectable : GLib.Object {
842 public abstract unowned GLib.SocketAddress get_next (GLib.Cancellable? cancellable) throws GLib.Error;
843 public abstract void get_next_async (GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
844 public abstract unowned GLib.SocketAddress get_next_finish (GLib.AsyncResult _result) throws GLib.Error;
845 public abstract void reset ();
847 [CCode (cheader_filename = "gio/gio.h")]
848 public interface Volume : GLib.Object {
849 public abstract bool can_eject ();
850 public abstract bool can_mount ();
851 public abstract void eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? callback);
852 public abstract bool eject_finish (GLib.AsyncResult _result) throws GLib.Error;
853 public abstract unowned string enumerate_identifiers ();
854 public abstract unowned GLib.File get_activation_root ();
855 public abstract unowned GLib.Drive get_drive ();
856 public abstract unowned GLib.Icon get_icon ();
857 public abstract unowned string get_identifier (string kind);
858 public abstract unowned GLib.Mount get_mount ();
859 public abstract unowned string get_name ();
860 public abstract unowned string get_uuid ();
861 public void mount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback? callback);
862 public abstract bool mount_finish (GLib.AsyncResult _result) throws GLib.Error;
864 public abstract void mount_fn (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
865 public abstract bool should_automount ();
866 public virtual signal void changed ();
867 public virtual signal void removed ();
869 [CCode (cprefix = "G_APP_INFO_CREATE_", cheader_filename = "gio/gio.h")]
871 public enum AppInfoCreateFlags {
876 [CCode (cprefix = "G_ASK_PASSWORD_", cheader_filename = "gio/gio.h")]
878 public enum AskPasswordFlags {
885 [CCode (cprefix = "G_DATA_STREAM_BYTE_ORDER_", cheader_filename = "gio/gio.h")]
886 public enum DataStreamByteOrder {
891 [CCode (cprefix = "G_DATA_STREAM_NEWLINE_TYPE_", cheader_filename = "gio/gio.h")]
892 public enum DataStreamNewlineType {
898 [CCode (cprefix = "G_EMBLEM_ORIGIN_", cheader_filename = "gio/gio.h")]
899 public enum EmblemOrigin {
905 [CCode (cprefix = "G_FILE_ATTRIBUTE_INFO_", cheader_filename = "gio/gio.h")]
907 public enum FileAttributeInfoFlags {
912 [CCode (cprefix = "G_FILE_ATTRIBUTE_STATUS_", cheader_filename = "gio/gio.h")]
913 public enum FileAttributeStatus {
918 [CCode (cprefix = "G_FILE_ATTRIBUTE_TYPE_", cheader_filename = "gio/gio.h")]
919 public enum FileAttributeType {
930 [CCode (cprefix = "G_FILE_COPY_", cheader_filename = "gio/gio.h")]
932 public enum FileCopyFlags {
938 NO_FALLBACK_FOR_MOVE,
941 [CCode (cprefix = "G_FILE_CREATE_", cheader_filename = "gio/gio.h")]
943 public enum FileCreateFlags {
948 [CCode (cprefix = "G_FILE_MONITOR_EVENT_", cheader_filename = "gio/gio.h")]
949 public enum FileMonitorEvent {
958 [CCode (cprefix = "G_FILE_MONITOR_", cheader_filename = "gio/gio.h")]
960 public enum FileMonitorFlags {
964 [CCode (cprefix = "G_FILE_QUERY_INFO_", cheader_filename = "gio/gio.h")]
966 public enum FileQueryInfoFlags {
970 [CCode (cprefix = "G_FILE_TYPE_", cheader_filename = "gio/gio.h")]
971 public enum FileType {
980 [CCode (cprefix = "G_FILESYSTEM_PREVIEW_TYPE_", cheader_filename = "gio/gio.h")]
981 public enum FilesystemPreviewType {
986 [CCode (cprefix = "G_MOUNT_MOUNT_", cheader_filename = "gio/gio.h")]
987 public enum MountMountFlags {
990 [CCode (cprefix = "G_MOUNT_OPERATION_", cheader_filename = "gio/gio.h")]
991 public enum MountOperationResult {
996 [CCode (cprefix = "G_MOUNT_UNMOUNT_", cheader_filename = "gio/gio.h")]
998 public enum MountUnmountFlags {
1002 [CCode (cprefix = "G_OUTPUT_STREAM_SPLICE_", cheader_filename = "gio/gio.h")]
1004 public enum OutputStreamSpliceFlags {
1009 [CCode (cprefix = "G_PASSWORD_SAVE_", cheader_filename = "gio/gio.h")]
1010 public enum PasswordSave {
1015 [CCode (cprefix = "G_RESOLVER_ERROR_", cheader_filename = "gio/gio.h")]
1016 public enum ResolverError {
1021 [CCode (cprefix = "G_SOCKET_FAMILY_", cheader_filename = "gio/gio.h")]
1022 public enum SocketFamily {
1028 [CCode (cprefix = "G_IO_ERROR_", cheader_filename = "gio/gio.h")]
1029 public errordomain IOError {
1061 TOO_MANY_OPEN_FILES,
1063 [CCode (cheader_filename = "gio/gio.h")]
1064 public delegate void AsyncReadyCallback (GLib.Object source_object, GLib.AsyncResult res);
1065 [CCode (cheader_filename = "gio/gio.h")]
1066 public delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes);
1067 [CCode (cheader_filename = "gio/gio.h")]
1068 public static delegate bool FileReadMoreCallback (string file_contents, int64 file_size, void* callback_data);
1069 [CCode (cheader_filename = "gio/gio.h")]
1070 public delegate bool IOSchedulerJobFunc (GLib.IOSchedulerJob job, GLib.Cancellable cancellable);
1071 [CCode (cheader_filename = "gio/gio.h")]
1072 public static delegate void* ReallocFunc (void* data, size_t size);
1073 [CCode (cheader_filename = "gio/gio.h")]
1074 public static delegate void SimpleAsyncThreadFunc (GLib.SimpleAsyncResult res, GLib.Object object, GLib.Cancellable cancellable);
1075 [CCode (cheader_filename = "gio/gio.h")]
1076 public const string FILE_ATTRIBUTE_ACCESS_CAN_DELETE;
1077 [CCode (cheader_filename = "gio/gio.h")]
1078 public const string FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE;
1079 [CCode (cheader_filename = "gio/gio.h")]
1080 public const string FILE_ATTRIBUTE_ACCESS_CAN_READ;
1081 [CCode (cheader_filename = "gio/gio.h")]
1082 public const string FILE_ATTRIBUTE_ACCESS_CAN_RENAME;
1083 [CCode (cheader_filename = "gio/gio.h")]
1084 public const string FILE_ATTRIBUTE_ACCESS_CAN_TRASH;
1085 [CCode (cheader_filename = "gio/gio.h")]
1086 public const string FILE_ATTRIBUTE_ACCESS_CAN_WRITE;
1087 [CCode (cheader_filename = "gio/gio.h")]
1088 public const string FILE_ATTRIBUTE_DOS_IS_ARCHIVE;
1089 [CCode (cheader_filename = "gio/gio.h")]
1090 public const string FILE_ATTRIBUTE_DOS_IS_SYSTEM;
1091 [CCode (cheader_filename = "gio/gio.h")]
1092 public const string FILE_ATTRIBUTE_ETAG_VALUE;
1093 [CCode (cheader_filename = "gio/gio.h")]
1094 public const string FILE_ATTRIBUTE_FILESYSTEM_FREE;
1095 [CCode (cheader_filename = "gio/gio.h")]
1096 public const string FILE_ATTRIBUTE_FILESYSTEM_READONLY;
1097 [CCode (cheader_filename = "gio/gio.h")]
1098 public const string FILE_ATTRIBUTE_FILESYSTEM_SIZE;
1099 [CCode (cheader_filename = "gio/gio.h")]
1100 public const string FILE_ATTRIBUTE_FILESYSTEM_TYPE;
1101 [CCode (cheader_filename = "gio/gio.h")]
1102 public const string FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW;
1103 [CCode (cheader_filename = "gio/gio.h")]
1104 public const string FILE_ATTRIBUTE_GVFS_BACKEND;
1105 [CCode (cheader_filename = "gio/gio.h")]
1106 public const string FILE_ATTRIBUTE_ID_FILE;
1107 [CCode (cheader_filename = "gio/gio.h")]
1108 public const string FILE_ATTRIBUTE_ID_FILESYSTEM;
1109 [CCode (cheader_filename = "gio/gio.h")]
1110 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT;
1111 [CCode (cheader_filename = "gio/gio.h")]
1112 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT;
1113 [CCode (cheader_filename = "gio/gio.h")]
1114 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT;
1115 [CCode (cheader_filename = "gio/gio.h")]
1116 public const string FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI;
1117 [CCode (cheader_filename = "gio/gio.h")]
1118 public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE;
1119 [CCode (cheader_filename = "gio/gio.h")]
1120 public const string FILE_ATTRIBUTE_OWNER_GROUP;
1121 [CCode (cheader_filename = "gio/gio.h")]
1122 public const string FILE_ATTRIBUTE_OWNER_USER;
1123 [CCode (cheader_filename = "gio/gio.h")]
1124 public const string FILE_ATTRIBUTE_OWNER_USER_REAL;
1125 [CCode (cheader_filename = "gio/gio.h")]
1126 public const string FILE_ATTRIBUTE_PREVIEW_ICON;
1127 [CCode (cheader_filename = "gio/gio.h")]
1128 public const string FILE_ATTRIBUTE_SELINUX_CONTEXT;
1129 [CCode (cheader_filename = "gio/gio.h")]
1130 public const string FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE;
1131 [CCode (cheader_filename = "gio/gio.h")]
1132 public const string FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE;
1133 [CCode (cheader_filename = "gio/gio.h")]
1134 public const string FILE_ATTRIBUTE_STANDARD_COPY_NAME;
1135 [CCode (cheader_filename = "gio/gio.h")]
1136 public const string FILE_ATTRIBUTE_STANDARD_DESCRIPTION;
1137 [CCode (cheader_filename = "gio/gio.h")]
1138 public const string FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME;
1139 [CCode (cheader_filename = "gio/gio.h")]
1140 public const string FILE_ATTRIBUTE_STANDARD_EDIT_NAME;
1141 [CCode (cheader_filename = "gio/gio.h")]
1142 public const string FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE;
1143 [CCode (cheader_filename = "gio/gio.h")]
1144 public const string FILE_ATTRIBUTE_STANDARD_ICON;
1145 [CCode (cheader_filename = "gio/gio.h")]
1146 public const string FILE_ATTRIBUTE_STANDARD_IS_BACKUP;
1147 [CCode (cheader_filename = "gio/gio.h")]
1148 public const string FILE_ATTRIBUTE_STANDARD_IS_HIDDEN;
1149 [CCode (cheader_filename = "gio/gio.h")]
1150 public const string FILE_ATTRIBUTE_STANDARD_IS_SYMLINK;
1151 [CCode (cheader_filename = "gio/gio.h")]
1152 public const string FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL;
1153 [CCode (cheader_filename = "gio/gio.h")]
1154 public const string FILE_ATTRIBUTE_STANDARD_NAME;
1155 [CCode (cheader_filename = "gio/gio.h")]
1156 public const string FILE_ATTRIBUTE_STANDARD_SIZE;
1157 [CCode (cheader_filename = "gio/gio.h")]
1158 public const string FILE_ATTRIBUTE_STANDARD_SORT_ORDER;
1159 [CCode (cheader_filename = "gio/gio.h")]
1160 public const string FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET;
1161 [CCode (cheader_filename = "gio/gio.h")]
1162 public const string FILE_ATTRIBUTE_STANDARD_TARGET_URI;
1163 [CCode (cheader_filename = "gio/gio.h")]
1164 public const string FILE_ATTRIBUTE_STANDARD_TYPE;
1165 [CCode (cheader_filename = "gio/gio.h")]
1166 public const string FILE_ATTRIBUTE_THUMBNAILING_FAILED;
1167 [CCode (cheader_filename = "gio/gio.h")]
1168 public const string FILE_ATTRIBUTE_THUMBNAIL_PATH;
1169 [CCode (cheader_filename = "gio/gio.h")]
1170 public const string FILE_ATTRIBUTE_TIME_ACCESS;
1171 [CCode (cheader_filename = "gio/gio.h")]
1172 public const string FILE_ATTRIBUTE_TIME_ACCESS_USEC;
1173 [CCode (cheader_filename = "gio/gio.h")]
1174 public const string FILE_ATTRIBUTE_TIME_CHANGED;
1175 [CCode (cheader_filename = "gio/gio.h")]
1176 public const string FILE_ATTRIBUTE_TIME_CHANGED_USEC;
1177 [CCode (cheader_filename = "gio/gio.h")]
1178 public const string FILE_ATTRIBUTE_TIME_CREATED;
1179 [CCode (cheader_filename = "gio/gio.h")]
1180 public const string FILE_ATTRIBUTE_TIME_CREATED_USEC;
1181 [CCode (cheader_filename = "gio/gio.h")]
1182 public const string FILE_ATTRIBUTE_TIME_MODIFIED;
1183 [CCode (cheader_filename = "gio/gio.h")]
1184 public const string FILE_ATTRIBUTE_TIME_MODIFIED_USEC;
1185 [CCode (cheader_filename = "gio/gio.h")]
1186 public const string FILE_ATTRIBUTE_TRASH_ITEM_COUNT;
1187 [CCode (cheader_filename = "gio/gio.h")]
1188 public const string FILE_ATTRIBUTE_UNIX_BLOCKS;
1189 [CCode (cheader_filename = "gio/gio.h")]
1190 public const string FILE_ATTRIBUTE_UNIX_BLOCK_SIZE;
1191 [CCode (cheader_filename = "gio/gio.h")]
1192 public const string FILE_ATTRIBUTE_UNIX_DEVICE;
1193 [CCode (cheader_filename = "gio/gio.h")]
1194 public const string FILE_ATTRIBUTE_UNIX_GID;
1195 [CCode (cheader_filename = "gio/gio.h")]
1196 public const string FILE_ATTRIBUTE_UNIX_INODE;
1197 [CCode (cheader_filename = "gio/gio.h")]
1198 public const string FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT;
1199 [CCode (cheader_filename = "gio/gio.h")]
1200 public const string FILE_ATTRIBUTE_UNIX_MODE;
1201 [CCode (cheader_filename = "gio/gio.h")]
1202 public const string FILE_ATTRIBUTE_UNIX_NLINK;
1203 [CCode (cheader_filename = "gio/gio.h")]
1204 public const string FILE_ATTRIBUTE_UNIX_RDEV;
1205 [CCode (cheader_filename = "gio/gio.h")]
1206 public const string FILE_ATTRIBUTE_UNIX_UID;
1207 [CCode (cheader_filename = "gio/gio.h")]
1208 public const string NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME;
1209 [CCode (cheader_filename = "gio/gio.h")]
1210 public const string VFS_EXTENSION_POINT_NAME;
1211 [CCode (cheader_filename = "gio/gio.h")]
1212 public const string VOLUME_IDENTIFIER_KIND_HAL_UDI;
1213 [CCode (cheader_filename = "gio/gio.h")]
1214 public const string VOLUME_IDENTIFIER_KIND_LABEL;
1215 [CCode (cheader_filename = "gio/gio.h")]
1216 public const string VOLUME_IDENTIFIER_KIND_NFS_MOUNT;
1217 [CCode (cheader_filename = "gio/gio.h")]
1218 public const string VOLUME_IDENTIFIER_KIND_UNIX_DEVICE;
1219 [CCode (cheader_filename = "gio/gio.h")]
1220 public const string VOLUME_IDENTIFIER_KIND_UUID;
1221 [CCode (cheader_filename = "gio/gio.h")]
1222 public const string VOLUME_MONITOR_EXTENSION_POINT_NAME;
1223 [CCode (cname = "g_content_type_can_be_executable", cheader_filename = "gio/gio.h")]
1224 public static bool g_content_type_can_be_executable (string type);
1225 [CCode (cname = "g_content_type_equals", cheader_filename = "gio/gio.h")]
1226 public static bool g_content_type_equals (string type1, string type2);
1227 [CCode (cname = "g_content_type_from_mime_type", cheader_filename = "gio/gio.h")]
1228 public static unowned string g_content_type_from_mime_type (string mime_type);
1229 [CCode (cname = "g_content_type_get_description", cheader_filename = "gio/gio.h")]
1230 public static unowned string g_content_type_get_description (string type);
1231 [CCode (cname = "g_content_type_get_icon", cheader_filename = "gio/gio.h")]
1232 public static unowned GLib.Icon g_content_type_get_icon (string type);
1233 [CCode (cname = "g_content_type_get_mime_type", cheader_filename = "gio/gio.h")]
1234 public static unowned string g_content_type_get_mime_type (string type);
1235 [CCode (cname = "g_content_type_guess", cheader_filename = "gio/gio.h")]
1236 public static unowned string g_content_type_guess (string filename, uchar[] data, out bool result_uncertain);
1237 [CCode (cname = "g_content_type_guess_for_tree", cheader_filename = "gio/gio.h")]
1238 public static unowned string g_content_type_guess_for_tree (GLib.File root);
1239 [CCode (cname = "g_content_type_is_a", cheader_filename = "gio/gio.h")]
1240 public static bool g_content_type_is_a (string type, string supertype);
1241 [CCode (cname = "g_content_type_is_unknown", cheader_filename = "gio/gio.h")]
1242 public static bool g_content_type_is_unknown (string type);
1243 [CCode (cname = "g_content_types_get_registered", cheader_filename = "gio/gio.h")]
1244 public static unowned GLib.List g_content_types_get_registered ();
1245 [CCode (cname = "g_io_error_from_errno", cheader_filename = "gio/gio.h")]
1246 public static unowned GLib.IOError g_io_error_from_errno (int err_no);
1247 [CCode (cname = "g_io_error_quark", cheader_filename = "gio/gio.h")]
1248 public static GLib.Quark g_io_error_quark ();
1249 [CCode (cname = "g_io_modules_load_all_in_directory", cheader_filename = "gio/gio.h")]
1250 public static unowned GLib.List g_io_modules_load_all_in_directory (string dirname);
1251 [CCode (cname = "g_io_scheduler_cancel_all_jobs", cheader_filename = "gio/gio.h")]
1252 public static void g_io_scheduler_cancel_all_jobs ();
1253 [CCode (cname = "g_io_scheduler_push_job", cheader_filename = "gio/gio.h")]
1254 public static void g_io_scheduler_push_job (GLib.IOSchedulerJobFunc job_func, GLib.DestroyNotify? notify, int io_priority, GLib.Cancellable? cancellable);
1255 [CCode (cname = "g_simple_async_report_error_in_idle", cheader_filename = "gio/gio.h")]
1256 public static void g_simple_async_report_error_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
1257 [CCode (cname = "g_simple_async_report_gerror_in_idle", cheader_filename = "gio/gio.h")]
1258 public static void g_simple_async_report_gerror_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Error error);