Re: [Vala] bug in glib vapi ????
- From: Michele Dionisio <michele dionisio gmail com>
- To: Luca Bruno <lethalman88 gmail com>
- Cc: Vala List <vala-list gnome org>
- Subject: Re: [Vala] bug in glib vapi ????
- Date: Wed, 26 Aug 2015 21:02:41 +0200
ok.
bug 754137 created
2015-08-26 17:18 GMT+02:00 Luca Bruno <lethalman88 gmail com>:
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.
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]