[glib] gio: Add missing (array length) annotations
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gio: Add missing (array length) annotations
- Date: Thu, 21 Sep 2017 10:08:42 +0000 (UTC)
commit 80284943351a620f6931bfa74cbe07b8d61b5e08
Author: Alisa Maas <ajmaas cs wisc edu>
Date: Wed Sep 20 21:17:00 2017 +0000
gio: Add missing (array length) annotations
https://bugzilla.gnome.org/show_bug.cgi?id=765063
gio/gdatainputstream.c | 4 ++--
gio/gdbuserror.c | 2 +-
gio/gdbusutils.c | 2 +-
gio/gtlspassword.c | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gio/gdatainputstream.c b/gio/gdatainputstream.c
index 348ce44..9380358 100644
--- a/gio/gdatainputstream.c
+++ b/gio/gdatainputstream.c
@@ -1292,7 +1292,7 @@ g_data_input_stream_read_until_finish (GDataInputStream *stream,
/**
* g_data_input_stream_read_upto:
* @stream: a #GDataInputStream
- * @stop_chars: characters to terminate the read
+ * @stop_chars: (array length=stop_chars_len): characters to terminate the read
* @stop_chars_len: length of @stop_chars. May be -1 if @stop_chars is
* nul-terminated
* @length: (out) (optional): a #gsize to get the length of the data read in
@@ -1384,7 +1384,7 @@ g_data_input_stream_read_upto (GDataInputStream *stream,
/**
* g_data_input_stream_read_upto_async:
* @stream: a #GDataInputStream
- * @stop_chars: characters to terminate the read
+ * @stop_chars: (array length=stop_chars_len): characters to terminate the read
* @stop_chars_len: length of @stop_chars. May be -1 if @stop_chars is
* nul-terminated
* @io_priority: the [I/O priority][io-priority] of the request
diff --git a/gio/gdbuserror.c b/gio/gdbuserror.c
index c41c203..95949ea 100644
--- a/gio/gdbuserror.c
+++ b/gio/gdbuserror.c
@@ -172,7 +172,7 @@ g_dbus_error_quark (void)
* g_dbus_error_register_error_domain:
* @error_domain_quark_name: The error domain name.
* @quark_volatile: A pointer where to store the #GQuark.
- * @entries: A pointer to @num_entries #GDBusErrorEntry struct items.
+ * @entries: (array length=num_entries): A pointer to @num_entries #GDBusErrorEntry struct items.
* @num_entries: Number of items to register.
*
* Helper function for associating a #GError error domain with D-Bus error names.
diff --git a/gio/gdbusutils.c b/gio/gdbusutils.c
index ff036c7..8d5e9be 100644
--- a/gio/gdbusutils.c
+++ b/gio/gdbusutils.c
@@ -313,7 +313,7 @@ g_dbus_generate_guid (void)
/**
* g_dbus_is_guid:
- * @string: The string to check.
+ * @string: (array fixed-size=33): The string to check.
*
* Checks if @string is a D-Bus GUID.
*
diff --git a/gio/gtlspassword.c b/gio/gtlspassword.c
index 27364b1..3d2c74d 100644
--- a/gio/gtlspassword.c
+++ b/gio/gtlspassword.c
@@ -266,7 +266,7 @@ g_tls_password_get_value (GTlsPassword *password,
/**
* g_tls_password_set_value:
* @password: a #GTlsPassword object
- * @value: the new password value
+ * @value: (array length=length): the new password value
* @length: the length of the password, or -1
*
* Set the value for this password. The @value will be copied by the password
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]