diff --git a/ChangeLog b/ChangeLog index 3b5fe1e95862050eb0834aa38d9d29ea3d5ec980..8e8a050de823b59fdd5f202860a5941fceadda0b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-10-09 Jürg Billeter + + * vapi/packages/gio-2.0/: renamed from gio-standalone and updated to + current svn trunk + * vapi/gio-2.0.vala: regenerated + * vapi/Makefile.am: updated + 2007-10-08 Jürg Billeter * vala/valaparser.vala, compiler/valacompiler.vala: use .vapi as file diff --git a/vapi/Makefile.am b/vapi/Makefile.am index 092b3c491db599e613b9d5ea4ca9790ad79f1029..aec54e7855de2c239a22ea0ecf246376f8e7c5bc 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -18,7 +18,7 @@ dist_vapi_DATA = \ glib-2.0.vala \ gdk-2.0.deps \ gdk-2.0.vala \ - gio-standalone.vala \ + gio-2.0.vala \ gnome-desktop-2.0.vala \ gnome-vfs-2.0.vala \ gstreamer-0.10.vala \ diff --git a/vapi/gio-standalone.vala b/vapi/gio-2.0.vala similarity index 81% rename from vapi/gio-standalone.vala rename to vapi/gio-2.0.vala index b48d142d14c7c413907e1d97dd529282abd2eb7b..dbdda954f8dc9b194ba1938b2c4d97dc750cbe58 100644 --- a/vapi/gio-standalone.vala +++ b/vapi/gio-2.0.vala @@ -1,7 +1,12 @@ -/* gio-standalone.vala generated by lt-vapigen, do not modify. */ +/* 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, @@ -46,9 +51,10 @@ namespace GLib { NOFOLLOW_SYMLINKS, ALL_METADATA, } - [CCode (cprefix = "G_FILE_GET_INFO_NOFOLLOW_", cheader_filename = "gio/gvfs.h")] - public enum FileGetInfoFlags { - SYMLINKS, + [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 { @@ -65,6 +71,10 @@ namespace GLib { 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, @@ -85,7 +95,7 @@ namespace GLib { NOT_EMPTY, NOT_REGULAR_FILE, NOT_SYMBOLIC_LINK, - NOT_MOUNTABLE, + NOT_MOUNTABLE_FILE, FILENAME_TOO_LONG, INVALID_FILENAME, TOO_MANY_LINKS, @@ -105,6 +115,7 @@ namespace GLib { WOULD_RECURSE, BUSY, WOULD_BLOCK, + HOST_NOT_FOUND, } [CCode (cprefix = "G_PASSWORD_FLAGS_", cheader_filename = "gio/gvfs.h")] public enum PasswordFlags { @@ -182,19 +193,19 @@ namespace GLib { } [CCode (cheader_filename = "gio/gvfs.h")] public class DataInputStream : GLib.BufferedInputStream { - public uchar get_byte (GLib.Cancellable cancellable) throws GLib.Error; public GLib.DataStreamByteOrder get_byte_order (); - public short get_int16 (GLib.Cancellable cancellable) throws GLib.Error; - public int get_int32 (GLib.Cancellable cancellable) throws GLib.Error; - public int64 get_int64 (GLib.Cancellable cancellable) throws GLib.Error; - public weak string get_line (ulong length, GLib.Cancellable cancellable) throws GLib.Error; public GLib.DataStreamNewlineType get_newline_type (); public static GLib.Type get_type (); - public ushort get_uint16 (GLib.Cancellable cancellable) throws GLib.Error; - public uint get_uint32 (GLib.Cancellable cancellable) throws GLib.Error; - public uint64 get_uint64 (GLib.Cancellable cancellable) throws GLib.Error; - public weak string get_until (char stop_char, ulong length, GLib.Cancellable cancellable) throws GLib.Error; 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); } @@ -216,12 +227,15 @@ namespace GLib { } [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); @@ -272,6 +286,7 @@ namespace GLib { 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); @@ -311,16 +326,19 @@ namespace GLib { [CCode (cheader_filename = "gio/gvfs.h")] public class FileInputStream : GLib.InputStream, GLib.Seekable { public virtual bool can_seek (); - public virtual weak GLib.FileInfo get_file_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error; 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); - public static weak GLib.FileMonitor file (GLib.File file, GLib.FileMonitorFlags flags); + 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); @@ -330,9 +348,11 @@ namespace GLib { public class FileOutputStream : GLib.OutputStream, GLib.Seekable { public virtual bool can_seek (); public virtual bool can_truncate (); - public virtual weak string get_etag (GLib.Cancellable cancellable) throws GLib.Error; - public virtual weak GLib.FileInfo get_file_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error; + 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; @@ -381,7 +401,7 @@ namespace GLib { [CCode (cheader_filename = "gio/gvfs.h")] public class LocalFileEnumerator : GLib.FileEnumerator { public static GLib.Type get_type (); - public LocalFileEnumerator (string filename, string attributes, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; + 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 { @@ -395,10 +415,10 @@ namespace GLib { } [CCode (cheader_filename = "gio/gvfs.h")] public class LocalFileOutputStream : GLib.FileOutputStream { - public static weak GLib.FileOutputStream append (string filename, GLib.Cancellable cancellable) throws GLib.Error; - public static weak GLib.FileOutputStream create (string filename, GLib.Cancellable cancellable) throws GLib.Error; + 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.Cancellable cancellable) throws GLib.Error; + 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 { @@ -408,13 +428,17 @@ namespace GLib { [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; } @@ -560,6 +584,7 @@ namespace GLib { 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); } @@ -654,37 +679,46 @@ namespace GLib { } [CCode (cheader_filename = "gio/gvfs.h")] public class UnixMount { - public weak string mount_path; - public weak string device_path; - public weak string filesystem_type; - public bool is_read_only; + 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 weak string mount_path; - public weak string device_path; - public weak string filesystem_type; - public weak string dev_opt; - public bool is_read_only; - public bool is_user_mountable; - public bool is_loopback; + 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 static weak GLib.AppInfo create_from_commandline (string commandline, string application_name) throws GLib.Error; + 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); - public abstract weak string get_description (); + 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 abstract weak string get_name (); + public weak string get_id (); + public weak string get_name (); public static GLib.Type get_type (); [NoArrayLength] - public abstract bool launch (GLib.List filenames, string[] envp) throws GLib.Error; + 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 (); @@ -713,36 +747,38 @@ namespace GLib { } [CCode (cheader_filename = "gio/gfile.h")] public interface File { - public abstract weak GLib.FileOutputStream append_to (GLib.Cancellable cancellable) throws GLib.Error; - public abstract void append_to_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); + 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.Cancellable cancellable) throws GLib.Error; - public abstract void create_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); + 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.FileGetInfoFlags flags, GLib.Cancellable cancellable) 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.FileInfo get_filesystem_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error; - public abstract weak GLib.FileInfo get_info (string attributes, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; - public abstract void get_info_async (string attributes, GLib.FileGetInfoFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); - public abstract weak GLib.FileInfo get_info_finish (GLib.AsyncResult res) 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) throws GLib.Error; + 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) throws GLib.Error; + 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); @@ -752,27 +788,35 @@ namespace GLib { 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.Cancellable cancellable) throws GLib.Error; - public abstract void replace_async (string etag, bool make_backup, 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.Cancellable cancellable) throws GLib.Error; - public void replace_contents_async (string contents, ulong length, string etag, bool make_backup, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); - public bool replace_contents_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 (string relative_path); - public abstract bool set_attribute (string attribute, GLib.FileAttributeValue value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; - public bool set_attribute_byte_string (string attribute, string value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; - public bool set_attribute_int32 (string attribute, int value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; - public bool set_attribute_int64 (string attribute, int64 value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; - public bool set_attribute_string (string attribute, string value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; - public bool set_attribute_uint32 (string attribute, uint value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; - public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error; - public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) 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; @@ -817,6 +861,7 @@ namespace GLib { 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); diff --git a/vapi/packages/gio-standalone/gio-standalone.files b/vapi/packages/gio-2.0/gio-2.0.files similarity index 100% rename from vapi/packages/gio-standalone/gio-standalone.files rename to vapi/packages/gio-2.0/gio-2.0.files diff --git a/vapi/packages/gio-standalone/gio-standalone.gidl b/vapi/packages/gio-2.0/gio-2.0.gidl similarity index 88% rename from vapi/packages/gio-standalone/gio-standalone.gidl rename to vapi/packages/gio-2.0/gio-2.0.gidl index 4c6e631929a59911dc6ad555f167e413d86bfe94..fdf0d3388410a43c214064ef2f5afbbac6f11539 100644 --- a/vapi/packages/gio-standalone/gio-standalone.gidl +++ b/vapi/packages/gio-2.0/gio-2.0.gidl @@ -7,6 +7,10 @@ --> + + + + @@ -45,8 +49,9 @@ - - + + + @@ -61,6 +66,9 @@ + + + @@ -79,7 +87,7 @@ - + @@ -99,6 +107,7 @@ + @@ -151,6 +160,14 @@ + + + + + + + + @@ -193,18 +210,6 @@ - - - - - - - - - - - - @@ -256,11 +261,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -290,10 +340,17 @@ + - + + + + + + + @@ -304,8 +361,14 @@ + + + + + + - + @@ -317,7 +380,7 @@ - + @@ -331,6 +394,22 @@ + + + + + + + + + + + + + + + + @@ -593,7 +672,21 @@ - + + + + + + + + + + + + + + + @@ -613,34 +706,54 @@ - + - + + + + + + + + + + + + + + + + + + + + + - + - + - + - + @@ -648,7 +761,7 @@ - + @@ -666,6 +779,25 @@ + + + + + + + + + + + + + + + + + + + @@ -688,7 +820,7 @@ - + @@ -698,8 +830,29 @@ - + + + + + + + + + + + + + + + + + + + + + + @@ -715,6 +868,7 @@ + @@ -723,6 +877,7 @@ + @@ -733,6 +888,7 @@ + @@ -816,6 +972,7 @@ + @@ -834,6 +991,7 @@ + @@ -854,6 +1012,7 @@ + @@ -943,6 +1102,7 @@ + @@ -950,12 +1110,14 @@ + + @@ -964,6 +1126,7 @@ + @@ -978,6 +1141,13 @@ + + + + + + + @@ -994,6 +1164,7 @@ + @@ -1002,6 +1173,7 @@ + @@ -1052,8 +1224,28 @@ - + + + + + + + + + + + + + + + + + + + + + @@ -1085,45 +1277,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1142,6 +1295,13 @@ + + + + + + + @@ -1170,6 +1330,7 @@ + @@ -1189,6 +1350,28 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -1263,6 +1446,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1311,6 +1533,7 @@ + @@ -1321,6 +1544,7 @@ + @@ -1335,6 +1559,8 @@ + + @@ -1347,6 +1573,7 @@ + @@ -1357,6 +1584,7 @@ + @@ -1368,7 +1596,7 @@ - + @@ -1381,7 +1609,7 @@ - + @@ -1392,7 +1620,7 @@ - + @@ -1403,7 +1631,7 @@ - + @@ -1414,7 +1642,7 @@ - + @@ -1425,7 +1653,7 @@ - + @@ -1436,19 +1664,40 @@ - + + + + + + + + + + + + + + + + + + + + + + + - + + - + - - - - + + @@ -1457,7 +1706,7 @@ - + @@ -1471,6 +1720,25 @@ + + + + + + + + + + + + + + + + + + + @@ -2039,21 +2307,35 @@ - - + + - - - - + + + + + + + + + + + + + + + + + + - + @@ -2061,7 +2343,7 @@ - + @@ -2069,7 +2351,7 @@ - + @@ -2077,7 +2359,7 @@ - + @@ -2086,16 +2368,7 @@ - - - - - - - - - - + @@ -2103,7 +2376,7 @@ - + @@ -2111,7 +2384,7 @@ - + @@ -2119,7 +2392,7 @@ - + @@ -2129,11 +2402,6 @@ - - - - - @@ -2205,7 +2473,7 @@ - + @@ -2256,6 +2524,12 @@ + + + + + + @@ -2264,6 +2538,11 @@ + + + + + @@ -2288,6 +2567,15 @@ + + + + + + + + + @@ -2595,6 +2883,12 @@ + + + + + + @@ -2857,7 +3151,7 @@ - + @@ -2866,6 +3160,25 @@ + + + + + + + + + + + + + + + + + + + @@ -2875,7 +3188,10 @@ - + + + + @@ -2884,8 +3200,24 @@ - - + + + + + + + + + + + + + + + + + + @@ -2932,6 +3264,16 @@ + + + + + + + + + + @@ -2939,6 +3281,7 @@ + @@ -2997,7 +3340,7 @@ - + @@ -3006,14 +3349,31 @@ - - + + + + + + + + + + + + + + + + + + + @@ -3033,11 +3393,12 @@ - - - + + + + @@ -3046,8 +3407,24 @@ - - + + + + + + + + + + + + + + + + + + @@ -3337,7 +3714,7 @@ - + @@ -3371,6 +3748,7 @@ + @@ -3379,6 +3757,7 @@ + @@ -3392,6 +3771,7 @@ + @@ -3415,9 +3795,28 @@ + + + + + + + + + + + + + + + + + + + @@ -3441,6 +3840,13 @@ + + + + + + + @@ -4213,6 +4619,12 @@ + + + + + + @@ -4566,20 +4978,107 @@ - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vapi/packages/gio-standalone/gio-standalone.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata similarity index 100% rename from vapi/packages/gio-standalone/gio-standalone.metadata rename to vapi/packages/gio-2.0/gio-2.0.metadata diff --git a/vapi/packages/gio-standalone/gio-standalone.namespace b/vapi/packages/gio-2.0/gio-2.0.namespace similarity index 100% rename from vapi/packages/gio-standalone/gio-standalone.namespace rename to vapi/packages/gio-2.0/gio-2.0.namespace