Re: [Vala] Future-proofing ABI - how to add dummy v-methods to Vala classes



On 6 August 2012 06:30, Maciej Piechotka <uzytkownik2 gmail com> wrote:
Hi,

What is recommended way of adding dummy v-methods to classes (IIUC that
is not an issue for GObject interfaces as size of V-table is not part of
ABI for interfaces)?

Just adding reserved v-method (if yes how to prevent it from appearing
in gir/vapi)?

    public virtual void reserved1(void);

vfuncs are also visible in the C/GObject GInterface declarations.

I think something like a 'internal virtual void foo(void)' should be
there in the binary, but not be visible in the GIR/VAPI (although
still visible in the symbol table if you probe it with 'nm' or other
tools).

Cheers,
Mikkel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]