summaryrefslogtreecommitdiff
path: root/src/libstrongswan/collections/hashtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/collections/hashtable.h')
-rw-r--r--src/libstrongswan/collections/hashtable.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstrongswan/collections/hashtable.h b/src/libstrongswan/collections/hashtable.h
index 0a7ebeb65..f60564a42 100644
--- a/src/libstrongswan/collections/hashtable.h
+++ b/src/libstrongswan/collections/hashtable.h
@@ -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));
};
/**