README for glib-sven-010109-0.patch
This patches replaces glib-sven-010105-0.patch
This patch adds a new function g_hash_table_new_full() which takes
two GDestroyNotify functions as additional parameters. A hash table
constructed this way will call this functions to destroy the memory
allocated for the key and value when removing an item from the
GHashTable.
Addtionally there is a new function g_hash_table_remove_no_notify()
which does not call the destroy_notify functions. Similary the patch
adds a function g_hash_table_destroy_no_notify() which destroys the
hashtable without calling the destroy_notify functions.
When inserting a new item into the GHashTable which replaces the
value of an existing entry, the destroy_notify function is called on the
key passed to g_hash_table_insert().
The new function g_hash_table_replace() works like _insert() but replaces
the key with the new key, calling the destroy_notify function on the
old key.
Sven Neumann <
[email protected]>