[glib] gio: add some missing array annotations with their element-type
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gio: add some missing array annotations with their element-type
- Date: Sun, 13 Jan 2013 19:51:46 +0000 (UTC)
commit 47c9b1e315824501843880dd20785d97792cb500
Author: Rico Tzschichholz <ricotz t-online de>
Date: Sun Jan 13 20:49:15 2013 +0100
gio: add some missing array annotations with their element-type
gio/gactionmap.c | 4 ++--
gio/ginputstream.c | 9 ++++++---
gio/gsocket.c | 8 ++++----
3 files changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/gio/gactionmap.c b/gio/gactionmap.c
index 3d4c481..caa63ad 100644
--- a/gio/gactionmap.c
+++ b/gio/gactionmap.c
@@ -152,8 +152,8 @@ g_action_map_remove_action (GActionMap *action_map,
/**
* g_action_map_add_action_entries:
* @action_map: a #GActionMap
- * @entries: a pointer to the first item in an array of #GActionEntry
- * structs
+ * @entries: (array length=n_entries) (element-type GActionEntry): a pointer to
+ * the first item in an array of #GActionEntry structs
* @n_entries: the length of @entries, or -1 if @entries is %NULL-terminated
* @user_data: the user data for signal connections
*
diff --git a/gio/ginputstream.c b/gio/ginputstream.c
index f7006cb..c6fa332 100644
--- a/gio/ginputstream.c
+++ b/gio/ginputstream.c
@@ -136,7 +136,8 @@ g_input_stream_init (GInputStream *stream)
/**
* g_input_stream_read:
* @stream: a #GInputStream.
- * @buffer: a buffer to read data into (which should be at least count bytes long).
+ * @buffer: (array length=count) (element-type guint8): a buffer to
+ * read data into (which should be at least count bytes long).
* @count: the number of bytes that will be read from the stream
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
* @error: location to store the error occurring, or %NULL to ignore
@@ -213,7 +214,8 @@ g_input_stream_read (GInputStream *stream,
/**
* g_input_stream_read_all:
* @stream: a #GInputStream.
- * @buffer: a buffer to read data into (which should be at least count bytes long).
+ * @buffer: (array length=count) (element-type guint8): a buffer to
+ * read data into (which should be at least count bytes long).
* @count: the number of bytes that will be read from the stream
* @bytes_read: (out): location to store the number of bytes that was read from the stream
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
@@ -546,7 +548,8 @@ async_ready_close_callback_wrapper (GObject *source_object,
/**
* g_input_stream_read_async:
* @stream: A #GInputStream.
- * @buffer: a buffer to read data into (which should be at least count bytes long).
+ * @buffer: (array length=count) (element-type guint8): a buffer to
+ * read data into (which should be at least count bytes long).
* @count: the number of bytes that will be read from the stream
* @io_priority: the <link linkend="io-priority">I/O priority</link>
* of the request.
diff --git a/gio/gsocket.c b/gio/gsocket.c
index cb09dfc..9968ead 100644
--- a/gio/gsocket.c
+++ b/gio/gsocket.c
@@ -2379,8 +2379,8 @@ g_socket_get_available_bytes (GSocket *socket)
/**
* g_socket_receive:
* @socket: a #GSocket
- * @buffer: a buffer to read data into (which should be at least @size
- * bytes long).
+ * @buffer: (array length=size) (element-type guint8): a buffer to
+ * read data into (which should be at least @size bytes long).
* @size: the number of bytes you want to read from the socket
* @cancellable: (allow-none): a %GCancellable or %NULL
* @error: #GError for error reporting, or %NULL to ignore.
@@ -2429,8 +2429,8 @@ g_socket_receive (GSocket *socket,
/**
* g_socket_receive_with_blocking:
* @socket: a #GSocket
- * @buffer: a buffer to read data into (which should be at least @size
- * bytes long).
+ * @buffer: (array length=size) (element-type guint8): a buffer to
+ * read data into (which should be at least @size bytes long).
* @size: the number of bytes you want to read from the socket
* @blocking: whether to do blocking or non-blocking I/O
* @cancellable: (allow-none): a %GCancellable or %NULL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]