c:type missing pointer/array information in GIR for C array parameters
Submitted by Mikhail Zabaluev
Link to original bug (#792275)
Description
A problem similar to the one with fixed-size arrays, tracked in bug #756122, occurs with dynamically-sized array parameters where C declaration syntax [] is used, as seen with g_object_setv():
<parameter name="names" transfer-ownership="none">
<doc xml:space="preserve">the names of each property to be set</doc>
<array length="0" zero-terminated="0" c:type="gchar*">
<type name="utf8" c:type="gchar"/>
</array>
</parameter>
<parameter name="values" transfer-ownership="none">
<doc xml:space="preserve">the values of each property to be set</doc>
<array length="0" zero-terminated="0" c:type="GValue">
<type name="Value" c:type="GValue"/>
</array>
</parameter>
The c:type for the "values" array should be normalized to "const GValue*" rather than dropping the const qualifier and the brackets. "names" should be "const gchar* const*".