Re: [Vala] bug in glib vapi ????
- From: Luca Bruno <lethalman88 gmail com>
- To: vala-list gnome org
- Subject: Re: [Vala] bug in glib vapi ????
- Date: Wed, 26 Aug 2015 17:18:36 +0200
On 25/08/2015 20:11, Michele Dionisio wrote:
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?
From the documentation it seems like you say. Would you please report a
bug? I can work on it.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]