GNOME Bugzilla – Bug 755961
Fix up annotations in gbytes.c
Last modified: 2015-10-02 08:24:51 UTC
A few improvements to fix incorrect or unsafe introspection data on GBytes.
Created attachment 312534 [details] [review] gbytes: fix up annotations Annotate array elements as bytes. Annotate a missed output parameter. Replace (allow-none) with the corresponding modern annotations.
Created attachment 312535 [details] [review] Skip g_bytes_new_with_free_func() in introspection The tricky ownership/mutability semantics on data make this function unusable in introspection.
Review of attachment 312534 [details] [review]: OK.
Review of attachment 312535 [details] [review]: In theory (transfer full) on the input values...though I think that just ends up causing bindings to do a copy, which misses the point.
(In reply to Colin Walters from comment #4) > Review of attachment 312535 [details] [review] [review]: > > In theory (transfer full) on the input values...though I think that just > ends up causing bindings to do a copy, which misses the point. There is also a DestroyNotify that the bindings need to supply in order to have the data freed.