[Vala] subclassing vapi classes



Is it possible to subclass a vapi class without starting a gobject hierachy?
e.g. subclass zlibs GZFileStream and a subclass instance is still compatible with the zlib methods.
(Naturally the methods will not be virtual)

When I tried subclassing this vapi class:



like this:


the generated C code for method x is:

gint blah_x (blah* self) {
        g_return_val_if_fail (self != NULL, 0);
        return t (NTVFS (self));
}

which does't compile; NTVFS and TYPE_NTVFS are not defined, although they could be, NTVFS macro (missing) could return the original struct...

Sam




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