]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Fix uint8[]/char** types for contents parameters for g_file_[load|replace... e4ef6fb72f560da385a09d262ef8afd2b64a1fc8
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Fri, 25 Oct 2013 10:44:18 +0000 (11:44 +0100)
committerPhilip Withnall <philip@tecnocode.co.uk>
Fri, 25 Oct 2013 22:59:52 +0000 (23:59 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=710867

vapi/gio-2.0.vapi
vapi/metadata/Gio-2.0.metadata

index d0e2a65eedc2f75689f428cb4d728f0612b25cfb..0a684e60978d4576d7513b52aacbc20ebd3acb4b 100644 (file)
@@ -2533,7 +2533,7 @@ namespace GLib {
                public abstract uint hash ();
                public abstract bool is_native ();
                public bool load_contents (GLib.Cancellable? cancellable, [CCode (array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) throws GLib.Error;
-               public async bool load_contents_async (GLib.Cancellable? cancellable = null, [CCode (array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) throws GLib.Error;
+               public async bool load_contents_async (GLib.Cancellable? cancellable = null, [CCode (array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize", type = "char**")] out uint8[] contents, out string etag_out) throws GLib.Error;
                public async bool load_partial_contents_async (GLib.Cancellable? cancellable = null, GLib.FileReadMoreCallback read_more_callback, [CCode (array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) throws GLib.Error;
                public abstract bool make_directory (GLib.Cancellable? cancellable = null) throws GLib.Error;
                public abstract async bool make_directory_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
@@ -2577,7 +2577,7 @@ namespace GLib {
                public abstract GLib.FileOutputStream replace (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public abstract async GLib.FileOutputStream replace_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public bool replace_contents ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] contents, string? etag, bool make_backup, GLib.FileCreateFlags flags, out string new_etag, GLib.Cancellable? cancellable = null) throws GLib.Error;
-               public async bool replace_contents_async ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] contents, string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null, out string new_etag) throws GLib.Error;
+               public async bool replace_contents_async ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "gsize", type = "const char*")] uint8[] contents, string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null, out string new_etag) throws GLib.Error;
                public abstract GLib.FileIOStream replace_readwrite (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public abstract async GLib.FileIOStream replace_readwrite_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public abstract GLib.File resolve_relative_path (string relative_path);
index 3ee2d969dbaebde587b5a7db75b7c4bbecfa7534..512d899d3a51fdbb925eeb5ad9919c41617755f2 100644 (file)
@@ -108,6 +108,9 @@ Drive
   .get_sort_key#virtual_method virtual
 File
   .load_contents.cancellable#parameter default=()
+  .load_contents_async.contents#parameter type="char**"
+  .load_partial_contents_async.contents#parameter type="char**"
+  .replace_contents_async.contents#parameter type="const char*"
   .monitor_dir* throws="GLib.IOError"
   .monitor_file throws="GLib.IOError"
 FileInfo