From ec0d36ee55709f1df76f977823722a4b53cf27ed Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 3 May 2008 02:36:31 +0000 Subject: A whole bunch of changes including: * Measure disk space * Support mulitple IPs per jail. --- common/hash.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'common/hash.h') diff --git a/common/hash.h b/common/hash.h index 4dc37b2..bf9d7b8 100644 --- a/common/hash.h +++ b/common/hash.h @@ -133,10 +133,21 @@ hsh_index_t* hsh_next(hsh_index_t* hi); */ void* hsh_this(hsh_index_t* hi, const void** key, size_t* klen); +/* + * hsh_clear: Clear all values from has htable. + */ +void hsh_clear(hsh_t* ht); + /* * This can be passed as 'klen' in any of the above functions to indicate * a string-valued key, and have hash compute the length automatically. */ #define HSH_KEY_STRING (-1) +/* + * This can be passed as 'klen' in any of the above functions to indicate + * use of the key pointer directly as a hash. + */ +#define HSH_KEY_DIRECT (-2) + #endif /* __HSH_H__ */ -- cgit v1.2.3