[vala/0.42] gio-2.0: Fix File.replace_contents_bytes_async()



commit 9198d6181f4110ccef0499c601efe98b4a59a805
Author: Jiří Janoušek <janousek jiri gmail com>
Date:   Thu Jan 3 14:43:26 2019 +0100

    gio-2.0: Fix File.replace_contents_bytes_async()
    
    Closes https://gitlab.gnome.org/GNOME/vala/merge_requests/37

 vapi/gio-2.0.vapi              | 3 ++-
 vapi/metadata/Gio-2.0.metadata | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index e92442855..76fab7781 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -3571,8 +3571,9 @@ namespace GLib {
                public virtual 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;
+               [CCode (finish_name = "g_file_replace_contents_finish")]
                [Version (since = "2.40")]
-               public async void replace_contents_bytes_async (GLib.Bytes contents, string? etag, bool 
make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null);
+               public async bool replace_contents_bytes_async (GLib.Bytes contents, string? etag, bool 
make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null, out string new_etag) throws 
GLib.Error;
                [Version (since = "2.22")]
                public abstract GLib.FileIOStream replace_readwrite (string? etag, bool make_backup, 
GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
                [Version (since = "2.22")]
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index 1be074f95..90e13d290 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -132,6 +132,7 @@ File
   .load_contents.cancellable#parameter default=()
   .monitor_dir* throws="GLib.IOError"
   .monitor_file throws="GLib.IOError"
+  .replace_contents_bytes_async finish_name="g_file_replace_contents_finish"
 FileInfo
   .list_attributes nullable
 FileEnumerator


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]