Skip to content

Support static vfuncs in GIRepository

Philip Chimento requested to merge ptomato/glib:gi-static-vfuncs into main

This is a port of @3v1n0's work in gobject-introspection!361 (merged) to GIRepository 2.0, to support static vfuncs in GIRepository. An example of a static vfunc is GIconIface.from_tokens. Note that despite having a gtk-doc comment block, it doesn't show up in the documentation: https://docs.gtk.org/gio/?q=from_tokens

Static vfuncs won't actually show up in GIR files until the corresponding functionality is added to g-ir-scanner. I've added a test that will be automatically skipped with a clarifying message if GLib is built with a g-ir-scanner that doesn't support them yet.

Merge request reports

Loading