From: Evan Nemerson Date: Sun, 20 Dec 2009 00:18:46 +0000 (-0800) Subject: gio-2.0: Several ownership fixes, mostly in GResolver. X-Git-Tag: 0.7.10~150 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a7ca4b77a25ad60d6bbd4aa8840e4c961d6505e0;p=thirdparty%2Fvala.git gio-2.0: Several ownership fixes, mostly in GResolver. Fixes bug 604969. --- diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi index 37c614977..4ba0f45c2 100644 --- a/vapi/gio-2.0.vapi +++ b/vapi/gio-2.0.vapi @@ -407,7 +407,7 @@ namespace GLib { [CCode (has_construct_function = false)] public InetAddress.loopback (GLib.SocketFamily family); public virtual uchar to_bytes (); - public virtual unowned string to_string (); + public virtual string to_string (); [NoAccessorMethod] public void* bytes { get; construct; } public GLib.SocketFamily family { get; construct; } @@ -568,12 +568,12 @@ namespace GLib { public virtual unowned string lookup_by_address (GLib.InetAddress address, GLib.Cancellable? cancellable) throws GLib.Error; public virtual async unowned string lookup_by_address_async (GLib.InetAddress address, GLib.Cancellable? cancellable) throws GLib.Error; public virtual unowned string lookup_by_address_finish (GLib.AsyncResult _result) throws GLib.Error; - public virtual unowned GLib.List lookup_by_name (string hostname, GLib.Cancellable? cancellable) throws GLib.Error; - public virtual async unowned GLib.List lookup_by_name_async (string hostname, GLib.Cancellable? cancellable) throws GLib.Error; - public virtual unowned GLib.List lookup_by_name_finish (GLib.AsyncResult _result) throws GLib.Error; - public virtual unowned GLib.List lookup_service (string service, string protocol, string domain, GLib.Cancellable? cancellable) throws GLib.Error; - public virtual async unowned GLib.List lookup_service_async (string service, string protocol, string domain, GLib.Cancellable? cancellable) throws GLib.Error; - public virtual unowned GLib.List lookup_service_finish (GLib.AsyncResult _result) throws GLib.Error; + public virtual GLib.List lookup_by_name (string hostname, GLib.Cancellable? cancellable) throws GLib.Error; + public virtual async GLib.List lookup_by_name_async (string hostname, GLib.Cancellable? cancellable) throws GLib.Error; + public virtual GLib.List lookup_by_name_finish (GLib.AsyncResult _result) throws GLib.Error; + public virtual GLib.List lookup_service (string service, string protocol, string domain, GLib.Cancellable? cancellable) throws GLib.Error; + public virtual async GLib.List lookup_service_async (string service, string protocol, string domain, GLib.Cancellable? cancellable) throws GLib.Error; + public virtual GLib.List lookup_service_finish (GLib.AsyncResult _result) throws GLib.Error; public void set_default (); } [CCode (cheader_filename = "gio/gio.h")] diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata index 923708a54..54cb45dcf 100644 --- a/vapi/packages/gio-2.0/gio-2.0.metadata +++ b/vapi/packages/gio-2.0/gio-2.0.metadata @@ -78,6 +78,7 @@ g_file_start_mountable async="1" g_file_stop_mountable async="1" g_file_unmount_mountable async="1" g_file_unmount_mountable_with_operation async="1" +g_inet_address_to_string transfer_ownership="1" g_input_stream_read_all.bytes_read is_out="1" GIOErrorEnum rename_to="IOError" errordomain="1" g_memory_input_stream_add_data.destroy nullable="1" @@ -90,6 +91,10 @@ g_mount_unmount async="1" g_mount_unmount_with_operation async="1" GMountOperation::reply has_emitter="1" g_output_stream_write_all.bytes_written is_out="1" +g_resolver_lookup_by_name transfer_ownership="1" type_arguments="InetAddress" +g_resolver_lookup_by_name_finish transfer_ownership="1" type_arguments="InetAddress" +g_resolver_lookup_service transfer_ownership="1" type_arguments="SrvTarget" +g_resolver_lookup_service_finish transfer_ownership="1" type_arguments="SrvTarget" g_seekable_truncate abstract="1" vfunc_name="truncate_fn" g_seekable_truncate_fn hidden="1" g_socket_listener_add_address.source_object nullable="1"