Le Mon, 31 May 2010 16:47:17 +0100, Abderrahim Kitouni a écrit:

> 
>> What does the NULL here ? It seems a bug in the compiler but maybe I'm
>> wrong in the delegate declaration…
> The NULL here is the instance pointer, it's null because you passed a
> static method. if your delegate isn't passed with a "user data"
> parameter, it should be annotated with [CCode (has_target=false)].
> 
>> 
>>     [CCode (cname = "__ftw_func_t")]
> should be:
>      [CCode (cname = "__ftw_func_t", has_target=false)]
>>     public delegate int ftw_func_t(char* name, int* status, int type);
> 

Thank you for ansewring so quick !

Is there a faq with all thoses errors somewhere in the net ? ( It's not 
obvious when we're not used to vapi… )

-- 
Sébastien


_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to