Override GIR for DexObject refcounting methods
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 thevoid*
arguments and return values use the correct type
Additionally, we need to ensure that the arguments name match between header, source, and docblocks.