Re: [Vala] VAPI bindings: omit function target argument
- From: Frederik <scumm_fredo gmx net>
- To: vala-list gnome org
- Subject: Re: [Vala] VAPI bindings: omit function target argument
- Date: Sat, 13 Dec 2008 15:49:28 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]