ghash: Add g_hash_table_steal_extended()

This is a combination of g_hash_table_lookup_extended() and
g_hash_table_steal(), so that users can combine the two to reduce code
and eliminate a pointless second hash table lookup by
g_hash_table_steal().

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=795302
This commit is contained in:
Philip Withnall
2018-04-16 16:02:13 +01:00
parent 864cb71524
commit 6acece5074
4 changed files with 112 additions and 0 deletions

View File

@@ -2453,6 +2453,7 @@ g_hash_table_find
GHFunc
g_hash_table_remove
g_hash_table_steal
g_hash_table_steal_extended
g_hash_table_foreach_remove
g_hash_table_foreach_steal
g_hash_table_remove_all