/* gio-2.0.vala generated by lt-vapigen, do not modify. */ [CCode (cprefix = "G", lower_case_cprefix = "g_")] namespace GLib { [CCode (cprefix = "G_APP_INFO_CREATE_", cheader_filename = "gio/gvfs.h")] public enum AppInfoCreateFlags { FLAGS_NONE, NEEDS_TERMINAL, } [CCode (cprefix = "G_DATA_STREAM_BYTE_ORDER_", cheader_filename = "gio/gvfs.h")] public enum DataStreamByteOrder { BIG_ENDIAN, LITTLE_ENDIAN, HOST_ENDIAN, } [CCode (cprefix = "G_DATA_STREAM_NEWLINE_TYPE_", cheader_filename = "gio/gvfs.h")] public enum DataStreamNewlineType { LF, CR, CR_LF, ANY, } [CCode (cprefix = "G_FILE_ATTRIBUTE_FLAGS_", cheader_filename = "gio/gvfs.h")] public enum FileAttributeFlags { NONE, COPY_WITH_FILE, COPY_WHEN_MOVED, } [CCode (cprefix = "G_FILE_ATTRIBUTE_STATUS_", cheader_filename = "gio/gvfs.h")] public enum FileAttributeStatus { UNSET, SET, ERROR_SETTING, } [CCode (cprefix = "G_FILE_ATTRIBUTE_TYPE_", cheader_filename = "gio/gvfs.h")] public enum FileAttributeType { INVALID, STRING, BYTE_STRING, BOOLEAN, UINT32, INT32, UINT64, INT64, OBJECT, } [CCode (cprefix = "G_FILE_COPY_", cheader_filename = "gio/gvfs.h")] public enum FileCopyFlags { OVERWRITE, BACKUP, NOFOLLOW_SYMLINKS, ALL_METADATA, } [CCode (cprefix = "G_FILE_CREATE_FLAGS_", cheader_filename = "gio/gvfs.h")] public enum FileCreateFlags { NONE, PRIVATE, } [CCode (cprefix = "G_FILE_MONITOR_EVENT_", cheader_filename = "gio/gvfs.h")] public enum FileMonitorEvent { CHANGED, CHANGES_DONE_HINT, DELETED, CREATED, ATTRIBUTE_CHANGED, PRE_UNMOUNT, UNMOUNTED, } [CCode (cprefix = "G_FILE_MONITOR_FLAGS_", cheader_filename = "gio/gvfs.h")] public enum FileMonitorFlags { NONE, MONITOR_MOUNTS, } [CCode (cprefix = "G_FILE_QUERY_INFO_NOFOLLOW_", cheader_filename = "gio/gvfs.h")] public enum FileQueryInfoFlags { SYMLINKS, } [CCode (cprefix = "G_FILE_TYPE_", cheader_filename = "gio/gvfs.h")] public enum FileType { UNKNOWN, REGULAR, DIRECTORY, SYMBOLIC_LINK, SPECIAL, SHORTCUT, MOUNTABLE, } [CCode (cprefix = "G_IO_ERROR_", cheader_filename = "gio/gvfs.h")] public enum IOErrorEnum { FAILED, NOT_FOUND, EXISTS, IS_DIRECTORY, NOT_DIRECTORY, NOT_EMPTY, NOT_REGULAR_FILE, NOT_SYMBOLIC_LINK, NOT_MOUNTABLE_FILE, FILENAME_TOO_LONG, INVALID_FILENAME, TOO_MANY_LINKS, NO_SPACE, INVALID_ARGUMENT, PERMISSION_DENIED, NOT_SUPPORTED, NOT_MOUNTED, ALREADY_MOUNTED, CLOSED, CANCELLED, PENDING, READ_ONLY, CANT_CREATE_BACKUP, WRONG_ETAG, TIMED_OUT, WOULD_RECURSE, BUSY, WOULD_BLOCK, HOST_NOT_FOUND, } [CCode (cprefix = "G_PASSWORD_FLAGS_", cheader_filename = "gio/gvfs.h")] public enum PasswordFlags { NEED_PASSWORD, NEED_USERNAME, NEED_DOMAIN, SAVING_SUPPORTED, ANON_SUPPORTED, } [CCode (cprefix = "G_PASSWORD_SAVE_", cheader_filename = "gio/gvfs.h")] public enum PasswordSave { NEVER, FOR_SESSION, PERMANENTLY, } [CCode (cprefix = "G_UNIX_MOUNT_TYPE_", cheader_filename = "gio/gvfs.h")] public enum UnixMountType { UNKNOWN, FLOPPY, CDROM, NFS, ZIP, JAZ, MEMSTICK, CF, SM, SDMMC, IPOD, CAMERA, HD, } [CCode (cheader_filename = "gio/gvfs.h")] public class IOModule : GLib.TypeModule { public static GLib.Type get_type (); public void load (); public IOModule (string filename); public void unload (); } [CCode (cheader_filename = "gio/gvfs.h")] public class BufferedInputStream : GLib.FilterInputStream { public virtual long fill (long count, GLib.Cancellable cancellable) throws GLib.Error; public virtual void fill_async (long count, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public virtual long fill_finish (GLib.AsyncResult result) throws GLib.Error; public ulong get_availible (); public ulong get_buffer_size (); public static GLib.Type get_type (); public BufferedInputStream (GLib.InputStream base_stream); public BufferedInputStream.sized (GLib.InputStream base_stream, ulong size); public ulong peek (pointer buffer, ulong offset, ulong count); public void set_buffer_size (ulong size); public weak uint buffer_size { get; set construct; } } [CCode (cheader_filename = "gio/gvfs.h")] public class BufferedOutputStream : GLib.FilterOutputStream { public bool get_auto_grow (); public ulong get_buffer_size (); public static GLib.Type get_type (); public BufferedOutputStream (GLib.OutputStream base_stream); public BufferedOutputStream.sized (GLib.OutputStream base_stream, uint size); public void set_auto_grow (bool auto_grow); public void set_buffer_size (ulong size); public weak uint buffer_size { get; construct; } } [CCode (cheader_filename = "gio/gvfs.h")] public class Cancellable : GLib.Object { public void cancel (); public static weak GLib.Cancellable get_current (); public int get_fd (); public static GLib.Type get_type (); public bool is_cancelled (); public Cancellable (); public void reset (); public bool set_error_if_cancelled () throws GLib.Error; public signal void cancelled (); } [CCode (cheader_filename = "gio/gvfs.h")] public class DataInputStream : GLib.BufferedInputStream { public GLib.DataStreamByteOrder get_byte_order (); public GLib.DataStreamNewlineType get_newline_type (); public static GLib.Type get_type (); public DataInputStream (GLib.InputStream base_stream); public uchar read_byte (GLib.Cancellable cancellable) throws GLib.Error; public short read_int16 (GLib.Cancellable cancellable) throws GLib.Error; public int read_int32 (GLib.Cancellable cancellable) throws GLib.Error; public int64 read_int64 (GLib.Cancellable cancellable) throws GLib.Error; public weak string read_line (ulong length, GLib.Cancellable cancellable) throws GLib.Error; public ushort read_uint16 (GLib.Cancellable cancellable) throws GLib.Error; public uint read_uint32 (GLib.Cancellable cancellable) throws GLib.Error; public uint64 read_uint64 (GLib.Cancellable cancellable) throws GLib.Error; public weak string read_until (char stop_char, ulong length, GLib.Cancellable cancellable) throws GLib.Error; public void set_byte_order (GLib.DataStreamByteOrder order); public void set_newline_type (GLib.DataStreamNewlineType type); } [CCode (cheader_filename = "gio/gvfs.h")] public class DataOutputStream : GLib.FilterOutputStream { public GLib.DataStreamByteOrder get_byte_order (); public static GLib.Type get_type (); public DataOutputStream (GLib.OutputStream base_stream); public bool put_byte (uchar data, GLib.Cancellable cancellable) throws GLib.Error; public bool put_int16 (short data, GLib.Cancellable cancellable) throws GLib.Error; public bool put_int32 (int data, GLib.Cancellable cancellable) throws GLib.Error; public bool put_int64 (int64 data, GLib.Cancellable cancellable) throws GLib.Error; public bool put_string (string str, GLib.Cancellable cancellable) throws GLib.Error; public bool put_uint16 (ushort data, GLib.Cancellable cancellable) throws GLib.Error; public bool put_uint32 (uint data, GLib.Cancellable cancellable) throws GLib.Error; public bool put_uint64 (uint64 data, GLib.Cancellable cancellable) throws GLib.Error; public void set_byte_order (GLib.DataStreamByteOrder order); public void set_expand_buffer (bool expand_buffer); } [CCode (cheader_filename = "gio/gvfs.h")] public class DesktopAppInfo : GLib.Object, GLib.AppInfo { public bool get_is_hidden (); public static GLib.Type get_type (); public DesktopAppInfo (string desktop_id); public DesktopAppInfo.from_filename (string filename); } [CCode (cheader_filename = "gio/gvfs.h")] public class DirectoryMonitor : GLib.Object { public virtual bool cancel (); public void emit_event (GLib.File child, GLib.File other_file, GLib.FileMonitorEvent event_type); public static GLib.Type get_type (); public bool is_cancelled (); public void set_rate_limit (int limit_msecs); public signal void changed (GLib.File child, GLib.File other_file, GLib.FileMonitorEvent event_type); } [CCode (cheader_filename = "gio/gvfs.h")] public class DummyFile : GLib.Object, GLib.File { public static GLib.Type get_type (); public DummyFile (string uri); } [CCode (cheader_filename = "gio/gvfs.h")] public class FileEnumerator : GLib.Object { public virtual bool close (GLib.Cancellable cancellable) throws GLib.Error; public virtual void close_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public virtual bool close_finish (GLib.AsyncResult res) throws GLib.Error; public static GLib.Type get_type (); public bool has_pending (); public bool is_closed (); public virtual weak GLib.FileInfo next_file (GLib.Cancellable cancellable) throws GLib.Error; public virtual void next_files_async (int num_files, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public virtual weak GLib.List next_files_finish (GLib.AsyncResult res) throws GLib.Error; public void set_pending (bool pending); } [CCode (cheader_filename = "gio/gvfs.h")] public class FileIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon { public weak GLib.File get_file (); public static GLib.Type get_type (); public FileIcon (GLib.File file); } [CCode (cheader_filename = "gio/gvfs.h")] public class FileInfo : GLib.Object { public void clear_status (); public void copy_into (GLib.FileInfo dest); public weak GLib.FileInfo dup (); public weak GLib.FileAttributeValue get_attribute (string attribute); public bool get_attribute_boolean (string attribute); public weak string get_attribute_byte_string (string attribute); public int get_attribute_int32 (string attribute); public int64 get_attribute_int64 (string attribute); public weak GLib.Object get_attribute_object (string attribute); public weak string get_attribute_string (string attribute); public GLib.FileAttributeType get_attribute_type (string attribute); public uint get_attribute_uint32 (string attribute); public uint64 get_attribute_uint64 (string attribute); public weak string get_content_type (); public weak string get_display_name (); public weak string get_edit_name (); public weak string get_etag (); public GLib.FileType get_file_type (); public weak GLib.Icon get_icon (); public bool get_is_backup (); public bool get_is_hidden (); public bool get_is_symlink (); public void get_modification_time (out GLib.TimeVal result); public weak string get_name (); public int64 get_size (); public int get_sort_order (); public weak string get_symlink_target (); public static GLib.Type get_type (); public bool has_attribute (string attribute); public weak string list_attributes (string name_space); public FileInfo (); public void remove_attribute (string attribute); public void set_attribute (string attribute, GLib.FileAttributeValue value); public void set_attribute_boolean (string attribute, bool value); public void set_attribute_byte_string (string attribute, string value); public void set_attribute_int32 (string attribute, int value); public void set_attribute_int64 (string attribute, int64 value); public void set_attribute_mask (GLib.FileAttributeMatcher mask); public void set_attribute_object (string attribute, GLib.Object value); public void set_attribute_string (string attribute, string value); public void set_attribute_uint32 (string attribute, uint value); public void set_attribute_uint64 (string attribute, uint64 value); public void set_content_type (string content_type); public void set_display_name (string display_name); public void set_edit_name (string edit_name); public void set_file_type (GLib.FileType type); public void set_icon (GLib.Icon icon); public void set_is_hidden (bool is_hidden); public void set_is_symlink (bool is_symlink); public void set_modification_time (out GLib.TimeVal mtime); public void set_name (string name); public void set_size (int64 size); public void set_sort_order (int sort_order); public void set_symlink_target (string symlink_target); public void unset_attribute_mask (); } [CCode (cheader_filename = "gio/gvfs.h")] public class FileInputStream : GLib.InputStream, GLib.Seekable { public virtual bool can_seek (); public static GLib.Type get_type (); public virtual weak GLib.FileInfo query_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error; public virtual void query_info_async (string attributes, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public virtual weak GLib.FileInfo query_info_finish (GLib.AsyncResult res) throws GLib.Error; public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable cancellable) throws GLib.Error; public virtual int64 tell (); } [CCode (cheader_filename = "gio/gvfs.h")] public class FileMonitor : GLib.Object { public virtual bool cancel (); public static weak GLib.DirectoryMonitor directory (GLib.File file, GLib.FileMonitorFlags flags, GLib.Cancellable cancellable); public void emit_event (GLib.File file, GLib.File other_file, GLib.FileMonitorEvent event_type); public static weak GLib.FileMonitor file (GLib.File file, GLib.FileMonitorFlags flags, GLib.Cancellable cancellable); public static GLib.Type get_type (); public bool is_cancelled (); public void set_rate_limit (int limit_msecs); public signal void changed (GLib.File file, GLib.File other_file, GLib.FileMonitorEvent event_type); } [CCode (cheader_filename = "gio/gvfs.h")] public class FileOutputStream : GLib.OutputStream, GLib.Seekable { public virtual bool can_seek (); public virtual bool can_truncate (); public virtual weak string get_etag (); public static GLib.Type get_type (); public virtual weak GLib.FileInfo query_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error; public virtual void query_info_async (string attributes, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public virtual weak GLib.FileInfo query_info_finish (GLib.AsyncResult res) throws GLib.Error; public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable cancellable) throws GLib.Error; public virtual int64 tell (); public virtual bool truncate (int64 size, GLib.Cancellable cancellable) throws GLib.Error; } [CCode (cheader_filename = "gio/gvfs.h")] public class FilterInputStream : GLib.InputStream { public weak GLib.InputStream get_base_stream (); public static GLib.Type get_type (); [NoAccessorMethod] public weak GLib.InputStream base_stream { get; construct; } } [CCode (cheader_filename = "gio/gvfs.h")] public class FilterOutputStream : GLib.OutputStream { public weak GLib.OutputStream get_base_stream (); public static GLib.Type get_type (); [NoAccessorMethod] public weak GLib.OutputStream base_stream { get; construct; } } [CCode (cheader_filename = "gio/gvfs.h")] public class InputStream : GLib.Object { public virtual bool close (GLib.Cancellable cancellable) throws GLib.Error; public virtual void close_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public virtual bool close_finish (GLib.AsyncResult result) throws GLib.Error; public static GLib.Type get_type (); public bool has_pending (); public bool is_closed (); public virtual long read (pointer buffer, ulong count, GLib.Cancellable cancellable) throws GLib.Error; public bool read_all (pointer buffer, ulong count, ulong bytes_read, GLib.Cancellable cancellable) throws GLib.Error; public virtual void read_async (pointer buffer, ulong count, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public virtual long read_finish (GLib.AsyncResult result) throws GLib.Error; public void set_pending (bool pending); public virtual long skip (ulong count, GLib.Cancellable cancellable) throws GLib.Error; public virtual void skip_async (ulong count, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public virtual long skip_finish (GLib.AsyncResult result) throws GLib.Error; } [CCode (cheader_filename = "gio/gvfs.h")] public class LocalDirectoryMonitor : GLib.DirectoryMonitor { public static GLib.Type get_type (); public LocalDirectoryMonitor (string dirname, GLib.FileMonitorFlags flags); } [CCode (cheader_filename = "gio/gvfs.h")] public class LocalFile : GLib.Object, GLib.File { public static GLib.Type get_type (); public LocalFile (string filename); } [CCode (cheader_filename = "gio/gvfs.h")] public class LocalFileEnumerator : GLib.FileEnumerator { public static GLib.Type get_type (); public LocalFileEnumerator (string filename, string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; } [CCode (cheader_filename = "gio/gvfs.h")] public class LocalFileInputStream : GLib.FileInputStream { public static GLib.Type get_type (); public LocalFileInputStream (int fd); } [CCode (cheader_filename = "gio/gvfs.h")] public class LocalFileMonitor : GLib.FileMonitor { public static GLib.Type get_type (); public LocalFileMonitor (string dirname, GLib.FileMonitorFlags flags); } [CCode (cheader_filename = "gio/gvfs.h")] public class LocalFileOutputStream : GLib.FileOutputStream { public static weak GLib.FileOutputStream append (string filename, GLib.FileCreateFlags flags, GLib.Cancellable cancellable) throws GLib.Error; public static weak GLib.FileOutputStream create (string filename, GLib.FileCreateFlags flags, GLib.Cancellable cancellable) throws GLib.Error; public static GLib.Type get_type (); public static weak GLib.FileOutputStream replace (string filename, string etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable cancellable) throws GLib.Error; } [CCode (cheader_filename = "gio/gvfs.h")] public class LocalVfs : GLib.Vfs { public static GLib.Type get_type (); public LocalVfs (); } [CCode (cheader_filename = "gio/gvfs.h")] public class MemoryInputStream : GLib.InputStream, GLib.Seekable { public static weak GLib.InputStream from_data (pointer data, long len); public pointer get_data (); public ulong get_data_size (); public static GLib.Type get_type (); public void set_free_data (bool free_data); } [CCode (cheader_filename = "gio/gvfs.h")] public class MemoryOutputStream : GLib.OutputStream, GLib.Seekable { public weak GLib.ByteArray get_data (); public static GLib.Type get_type (); public MemoryOutputStream (GLib.ByteArray data); public void set_free_on_close (bool free_on_close); public void set_max_size (uint max_size); [NoAccessorMethod] public weak pointer data { get; set construct; } [NoAccessorMethod] public weak bool free_array { get; set; } [NoAccessorMethod] public weak uint size_limit { get; set; } } [CCode (cheader_filename = "gio/gvfs.h")] public class MountOperation : GLib.Object { public bool get_anonymous (); public int get_choice (); public weak string get_domain (); public weak string get_password (); public GLib.PasswordSave get_password_save (); public static GLib.Type get_type (); public weak string get_username (); public MountOperation (); public void set_anonymous (bool anonymous); public void set_choice (int choice); public void set_domain (string domain); public void set_password (string password); public void set_password_save (GLib.PasswordSave save); public void set_username (string username); public signal bool ask_password (string message, string default_user, string default_domain, GLib.PasswordFlags flags); public signal bool ask_question (string message, string[] choices); [HasEmitter] public signal void reply (bool abort); } [CCode (cheader_filename = "gio/gvfs.h")] public class OutputStream : GLib.Object { public virtual bool close (GLib.Cancellable cancellable) throws GLib.Error; public virtual void close_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public virtual bool close_finish (GLib.AsyncResult result) throws GLib.Error; public virtual bool flush (GLib.Cancellable cancellable) throws GLib.Error; public virtual void flush_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public virtual bool flush_finish (GLib.AsyncResult result) throws GLib.Error; public static GLib.Type get_type (); public bool has_pending (); public bool is_closed (); public void set_pending (bool pending); public virtual long write (pointer buffer, ulong count, GLib.Cancellable cancellable) throws GLib.Error; public bool write_all (pointer buffer, ulong count, ulong bytes_written, GLib.Cancellable cancellable) throws GLib.Error; public virtual void write_async (pointer buffer, ulong count, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public virtual long write_finish (GLib.AsyncResult result) throws GLib.Error; } [CCode (cheader_filename = "gio/gvfs.h")] public class PollFileMonitor : GLib.FileMonitor { public static GLib.Type get_type (); public PollFileMonitor (GLib.File file); } [CCode (cheader_filename = "gio/gvfs.h")] public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult { public void complete (); public void complete_in_idle (); public bool get_op_res_gboolean (); public pointer get_op_res_gpointer (); public long get_op_res_gssize (); public pointer get_source_tag (); public static GLib.Type get_type (); public SimpleAsyncResult (GLib.Object source_object, GLib.AsyncReadyCallback callback, pointer user_data, pointer source_tag); public SimpleAsyncResult.error (GLib.Object source_object, GLib.AsyncReadyCallback callback, pointer user_data, GLib.Quark domain, int code, string format); public SimpleAsyncResult.from_error (GLib.Object source_object, GLib.AsyncReadyCallback callback, pointer user_data) throws GLib.Error; public bool propagate_error () throws GLib.Error; public void run_in_thread (GLib.SimpleAsyncThreadFunc func, int io_priority, GLib.Cancellable cancellable); public void set_error (GLib.Quark domain, int code, string format); public void set_error_va (GLib.Quark domain, int code, string format, pointer args); public void set_from_error () throws GLib.Error; public void set_handle_cancellation (bool handle_cancellation); public void set_op_res_gboolean (bool op_res); public void set_op_res_gpointer (pointer op_res, GLib.DestroyNotify destroy_op_res); public void set_op_res_gssize (long op_res); } [CCode (cheader_filename = "gio/gvfs.h")] public class SocketInputStream : GLib.InputStream { public static GLib.Type get_type (); public SocketInputStream (int fd, bool close_fd_at_close); } [CCode (cheader_filename = "gio/gvfs.h")] public class SocketOutputStream : GLib.OutputStream { public static GLib.Type get_type (); public SocketOutputStream (int fd, bool close_fd_at_close); } [CCode (cheader_filename = "gio/gvfs.h")] public class ThemedIcon : GLib.Object, GLib.Icon { public weak string get_names (); public static GLib.Type get_type (); public ThemedIcon (string iconname); [NoArrayLength] public ThemedIcon.from_names (string[] iconnames, int len); } [CCode (cheader_filename = "gio/gvfs.h")] public class UnionDrive : GLib.Object, GLib.Drive { public bool child_is_for_monitor (GLib.VolumeMonitor child_monitor); public static GLib.Type get_type (); public bool is_for_child_drive (GLib.Drive child_drive); public UnionDrive (GLib.VolumeMonitor union_monitor, GLib.Drive child_drive, GLib.VolumeMonitor child_monitor); } [CCode (cheader_filename = "gio/gvfs.h")] public class UnionVolume : GLib.Object, GLib.Volume { public void add_volume (GLib.Volume volume, GLib.VolumeMonitor monitor); public weak GLib.Volume get_child_for_monitor (GLib.VolumeMonitor child_monitor); public static GLib.Type get_type (); public bool has_child_volume (GLib.Volume child_volume); public bool is_last_child (GLib.Volume child_volume); public UnionVolume (GLib.VolumeMonitor union_monitor, GLib.Volume volume, GLib.VolumeMonitor monitor); public void remove_volume (GLib.Volume volume); } [CCode (cheader_filename = "gio/gvfs.h")] public class UnionVolumeMonitor : GLib.VolumeMonitor { public weak GLib.Drive convert_drive (GLib.Drive child_drive); public weak GLib.List convert_volumes (GLib.List child_volumes); public static GLib.Type get_type (); } [CCode (cheader_filename = "gio/gvfs.h")] public class UnixDrive : GLib.Object, GLib.Drive { public void disconnected (); public static GLib.Type get_type (); public bool has_mountpoint (string mountpoint); public UnixDrive (GLib.VolumeMonitor volume_monitor, GLib.UnixMountPoint mountpoint); public void set_volume (GLib.UnixVolume volume); public void unset_volume (GLib.UnixVolume volume); } [CCode (cheader_filename = "gio/gvfs.h")] public class UnixVolume : GLib.Object, GLib.Volume { public static GLib.Type get_type (); public bool has_mountpoint (string mountpoint); public UnixVolume (GLib.VolumeMonitor volume_monitor, GLib.UnixMount mount); public void unmounted (); public void unset_drive (GLib.UnixDrive drive); } [CCode (cheader_filename = "gio/gvfs.h")] public class UnixVolumeMonitor : GLib.VolumeMonitor { public static GLib.Type get_type (); public weak GLib.UnixDrive lookup_drive_for_mountpoint (string mountpoint); public UnixVolumeMonitor (); } [CCode (cheader_filename = "gio/gvfs.h")] public class Vfs : GLib.Object { public static weak GLib.Vfs get_default (); public virtual weak GLib.File get_file_for_path (string path); public virtual weak GLib.File get_file_for_uri (string uri); public static weak GLib.Vfs get_local (); public weak string get_name (); public virtual int get_priority (); public weak string get_supported_uri_schemes (); public static GLib.Type get_type (); public virtual weak GLib.File parse_name (string parse_name); } [CCode (cheader_filename = "gio/gvfs.h")] public class VolumeMonitor : GLib.Object { public static weak GLib.VolumeMonitor get (); public virtual weak GLib.List get_connected_drives (); public virtual weak GLib.List get_mounted_volumes (); public static GLib.Type get_type (); public signal void volume_mounted (GLib.Volume volume); public signal void volume_pre_unmount (GLib.Volume volume); public signal void volume_unmounted (GLib.Volume volume); public signal void drive_connected (GLib.Drive drive); public signal void drive_disconnected (GLib.Drive drive); } [CCode (cheader_filename = "gio/gvfs.h")] public class Win32AppInfo : GLib.Object, GLib.AppInfo { public static GLib.Type get_type (); } [CCode (cheader_filename = "gio/gvfs.h")] public class AsyncResultData { public pointer async_object; public weak GLib.Error error; public pointer user_data; } [CCode (cheader_filename = "gio/gvfs.h")] public class FileAttributeInfo { public weak string name; public GLib.FileAttributeType type; public GLib.FileAttributeFlags flags; } [CCode (ref_function = "g_file_attribute_info_list_ref", unref_function = "g_file_attribute_info_list_unref", cheader_filename = "gio/gvfs.h")] public class FileAttributeInfoList { public weak GLib.FileAttributeInfo infos; public int n_infos; public void add (string name, GLib.FileAttributeType type, GLib.FileAttributeFlags flags); public weak GLib.FileAttributeInfoList dup (); public weak GLib.FileAttributeInfo lookup (string name); public FileAttributeInfoList (); } [CCode (ref_function = "g_file_attribute_matcher_ref", unref_function = "g_file_attribute_matcher_unref", cheader_filename = "gio/gvfs.h")] public class FileAttributeMatcher { public bool enumerate_namespace (string @namespace); public weak string enumerate_next (); public bool matches (string full_name); public bool matches_only (string full_name); public FileAttributeMatcher (string attributes); } [CCode (cheader_filename = "gio/gvfs.h")] public class FileAttributeValue { public GLib.FileAttributeType type; public GLib.FileAttributeStatus status; public bool boolean; public int int32; public uint uint32; public int64 int64; public uint64 uint64; public weak string string; public GLib.Quark quark; public weak GLib.Object obj; public weak string as_string (); public void clear (); public weak GLib.FileAttributeValue dup (); public bool get_boolean (); public weak string get_byte_string (); public int get_int32 (); public int64 get_int64 (); public weak GLib.Object get_object (); public weak string get_string (); public uint get_uint32 (); public uint64 get_uint64 (); public FileAttributeValue (); public void set (GLib.FileAttributeValue new_value); public void set_boolean (bool value); public void set_byte_string (string value); public void set_int32 (int value); public void set_int64 (int64 value); public void set_object (GLib.Object obj); public void set_string (string value); public void set_uint32 (uint value); public void set_uint64 (uint64 value); } [CCode (cheader_filename = "gio/gvfs.h")] public class IOJob { public void send_to_mainloop (GLib.IODataFunc func, pointer user_data, GLib.DestroyNotify notify, bool block); } [CCode (cheader_filename = "gio/gvfs.h")] public class LocalParentFileInfo { public bool writable; public bool is_sticky; public int owner; } [CCode (cheader_filename = "gio/gvfs.h")] public class UnixMount { public int compare (GLib.UnixMount mount_entry2); public weak string get_device_path (); public weak string get_fs_type (); public weak string get_mount_path (); public GLib.UnixMountType guess_type (); public bool is_readonly (); } [CCode (cheader_filename = "gio/gvfs.h")] public class UnixMountPoint { public int compare (GLib.UnixMountPoint mount_point2); public weak string get_device_path (); public weak string get_fs_type (); public weak string get_mount_path (); public GLib.UnixMountType guess_type (); public bool is_loopback (); public bool is_readonly (); public bool is_user_mountable (); } [CCode (cheader_filename = "gio/gvfs.h")] public interface AppInfo { public abstract bool add_supports_type (string content_type) throws GLib.Error; public abstract bool can_remove_supports_type (); public static weak GLib.AppInfo create_from_commandline (string commandline, string application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error; public abstract weak GLib.AppInfo dup (); public abstract bool equal (GLib.AppInfo appinfo2); public static weak GLib.List get_all (); public static weak GLib.List get_all_for_type (string content_type); public static weak GLib.AppInfo get_default_for_type (string content_type, bool must_support_uris); public weak string get_description (); public weak string get_executable (); public abstract weak GLib.Icon get_icon (); public weak string get_id (); public weak string get_name (); public static GLib.Type get_type (); [NoArrayLength] public abstract bool launch (GLib.List files, string[] envp) throws GLib.Error; [NoArrayLength] public abstract bool launch_uris (GLib.List uris, string[] envp) throws GLib.Error; public abstract bool remove_supports_type (string content_type) throws GLib.Error; public abstract bool set_as_default_for_extension (string extension) throws GLib.Error; public abstract bool set_as_default_for_type (string content_type) throws GLib.Error; public abstract bool should_show (string desktop_env); public abstract bool supports_uris (); public abstract bool supports_xdg_startup_notify (); } [CCode (cheader_filename = "gio/gvfs.h")] public interface AsyncResult { public abstract weak GLib.Object get_source_object (); public static GLib.Type get_type (); public abstract pointer get_user_data (); } [CCode (cheader_filename = "gio/gvfs.h")] public interface Drive { public abstract bool can_eject (); public abstract bool can_mount (); public abstract void eject (GLib.AsyncReadyCallback callback, pointer user_data); public abstract bool eject_finish (GLib.AsyncResult result) throws GLib.Error; public abstract weak GLib.Icon get_icon (); public abstract weak string get_name (); public static GLib.Type get_type (); public abstract weak GLib.List get_volumes (); public abstract bool is_automounted (); public abstract void mount (GLib.MountOperation mount_operation, GLib.AsyncReadyCallback callback, pointer user_data); public abstract bool mount_finish (GLib.AsyncResult result) throws GLib.Error; public signal void changed (); } [CCode (cheader_filename = "gio/gfile.h")] public interface File { public abstract weak GLib.FileOutputStream append_to (GLib.FileCreateFlags flags, GLib.Cancellable cancellable) throws GLib.Error; public abstract void append_to_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public abstract weak GLib.FileOutputStream append_to_finish (GLib.AsyncResult res) throws GLib.Error; public abstract bool contains_file (GLib.File descendant); public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable cancellable, GLib.FileProgressCallback progress_callback, pointer progress_callback_data) throws GLib.Error; public abstract weak GLib.FileOutputStream create (GLib.FileCreateFlags flags, GLib.Cancellable cancellable) throws GLib.Error; public abstract void create_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public abstract weak GLib.FileOutputStream create_finish (GLib.AsyncResult res) throws GLib.Error; public bool delete (GLib.Cancellable cancellable) throws GLib.Error; public abstract weak GLib.File dup (); public abstract void eject_mountable (GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public abstract bool eject_mountable_finish (GLib.AsyncResult result) throws GLib.Error; public abstract weak GLib.FileEnumerator enumerate_children (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; public abstract void enumerate_children_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public abstract weak GLib.FileEnumerator enumerate_children_finish (GLib.AsyncResult res) throws GLib.Error; public abstract bool equal (GLib.File file2); public abstract weak string get_basename (); public weak GLib.File get_child (string name); public abstract weak GLib.File get_child_for_display_name (string display_name) throws GLib.Error; public abstract weak GLib.File get_parent (); public abstract weak string get_parse_name (); public abstract weak string get_path (); public abstract weak string get_relative_path (GLib.File descendant); public static GLib.Type get_type (); public abstract weak string get_uri (); public static uint hash (pointer file); public abstract bool is_native (); public bool load_contents (GLib.Cancellable cancellable, out string contents, ulong length, out string etag_out) throws GLib.Error; public void load_contents_async (GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public bool load_contents_finish (GLib.AsyncResult res, out string contents, ulong length, out string etag_out) throws GLib.Error; public void load_partial_contents_async (GLib.Cancellable cancellable, GLib.FileReadMoreCallback read_more_callback, GLib.AsyncReadyCallback callback, pointer user_data); public bool load_partial_contents_finish (GLib.AsyncResult res, out string contents, ulong length, out string etag_out) throws GLib.Error; public abstract bool make_directory (GLib.Cancellable cancellable) throws GLib.Error; public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable cancellable) throws GLib.Error; public abstract void mount_mountable (GLib.MountOperation mount_operation, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public abstract weak GLib.File mount_mountable_finish (GLib.AsyncResult result) throws GLib.Error; public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable cancellable, GLib.FileProgressCallback progress_callback, pointer progress_callback_data) throws GLib.Error; public static weak GLib.File new_for_commandline_arg (string arg); public static weak GLib.File new_for_path (string path); public static weak GLib.File new_for_uri (string uri); public static weak GLib.File parse_name (string parse_name); public abstract weak GLib.FileInfo query_filesystem_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error; public abstract weak GLib.FileInfo query_info (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; public abstract void query_info_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public abstract weak GLib.FileInfo query_info_finish (GLib.AsyncResult res) throws GLib.Error; public abstract weak GLib.FileAttributeInfoList query_settable_attributes (GLib.Cancellable cancellable) throws GLib.Error; public abstract weak GLib.FileAttributeInfoList query_writable_namespaces (GLib.Cancellable cancellable) throws GLib.Error; public abstract weak GLib.FileInputStream read (GLib.Cancellable cancellable) throws GLib.Error; public abstract void read_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public abstract weak GLib.FileInputStream read_finish (GLib.AsyncResult res) throws GLib.Error; public abstract weak GLib.FileOutputStream replace (string etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable cancellable) throws GLib.Error; public abstract void replace_async (string etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public bool replace_contents (string contents, ulong length, string etag, bool make_backup, GLib.FileCreateFlags flags, out string new_etag, GLib.Cancellable cancellable) throws GLib.Error; public void replace_contents_async (string contents, ulong length, string etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public bool replace_contents_finish (GLib.AsyncResult res, out string new_etag) throws GLib.Error; public abstract weak GLib.FileOutputStream replace_finish (GLib.AsyncResult res) throws GLib.Error; public abstract weak GLib.File resolve_relative_path (string relative_path); public abstract bool set_attribute (string attribute, GLib.FileAttributeValue value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; public bool set_attribute_byte_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; public bool set_attribute_int32 (string attribute, int value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; public bool set_attribute_int64 (string attribute, int64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; public bool set_attribute_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; public bool set_attribute_uint32 (string attribute, uint value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; public abstract void set_attributes_async (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public abstract bool set_attributes_finish (GLib.AsyncResult result, GLib.FileInfo info) throws GLib.Error; public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; public abstract weak GLib.File set_display_name (string display_name, GLib.Cancellable cancellable) throws GLib.Error; public abstract void set_display_name_async (string display_name, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public abstract weak GLib.File set_display_name_finish (GLib.AsyncResult res) throws GLib.Error; public abstract bool trash (GLib.Cancellable cancellable) throws GLib.Error; public abstract void unmount_mountable (GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public abstract bool unmount_mountable_finish (GLib.AsyncResult result) throws GLib.Error; } [CCode (cheader_filename = "gio/gvfs.h")] public interface Icon { public abstract bool equal (GLib.Icon icon2); public static GLib.Type get_type (); public static uint hash (pointer icon); } [CCode (cheader_filename = "gio/gvfs.h")] public interface LoadableIcon { public static GLib.Type get_type (); public abstract weak GLib.InputStream load (int size, out string type, GLib.Cancellable cancellable) throws GLib.Error; public abstract void load_async (int size, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); public abstract weak GLib.InputStream load_finish (GLib.AsyncResult res, out string type) throws GLib.Error; } [CCode (cheader_filename = "gio/gvfs.h")] public interface Seekable { public abstract bool can_seek (); public abstract bool can_truncate (); public static GLib.Type get_type (); public abstract bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable cancellable) throws GLib.Error; public abstract int64 tell (); public abstract bool truncate (int64 offset, GLib.Cancellable cancellable) throws GLib.Error; } [CCode (cheader_filename = "gio/gvfs.h")] public interface Volume { public abstract bool can_eject (); public abstract bool can_unmount (); public abstract void eject (GLib.AsyncReadyCallback callback, pointer user_data); public abstract bool eject_finish (GLib.AsyncResult result) throws GLib.Error; public abstract weak GLib.Drive get_drive (); public abstract weak GLib.Icon get_icon (); public abstract weak string get_name (); public abstract weak GLib.File get_root (); public static GLib.Type get_type (); public abstract void unmount (GLib.AsyncReadyCallback callback, pointer user_data); public abstract bool unmount_finish (GLib.AsyncResult result) throws GLib.Error; public signal void changed (); } public static delegate void AsyncReadyCallback (GLib.Object source_object, GLib.AsyncResult res, pointer user_data); public static delegate bool FDSourceFunc (pointer user_data, GLib.IOCondition condition, int fd); public static delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes, pointer user_data); public static delegate bool FileReadMoreCallback (string file_contents, int64 file_size, pointer callback_data); public static delegate void IODataFunc (pointer user_data); public static delegate void IOJobFunc (GLib.IOJob job, GLib.Cancellable cancellable, pointer user_data); public static delegate void SimpleAsyncThreadFunc (GLib.SimpleAsyncResult res, GLib.Object object, GLib.Cancellable cancellable); public static delegate void UnixMountCallback (pointer user_data); }