Skip to content

Fix annotation of count arguments

Tomohiro requested to merge demotomohiro/glib:fix-annotation into master

gobject-introspection automatically marked count parameter as out parameter because buffer parameter is annotated as (out caller-allocates) and count parameter is array length of it. But the parameter is actually input parameter and bindings cannot wrap count parameter correctly.

I added (in) annotations to each count parameters so that gobject-introspection marks them as in parameter.

Related discussions: gobject-introspection#352 gobject-introspection#321 https://discourse.gnome.org/t/nice-agent-recv/5747

Merge request reports