[Vala] bug in glib vapi ????
- From: Michele Dionisio <michele dionisio gmail com>
- To: Vala List <vala-list gnome org>
- Subject: [Vala] bug in glib vapi ????
- Date: Tue, 25 Aug 2015 20:11:42 +0200
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?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]