/*
- * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+ * Copyright (c) 2009, 2010 Petri Lehtinen <petri@digip.org>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
typedef void (*free_fn)(void *key);
struct hashtable_list {
- struct hashtable_list *prev;
- struct hashtable_list *next;
+ struct hashtable_list *prev;
+ struct hashtable_list *next;
};
struct hashtable_pair {
int hashtable_del(hashtable_t *hashtable, const void *key);
/**
+ * hashtable_clear - Clear hashtable
+ *
+ * @hashtable: The hashtable object
+ *
+ * Removes all items from the hashtable.
+ */
+void hashtable_clear(hashtable_t *hashtable);
+
+/**
* hashtable_iter - Iterate over hashtable
*
* @hashtable: The hashtable object