summaryrefslogtreecommitdiff
path: root/utils/hashtable.h
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2006-10-20 12:13:28 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2006-10-20 12:13:28 +0000
commit8be8304bc626a8272c104acc1ec799abcb8b69a2 (patch)
tree0ff353b1a47d99a4898fb00d06f7f40a6269b0f3 /utils/hashtable.h
parent1e6345e562e2701d036dd953befd03273ea46b05 (diff)
downloadnetsurf-8be8304bc626a8272c104acc1ec799abcb8b69a2.tar.gz
netsurf-8be8304bc626a8272c104acc1ec799abcb8b69a2.tar.bz2
Plug possible memory leak. Reduce memory usage. Add facility to iterate through a hashtable.
svn path=/trunk/netsurf/; revision=3013
Diffstat (limited to 'utils/hashtable.h')
-rw-r--r--utils/hashtable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/hashtable.h b/utils/hashtable.h
index e025a4865..3c0515445 100644
--- a/utils/hashtable.h
+++ b/utils/hashtable.h
@@ -20,5 +20,7 @@ void hash_destroy(struct hash_table *ht);
bool hash_add(struct hash_table *ht, const char *key, const char *value);
const char *hash_get(struct hash_table *ht, const char *key);
unsigned int hash_string_fnv(const char *datum, unsigned int *len);
+const char *hash_iterate(struct hash_table *ht, unsigned int *c1,
+ unsigned int **c2);
#endif