]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Mark GLib.Socket.accept return value to be owned.
authorLuca Bruno <lucabru@src.gnome.org>
Mon, 10 Jan 2011 08:42:32 +0000 (09:42 +0100)
committerJürg Billeter <j@bitron.ch>
Sat, 22 Jan 2011 10:02:27 +0000 (11:02 +0100)
Based on patch by Stefano Debenedetti.

Fixes bug 638912.

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

index b7d67cdea43b3ada979cfb8fe1fb4399ef4e4b09..03151c2dd3be8a6e9a78daef711fc1a1a3ad1f1d 100644 (file)
@@ -1105,7 +1105,7 @@ namespace GLib {
        public class Socket : GLib.Object, GLib.Initable {
                [CCode (has_construct_function = false)]
                public Socket (GLib.SocketFamily family, GLib.SocketType type, GLib.SocketProtocol protocol) throws GLib.Error;
-               public unowned GLib.Socket accept (GLib.Cancellable? cancellable = null) throws GLib.Error;
+               public GLib.Socket accept (GLib.Cancellable? cancellable = null) throws GLib.Error;
                public bool bind (GLib.SocketAddress address, bool allow_reuse) throws GLib.Error;
                public bool check_connect_result () throws GLib.Error;
                public bool close () throws GLib.Error;
index 2d0a0538dc14dd423a8e7af6cd0bbaf5cfd51422..47a2c7f3d72248b9cc93e3d752e74d761175bb18 100644 (file)
@@ -230,6 +230,7 @@ g_settings_set_strv.value is_array="1" no_array_length="1"
 
 g_simple_async_result_new.source_object nullable="1"
 
+g_socket_accept transfer_ownership="1"
 g_socket_condition_wait error_types="GLib.IOError"
 g_socket_listener_accept_finish.source_object transfer_ownership="1" nullable="1" default_value="null"
 g_socket_listener_accept_socket_finish.source_object transfer_ownership="1" nullable="1" default_value="null"