Re: [Vala] VAPI bindings: omit function target argument



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]