diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-10-01 13:59:48 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-10-01 13:59:48 +0000 |
commit | 255895a58b3f2a54fecf971da700caf265b4e1f0 (patch) | |
tree | 6f8f7a3d6249d667c51c83b8dbe582fb1ba71010 /runtime/hashtable.h | |
parent | 9696cdef34f5d033564138fb9d4afb87daa6b1be (diff) | |
download | rsyslog-255895a58b3f2a54fecf971da700caf265b4e1f0.tar.gz rsyslog-255895a58b3f2a54fecf971da700caf265b4e1f0.tar.bz2 rsyslog-255895a58b3f2a54fecf971da700caf265b4e1f0.zip |
omhdfs: more improvements
finally this looks almost production ready for files where no
directory path needs to be created
Diffstat (limited to 'runtime/hashtable.h')
-rw-r--r-- | runtime/hashtable.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/hashtable.h b/runtime/hashtable.h index 0f980127..f777ad0b 100644 --- a/runtime/hashtable.h +++ b/runtime/hashtable.h @@ -68,13 +68,14 @@ struct hashtable; * @param minsize minimum initial size of hashtable * @param hashfunction function for hashing keys * @param key_eq_fn function for determining key equality + * @param dest destructor for value entries (NULL -> use free()) * @return newly created hashtable or NULL on failure */ struct hashtable * create_hashtable(unsigned int minsize, unsigned int (*hashfunction) (void*), - int (*key_eq_fn) (void*,void*)); + int (*key_eq_fn) (void*,void*), void (*dest) (void*)); /***************************************************************************** * hashtable_insert |