[vala] gio-2.0: Fix g_file_replace_contents{,_finish} bindings
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] gio-2.0: Fix g_file_replace_contents{,_finish} bindings
- Date: Thu, 25 Jun 2009 20:21:08 +0000 (UTC)
commit d382d04754e3903405dc4f71b2b53c114de32fee
Author: Matias De la Puente <mfpuente ar gmail com>
Date: Fri Jun 12 16:00:44 2009 -0300
gio-2.0: Fix g_file_replace_contents{,_finish} bindings
g_file_replace_contents{,_finish}.new_etag transfers ownership,
according to the docs. Fixes bug 585612.
Signed-off-by: Matias De la Puente <mfpuente ar gmail com>
vapi/gio-2.0.vapi | 4 ++--
vapi/packages/gio-2.0/gio-2.0.metadata | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 9acd9bd..960868f 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -762,9 +762,9 @@ namespace GLib {
public abstract unowned GLib.FileInputStream read_fn (GLib.Cancellable? cancellable) throws GLib.Error;
public abstract GLib.FileOutputStream replace (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
public abstract void replace_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
- public bool replace_contents (string contents, size_t length, string? etag, bool make_backup, GLib.FileCreateFlags flags, out unowned string new_etag, GLib.Cancellable? cancellable) throws GLib.Error;
+ public bool replace_contents (string contents, size_t length, string? etag, bool make_backup, GLib.FileCreateFlags flags, out string new_etag, GLib.Cancellable? cancellable) throws GLib.Error;
public void replace_contents_async (string contents, size_t length, string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
- public bool replace_contents_finish (GLib.AsyncResult res, out unowned string new_etag) throws GLib.Error;
+ public bool replace_contents_finish (GLib.AsyncResult res, out string new_etag) throws GLib.Error;
public abstract GLib.FileOutputStream replace_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract GLib.File resolve_relative_path (string relative_path);
public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, void* value_p, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index cb1d713..5bccf8e 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -58,6 +58,8 @@ g_file_read_finish transfer_ownership="1"
g_file_replace transfer_ownership="1"
g_file_replace.etag nullable="1"
g_file_replace_async.etag nullable="1"
+g_file_replace_contents.new_etag transfer_ownership="1"
+g_file_replace_contents_finish.new_etag transfer_ownership="1"
g_file_replace_finish transfer_ownership="1"
g_file_resolve_relative_path transfer_ownership="1"
g_input_stream_read_all.bytes_read is_out="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]