From 8be8304bc626a8272c104acc1ec799abcb8b69a2 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Fri, 20 Oct 2006 12:13:28 +0000 Subject: Plug possible memory leak. Reduce memory usage. Add facility to iterate through a hashtable. svn path=/trunk/netsurf/; revision=3013 --- utils/hashtable.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/hashtable.h') 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 -- cgit v1.2.3