]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Use out uint8[] for File.load_* methods
authorLuca Bruno <lucabru@src.gnome.org>
Wed, 11 May 2011 20:23:13 +0000 (22:23 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Wed, 11 May 2011 20:24:07 +0000 (22:24 +0200)
Fixes bug 594376.

vapi/gio-2.0.vapi
vapi/packages/gio-2.0/gio-2.0.metadata

index 104400cf13afc615ca17423e63f5b32d23113c9d..08e580b212e0ccbdc432626b00016b36b55e5dc7 100644 (file)
@@ -1763,9 +1763,9 @@ namespace GLib {
                public abstract bool has_uri_scheme (string uri_scheme);
                public abstract uint hash ();
                public abstract bool is_native ();
-               public bool load_contents (GLib.Cancellable? cancellable = null, out string contents, out size_t length = null, out string etag_out = null) throws GLib.Error;
-               public async bool load_contents_async (GLib.Cancellable? cancellable = null, out string contents, out size_t length = null, out string etag_out = null) throws GLib.Error;
-               public async bool load_partial_contents_async (GLib.Cancellable? cancellable, GLib.FileReadMoreCallback read_more_callback, out string contents, out size_t length = null, out string etag_out = null) throws GLib.Error;
+               public bool load_contents (GLib.Cancellable? cancellable = null, out uint8[] contents, out string etag_out = null) throws GLib.Error;
+               public async bool load_contents_async (GLib.Cancellable? cancellable = null, out uint8[] contents, out string etag_out = null) throws GLib.Error;
+               public async bool load_partial_contents_async (GLib.Cancellable? cancellable, GLib.FileReadMoreCallback read_more_callback, out uint8[] contents, out string etag_out = null) throws GLib.Error;
                public abstract bool make_directory (GLib.Cancellable? cancellable = null) throws GLib.Error;
                public bool make_directory_with_parents (GLib.Cancellable? cancellable = null) throws GLib.Error;
                public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable? cancellable = null) throws GLib.Error;
index 00fe0328d7b5b4a22711b33ef5ccada99a7a9505..ecdf9b3ac63193271d0a32a8edb8177ba788ea75 100644 (file)
@@ -147,8 +147,8 @@ g_file_get_uri transfer_ownership="1"
 g_file_get_uri_scheme transfer_ownership="1"
 g_file_hash.file hidden="1"
 g_file_info_get_modification_time.result is_out="1"
-g_file_load_*.contents transfer_ownership="1"
-g_file_load_*.length is_out="1" default_value="null"
+g_file_load_*.contents type_name="uint8[]" transfer_ownership="1"
+g_file_load_*.length hidden="1"
 g_file_load_*.etag_out transfer_ownership="1" default_value="null"
 g_file_load_partial_contents_async.cancellable nullable="1"
 GFileMonitor::changed.other_file nullable="1"