[vala] gio-2.0: Several ownership fixes, mostly in GResolver.



commit a7ca4b77a25ad60d6bbd4aa8840e4c961d6505e0
Author: Evan Nemerson <evan coeus-group com>
Date:   Sat Dec 19 16:18:46 2009 -0800

    gio-2.0: Several ownership fixes, mostly in GResolver.
    
    Fixes bug 604969.

 vapi/gio-2.0.vapi                      |   14 +++++++-------
 vapi/packages/gio-2.0/gio-2.0.metadata |    5 +++++
 2 files changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 37c6149..4ba0f45 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<GLib.InetAddress> lookup_by_name (string hostname, GLib.Cancellable? cancellable) throws GLib.Error;
+		public virtual async GLib.List<GLib.InetAddress> lookup_by_name_async (string hostname, GLib.Cancellable? cancellable) throws GLib.Error;
+		public virtual GLib.List<GLib.InetAddress> lookup_by_name_finish (GLib.AsyncResult _result) throws GLib.Error;
+		public virtual GLib.List<GLib.SrvTarget> lookup_service (string service, string protocol, string domain, GLib.Cancellable? cancellable) throws GLib.Error;
+		public virtual async GLib.List<GLib.SrvTarget> lookup_service_async (string service, string protocol, string domain, GLib.Cancellable? cancellable) throws GLib.Error;
+		public virtual GLib.List<GLib.SrvTarget> 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 923708a..54cb45d 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"



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