Frederik wrote: > I want to write vapi bindings for a C function that gets passed another > function as argument: > > public delegate void HookFunc (); > public void set_hook (HookFunc f); > > But the original C function doesn't want a target argument (which Vala > passes implicitly). I can move its position with > > public void set_hook ([CCode (delegate_target_pos=...)] HookFunc f); > > but I haven't figured out how to omit it. Is it possible to do that?
My fault, I have to use a /static/ delegate. Regards, Frederik _______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
