Skip to content

gitypelib: Switch to refcounting

Philip Withnall requested to merge pwithnall/glib:3155-typelib-boxed into main

Since GITypelib is exposed in the public libgirepository API, it needs to be a boxed type. So we either need to add a copy method to mirror the existing free method, or switch to refcounting. The latter option seems better, since a GITypelib contains internal state about open GModules and the semantics for copying that would be potentially complex.


This also then adds a boxed type for GITypelib for the same reasons.

Signed-off-by: Philip Withnall pwithnall@gnome.org

Helps: #3155 (closed)

Merge request reports