hashtable: Add destroy_function method

This commit is contained in:
Tobias Brunner
2014-06-19 14:00:48 +02:00
parent dcb168413f
commit 3c206f2e81
2 changed files with 37 additions and 11 deletions
@@ -156,6 +156,15 @@ struct hashtable_t {
* Destroys a hash table object.
*/
void (*destroy) (hashtable_t *this);
/**
* Destroys a hash table object and calls the given function for each
* item and its key in the hash table.
*
* @param function function to call on each item and key
*/
void (*destroy_function)(hashtable_t *this,
void (*)(void *val, const void *key));
};
/**