[vala/0.36] gio-2.0: Fix File.replace_contents_bytes_async()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.36] gio-2.0: Fix File.replace_contents_bytes_async()
- Date: Thu, 28 Feb 2019 17:39:13 +0000 (UTC)
commit 1def2edb34779e00fdb469a729669c86a497fb13
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 12d49a996..5ea275996 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -3537,8 +3537,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 aefce04c6..a521baeb2 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -131,6 +131,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]