]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Fix g_file_replace_contents{,_finish} bindings
authorMatias De la Puente <mfpuente.ar@gmail.com>
Fri, 12 Jun 2009 19:00:44 +0000 (16:00 -0300)
committerJürg Billeter <j@bitron.ch>
Thu, 25 Jun 2009 20:20:23 +0000 (22:20 +0200)
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
vapi/packages/gio-2.0/gio-2.0.metadata

index 9acd9bd1475bc32829780b9ddbb0c798512a32df..960868fa8754d5b7aa45dc19a84aa4007cb88336 100644 (file)
@@ -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;
index cb1d713e65b8b908af7816993be7eaa8488b600b..5bccf8e6ddf885c88346a3243d7e3a18f15421be 100644 (file)
@@ -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"