gdbus-codegen should add introspection annotation for array parameters
Submitted by Tristan Brindle
Assigned to David Zeuthen
Link to original bug (#736259)
Description
For the XML snippet
`` `` ``gdbus-codegen generates an argument of type
const gchar *const * arg_list
which should be passed a null-terminated array of strings. As such, the generated gtk-doc comment for the parameter should have an
(array zero-terminated=true)
annotation.
(As it is, the introspection parser seems to get confused by the double-const-indirection and decides the type is a plain string, which leads to crashes when trying to use the method call via Python or JS. Adding the annotation fixes this, and the type is inferred correctly.)
Version: 2.40.x