From: Juerg Billeter Date: Tue, 6 Nov 2007 18:14:22 +0000 (+0000) Subject: updated to gio 0.1.1 X-Git-Tag: VALA_0_1_5~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20eb50e13ae65734d1bdffa3126cfa44ff789ce7;p=thirdparty%2Fvala.git updated to gio 0.1.1 2007-11-06 Juerg Billeter * vapi/packages/gio-2.0/gio-2.0.gi, vapi/gio-2.0.vapi: updated to gio 0.1.1 svn path=/trunk/; revision=683 --- diff --git a/ChangeLog b/ChangeLog index bc390a426..be62e863f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-06 Jürg Billeter + + * vapi/packages/gio-2.0/gio-2.0.gi, vapi/gio-2.0.vapi: updated to gio + 0.1.1 + 2007-11-04 Jürg Billeter * vapi/packages/gtk+-2.0/gtk+-2.0.metadata: mark gtk_object_destroy as diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi index 9ac617e61..1c6c9783c 100644 --- a/vapi/gio-2.0.vapi +++ b/vapi/gio-2.0.vapi @@ -117,6 +117,12 @@ namespace GLib { WOULD_BLOCK, HOST_NOT_FOUND, } + [CCode (cprefix = "G_OUTPUT_STREAM_SPLICE_FLAGS_", cheader_filename = "gio/gvfs.h")] + public enum OutputStreamSpliceFlags { + NONE, + CLOSE_SOURCE, + CLOSE_TARGET, + } [CCode (cprefix = "G_PASSWORD_FLAGS_", cheader_filename = "gio/gvfs.h")] public enum PasswordFlags { NEED_PASSWORD, @@ -148,10 +154,10 @@ namespace GLib { } [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 ns); + 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 bool matches (string attribute); + public bool matches_only (string attribute); public FileAttributeMatcher (string attributes); } [CCode (cheader_filename = "gio/gvfs.h")] @@ -173,15 +179,21 @@ namespace GLib { 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_byte_string (string string); 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_string (string string); public void set_uint32 (uint value); public void set_uint64 (uint64 value); } [CCode (cheader_filename = "gio/gvfs.h")] + public class FileIconClass { + } + [CCode (cheader_filename = "gio/gvfs.h")] + public class FileInfoClass { + } + [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); } @@ -189,6 +201,19 @@ namespace GLib { public class IOModuleClass { } [CCode (cheader_filename = "gio/gvfs.h")] + public class SimpleAsyncResultClass { + } + [CCode (cheader_filename = "gio/gvfs.h")] + public class ThemedIconClass { + } + [CCode (cheader_filename = "gio/gvfs.h")] + public class AppLaunchContext : GLib.Object { + public virtual weak string get_display (GLib.AppInfo info, GLib.List files); + public virtual weak string get_startup_notify_id (GLib.AppInfo info, GLib.List files); + public virtual void launch_failed (string startup_notify_id); + public AppLaunchContext (); + } + [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); @@ -270,12 +295,12 @@ namespace GLib { 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 virtual bool close_finish (GLib.AsyncResult result) throws GLib.Error; 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 virtual weak GLib.List next_files_finish (GLib.AsyncResult result) throws GLib.Error; public void set_pending (bool pending); } [CCode (cheader_filename = "gio/gvfs.h")] @@ -286,7 +311,7 @@ namespace GLib { [CCode (cheader_filename = "gio/gvfs.h")] public class FileInfo : GLib.Object { public void clear_status (); - public void copy_into (GLib.FileInfo dest); + public void copy_into (GLib.FileInfo dest_info); public weak GLib.FileInfo dup (); public weak GLib.FileAttributeValue get_attribute (string attribute); public bool get_attribute_boolean (string attribute); @@ -316,16 +341,16 @@ namespace GLib { 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 (string attribute, GLib.FileAttributeValue attr_value); + public void set_attribute_boolean (string attribute, bool attr_value); + public void set_attribute_byte_string (string attribute, string attr_value); + public void set_attribute_int32 (string attribute, int attr_value); + public void set_attribute_int64 (string attribute, int64 attr_value); 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_attribute_object (string attribute, GLib.Object attr_value); + public void set_attribute_string (string attribute, string attr_value); + public void set_attribute_uint32 (string attribute, uint attr_value); + public void set_attribute_uint64 (string attribute, uint64 attr_value); public void set_content_type (string content_type); public void set_display_name (string display_name); public void set_edit_name (string edit_name); @@ -345,7 +370,7 @@ namespace GLib { public virtual bool can_seek (); 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 weak GLib.FileInfo query_info_finish (GLib.AsyncResult result) throws GLib.Error; public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable cancellable) throws GLib.Error; public virtual int64 tell (); } @@ -366,7 +391,7 @@ namespace GLib { public virtual weak string get_etag (); public virtual weak GLib.FileInfo query_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error; public virtual void query_info_async (string attributes, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); - public virtual weak GLib.FileInfo query_info_finish (GLib.AsyncResult res) throws GLib.Error; + public virtual weak GLib.FileInfo query_info_finish (GLib.AsyncResult result) 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; @@ -374,7 +399,7 @@ namespace GLib { [CCode (cheader_filename = "gio/gvfs.h")] public class FilenameCompleter : GLib.Object { public weak string get_completion_suffix (string initial_text); - public weak GLib.List get_completions (string initial_text); + public weak string get_completions (string initial_text); public FilenameCompleter (); public void set_dirs_only (bool dirs_only); public signal void got_completion_data (); @@ -464,6 +489,9 @@ namespace GLib { public bool has_pending (); public bool is_closed (); public void set_pending (bool pending); + public virtual long splice (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, GLib.Cancellable cancellable) throws GLib.Error; + public virtual void splice_async (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data); + public virtual long splice_finish (GLib.AsyncResult result) throws GLib.Error; 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); @@ -537,21 +565,19 @@ namespace GLib { 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 static weak GLib.AppInfo get_default_for_uri_scheme (string uri_scheme); public abstract weak string get_description (); public abstract weak string get_executable (); public abstract weak GLib.Icon get_icon (); public abstract weak string get_id (); public abstract weak string get_name (); - [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 launch (GLib.List files, GLib.AppLaunchContext launch_context) throws GLib.Error; + public abstract bool launch_uris (GLib.List uris, GLib.AppLaunchContext launch_context) throws GLib.Error; 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 : GLib.Object { @@ -591,6 +617,7 @@ namespace GLib { 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 GLib.Volume find_enclosing_volume (GLib.Cancellable cancellable) throws GLib.Error; 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; @@ -599,6 +626,7 @@ namespace GLib { public abstract weak string get_path (); public abstract weak string get_relative_path (GLib.File descendant); public abstract weak string get_uri (); + public abstract weak string get_uri_scheme (); public abstract bool has_uri_scheme (string uri_scheme); public static uint hash (pointer file); public abstract bool is_native (); @@ -698,10 +726,12 @@ namespace GLib { public const string FILE_ATTRIBUTE_DOS_IS_SYSTEM; public const string FILE_ATTRIBUTE_ETAG_VALUE; public const string FILE_ATTRIBUTE_FS_FREE; + public const string FILE_ATTRIBUTE_FS_READONLY; public const string FILE_ATTRIBUTE_FS_SIZE; public const string FILE_ATTRIBUTE_FS_TYPE; public const string FILE_ATTRIBUTE_GVFS_BACKEND; - public const string FILE_ATTRIBUTE_ID_VALUE; + public const string FILE_ATTRIBUTE_ID_FILE; + public const string FILE_ATTRIBUTE_ID_FS; public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT; public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT; public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT; @@ -795,7 +825,7 @@ namespace GLib { [CCode (cname = "g_uri_get_scheme")] public static weak string g_uri_get_scheme (string uri); [CCode (cname = "g_uri_unescape_segment")] - public static weak string g_uri_unescape_segment (string escaped_string_start, string escaped_string_end, string illegal_characters); + public static weak string g_uri_unescape_segment (string escaped_string, string escaped_string_end, string illegal_characters); [CCode (cname = "g_uri_unescape_string")] public static weak string g_uri_unescape_string (string escaped_string, string illegal_characters); } diff --git a/vapi/packages/gio-2.0/gio-2.0.gi b/vapi/packages/gio-2.0/gio-2.0.gi index 756b58a72..49ad06783 100644 --- a/vapi/packages/gio-2.0/gio-2.0.gi +++ b/vapi/packages/gio-2.0/gio-2.0.gi @@ -158,7 +158,7 @@ - + @@ -267,7 +267,7 @@ - + @@ -280,14 +280,14 @@ - + - + @@ -325,7 +325,7 @@ - + @@ -403,7 +403,7 @@ - + @@ -431,7 +431,7 @@ - + @@ -452,6 +452,10 @@ + + + + @@ -466,6 +470,10 @@ + + + + @@ -568,6 +576,11 @@ + + + + + @@ -580,6 +593,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -771,13 +835,13 @@ - + - + @@ -789,7 +853,7 @@ - + @@ -797,7 +861,7 @@ - + @@ -805,7 +869,7 @@ - + @@ -813,7 +877,7 @@ - + @@ -821,7 +885,7 @@ - + @@ -830,7 +894,7 @@ - + @@ -838,7 +902,7 @@ - + @@ -846,7 +910,7 @@ - + @@ -854,7 +918,7 @@ - + @@ -864,7 +928,7 @@ - + @@ -880,7 +944,7 @@ - + @@ -901,7 +965,7 @@ - + @@ -910,7 +974,7 @@ - + @@ -919,7 +983,7 @@ - + @@ -928,7 +992,7 @@ - + @@ -937,7 +1001,7 @@ - + @@ -946,7 +1010,7 @@ - + @@ -955,7 +1019,7 @@ - + @@ -1055,7 +1119,7 @@ - + @@ -1094,7 +1158,7 @@ - + @@ -1187,14 +1251,14 @@ - - + + - + @@ -1381,7 +1445,7 @@ - + @@ -1389,7 +1453,7 @@ - + @@ -1397,7 +1461,7 @@ - + @@ -1405,7 +1469,7 @@ - + @@ -1413,7 +1477,7 @@ - + @@ -1428,7 +1492,7 @@ - + @@ -1436,7 +1500,7 @@ - + @@ -1444,7 +1508,7 @@ - + @@ -1452,7 +1516,7 @@ - + @@ -1580,7 +1644,7 @@ - + @@ -1758,7 +1822,7 @@ - + @@ -1868,7 +1932,7 @@ - + @@ -2386,6 +2450,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2479,6 +2573,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2899,6 +3023,12 @@ + + + + + + @@ -2934,7 +3064,7 @@ - + @@ -2943,7 +3073,7 @@ - + @@ -2984,12 +3114,6 @@ - - - - - - @@ -3052,7 +3176,7 @@ - + @@ -3061,7 +3185,7 @@ - + @@ -3446,6 +3570,14 @@ + + + + + + + + @@ -3498,6 +3630,12 @@ + + + + + + @@ -4101,6 +4239,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4146,6 +4310,12 @@ + + + + + + @@ -4580,7 +4750,7 @@ - + @@ -4595,7 +4765,7 @@ - + @@ -4760,12 +4930,6 @@ - - - - - - @@ -4799,10 +4963,12 @@ + - + +