garray: Add g_ptr_array_find[_with_equal_func]()

Partially based on telepathy-glib’s tp_g_ptr_array_contains(), and a
patch by Xavier Claessens <xavier.claessens@collabora.co.uk>.

Test cases included.

https://bugzilla.gnome.org/show_bug.cgi?id=698064
This commit is contained in:
Philip Withnall
2013-04-15 15:04:34 +02:00
committed by Philip Withnall
parent 42a8e952ef
commit f6f6b3d83c
4 changed files with 142 additions and 0 deletions

View File

@@ -2566,6 +2566,8 @@ g_ptr_array_set_size
g_ptr_array_index
g_ptr_array_free
g_ptr_array_foreach
g_ptr_array_find
g_ptr_array_find_with_equal_func
</SECTION>