From: Ben Date: Tue, 13 Oct 2015 00:11:23 +0000 (-0400) Subject: glib-2.0: Fix SearchFunc argument order for {List,SList,Queue}.search() X-Git-Tag: 0.34.0~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee66513494586b243aa77af3813e6ff3aebc635a;p=thirdparty%2Fvala.git glib-2.0: Fix SearchFunc argument order for {List,SList,Queue}.search() The function takes two gconstpointer arguments, the List element's data as the first argument and the given user data. https://bugzilla.gnome.org/show_bug.cgi?id=754137 --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 22bb3e61f..2bbc898a4 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -4346,7 +4346,7 @@ namespace GLib { public unowned List find (G data); public unowned List find_custom (G data, CompareFunc func); [CCode (cname = "g_list_find_custom", simple_generics = true)] - public unowned List search (T data, SearchFunc func); + public unowned List search (T data, SearchFunc func); public int position (List llink); public int index (G data); @@ -4406,7 +4406,7 @@ namespace GLib { public unowned SList find (G data); public unowned SList find_custom (G data, CompareFunc func); [CCode (cname = "g_slist_find_custom", simple_generics = true)] - public unowned SList search (T data, SearchFunc func); + public unowned SList search (T data, SearchFunc func); public int position (SList llink); public int index (G data); @@ -4453,7 +4453,7 @@ namespace GLib { [Version (since = "2.4")] public unowned List find_custom (G data, CompareFunc func); [CCode (cname = "g_queue_find_custom", simple_generics = true)] - public unowned List search (T data, SearchFunc func); + public unowned List search (T data, SearchFunc func); [Version (since = "2.4")] public void sort (CompareDataFunc compare_func); public void push_head (owned G data);