]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Use uint8[] for Socket buffers in send/receive methods
authorLuca Bruno <lucabru@src.gnome.org>
Fri, 18 Feb 2011 05:16:52 +0000 (16:16 +1100)
committerLuca Bruno <lucabru@src.gnome.org>
Fri, 22 Apr 2011 14:23:30 +0000 (16:23 +0200)
Based on patch by Robert Ancell.

Fixes bug 642528.

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

index 1a9201cec73f17fbfb967f5691c9f09b9ffc6599..6e86cac8254e56c055d31ebb7f3d7d09b3f3c8bb 100644 (file)
@@ -1275,14 +1275,14 @@ namespace GLib {
                public bool is_closed ();
                public bool is_connected ();
                public bool listen () throws GLib.Error;
-               public ssize_t receive (string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
-               public ssize_t receive_from (out unowned GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               public ssize_t receive (uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               public ssize_t receive_from (out unowned GLib.SocketAddress address, uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public ssize_t receive_message (out unowned GLib.SocketAddress address, GLib.InputVector vectors, int num_vectors, out unowned GLib.SocketControlMessage messages, int num_messages, int flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
-               public ssize_t receive_with_blocking (string buffer, size_t size, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
-               public ssize_t send (string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               public ssize_t receive_with_blocking (uint8[] buffer, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               public ssize_t send (uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public ssize_t send_message (GLib.SocketAddress address, GLib.OutputVector vectors, int num_vectors, out unowned GLib.SocketControlMessage messages, int num_messages, int flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
-               public ssize_t send_to (GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
-               public ssize_t send_with_blocking (string buffer, size_t size, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               public ssize_t send_to (GLib.SocketAddress address, uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               public ssize_t send_with_blocking (uint8[] buffer, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public void set_blocking (bool blocking);
                public void set_keepalive (bool keepalive);
                public void set_listen_backlog (int backlog);
index 368354225646682a2125e84c884d7154880eaf3a..456f89a6fa09b30e45e012cd2bd3218adf05e307 100644 (file)
@@ -253,6 +253,18 @@ g_socket_control_message_serialize.data type_name="uint8" is_array="1" no_array_
 g_socket_listener_add_address.source_object nullable="1"
 g_socket_listener_add_inet_port.source_object nullable="1"
 g_socket_listener_add_socket.source_object nullable="1"
+g_socket_receive.buffer type_name="uint8" is_array="1"
+g_socket_receive.size hidden="1"
+g_socket_receive_from.buffer type_name="uint8" is_array="1"
+g_socket_receive_from.size hidden="1"
+g_socket_receive_with_blocking.buffer type_name="uint8" is_array="1"
+g_socket_receive_with_blocking.size hidden="1"
+g_socket_send.buffer type_name="uint8" is_array="1"
+g_socket_send.size hidden="1"
+g_socket_send_to.buffer type_name="uint8" is_array="1"
+g_socket_send_to.size hidden="1"
+g_socket_send_with_blocking.buffer type_name="uint8" is_array="1"
+g_socket_send_with_blocking.size hidden="1"
 g_srv_target_list_sort type_arguments="SrvTarget" transfer_ownership="1"
 g_srv_target_list_sort.targets type_arguments="SrvTarget" transfer_ownership="1"
 g_themed_icon_new_from_names.iconnames is_array="1"