Skip to content

Override GIR for DexObject refcounting methods

Emmanuele Bassi requested to merge ebassi/gir-object-refcount into main

To avoid having additional, semi-private methods for acquiring and releasing reference on a DexObject instance, we can override what the introspection scanner sees via a bunch of annotations:

  • dex_ref() and dex_unref() are methods of DexObject, but need a method annotation to associate them to the object
  • use the type annotation to ensure that the void* arguments and return values use the correct type

Additionally, we need to ensure that the arguments name match between header, source, and docblocks.

Merge request reports