[vala] gio-2.0: Mark GLib.Socket.accept return value to be owned.



commit 5577d727c4ce085ea26e29a8bd732d943cb7a455
Author: Luca Bruno <lucabru src gnome org>
Date:   Mon Jan 10 09:42:32 2011 +0100

    gio-2.0: Mark GLib.Socket.accept return value to be owned.
    
    Based on patch by Stefano Debenedetti.
    
    Fixes bug 638912.

 vapi/gio-2.0.vapi                      |    2 +-
 vapi/packages/gio-2.0/gio-2.0.metadata |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 58458c2..1d583fa 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -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;
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index 1e59022..57fcea4 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -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"



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