]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Several ownership fixes, mostly in GResolver.
authorEvan Nemerson <evan@coeus-group.com>
Sun, 20 Dec 2009 00:18:46 +0000 (16:18 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Sun, 20 Dec 2009 00:18:46 +0000 (16:18 -0800)
Fixes bug 604969.

vapi/gio-2.0.vapi
vapi/packages/gio-2.0/gio-2.0.metadata

index 37c614977493dba2d4ebe9849751e7b8e9654260..4ba0f45c2e3cd4a1a393d8420647bc97d388f901 100644 (file)
@@ -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")]
index 923708a54aa5c60fffd80f9bd75fc9b21cb420e1..54cb45dcfc5de75853f71f76237c6b99ea9c467d 100644 (file)
@@ -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"