[vala] gio-2.0: Use uint8[] for Socket buffers in send/receive methods
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gio-2.0: Use uint8[] for Socket buffers in send/receive methods
- Date: Fri, 22 Apr 2011 14:26:44 +0000 (UTC)
commit e1e05ddaf4a52a055b916ad6f6b94ba79cfd47ab
Author: Luca Bruno <lucabru src gnome org>
Date: Fri Feb 18 16:16:52 2011 +1100
gio-2.0: Use uint8[] for Socket buffers in send/receive methods
Based on patch by Robert Ancell.
Fixes bug 642528.
vapi/gio-2.0.vapi | 12 ++++++------
vapi/packages/gio-2.0/gio-2.0.metadata | 12 ++++++++++++
2 files changed, 18 insertions(+), 6 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 1a9201c..6e86cac 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -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);
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index 3683542..456f89a 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]