ghash: Add functions to steal all keys and values preserving ownership

Add functions to steal all the keys or values from a ghash (especially
useful when it's used as a set), passing the ownership of then to a
GPtrArray container that preserves the destroy notify functions.
This commit is contained in:
Marco Trevisan (Treviño)
2022-12-14 04:08:10 +01:00
parent d2c3f7f513
commit d68e7bc84a
4 changed files with 182 additions and 0 deletions

View File

@@ -2578,6 +2578,8 @@ GHFunc
g_hash_table_remove
g_hash_table_steal
g_hash_table_steal_extended
g_hash_table_steal_all_keys
g_hash_table_steal_all_values
g_hash_table_foreach_remove
g_hash_table_foreach_steal
g_hash_table_remove_all