Hi,

I think that the following function:

[CCode (cname = "g_list_find_custom", simple_generics = true)]
public unowned List<G> search<T> (T data, SearchFunc<T,G> func);

in glib vapi is wrong because the g_list_find_custom documentation says?

Finds an element in a GList, using a supplied function to find the desired
element. It iterates over the list, calling the given function which should
return 0 when the desired element is found. The function takes two
gconstpointer arguments, *the GList element's data as the first argument *and
the given user data.


so the function has to be:
[CCode (cname = "g_list_find_custom", simple_generics = true)]
public unowned List<G> search<T> (T data, SearchFunc<G,T> func);

is it true?
_______________________________________________
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to