]> 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)
committerLuca Bruno <lucabru@src.gnome.org>
Mon, 10 Jan 2011 08:42:32 +0000 (09:42 +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 58458c2b510862d4d26bb5178f9042aad3081ee3..1d583fa2ce3f80b8df54b90e4b4a088a1721cb67 100644 (file)
@@ -1262,7 +1262,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 1e590220455ed0fdcf9a5d83ff63b3cc70844f8f..57fcea426dbc826eb62202a14935f49295fe50d5 100644 (file)
@@ -341,6 +341,7 @@ g_settings_set_strv.value is_array="1" no_array_length="1"
 g_simple_async_result_new.source_object nullable="1"
 g_simple_async_result_new_take_error hidden="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"