Commit 09796b3c authored by Philip Withnall's avatar Philip Withnall

Partially revert "gio: Add missing (array length) annotations"

This reverts commit 80284943.

Adding (array length=…) to a gchar* parameter causes the GIR file to
contain an array of strings, rather than an array of characters. While
we fix GIR, revert those changes.

Some of the other changes in the file (which have an explicit
(element-type) already) are fine.
Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=765063
parent 80284943
......@@ -1292,7 +1292,7 @@ g_data_input_stream_read_until_finish (GDataInputStream *stream,
/**
* g_data_input_stream_read_upto:
* @stream: a #GDataInputStream
* @stop_chars: (array length=stop_chars_len): characters to terminate the read
* @stop_chars: 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: (array length=stop_chars_len): characters to terminate the read
* @stop_chars: 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
......
......@@ -313,7 +313,7 @@ g_dbus_generate_guid (void)
/**
* g_dbus_is_guid:
* @string: (array fixed-size=33): The string to check.
* @string: The string to check.
*
* Checks if @string is a D-Bus GUID.
*
......
......@@ -295,7 +295,7 @@ g_tls_password_set_value (GTlsPassword *password,
/**
* g_tls_password_set_value_full:
* @password: a #GTlsPassword object
* @value: the value for the password
* @value: (array length=length): the value for the password
* @length: the length of the password, or -1
* @destroy: (nullable): a function to use to free the password.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment