diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-09-14 16:51:07 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-09-14 16:51:07 +0000 |
commit | 83113c17877801a633ccd267b74894741efc65c0 (patch) | |
tree | 5143e654fb3c00dfd26fdddf23e4fd3eac2f77d5 /src/include/util_Hash.h | |
parent | f1085f4af8f7f9d4d1d38dbc9346494c50753a9f (diff) |
Added extra argument to Util_HashDestroy so a function which destroys
the objects stored in the hash can be passed in. If NULL is passed it
ignored this argument.
Fixed a bug in Util_HashDestroy.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1814 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/util_Hash.h')
-rw-r--r-- | src/include/util_Hash.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/util_Hash.h b/src/include/util_Hash.h index 1c404056..4d9e5db9 100644 --- a/src/include/util_Hash.h +++ b/src/include/util_Hash.h @@ -39,7 +39,8 @@ typedef struct T_HASH } uHash; uHash *Util_HashCreate(unsigned int initial_size); -int Util_HashDestroy(uHash *hash); + +int Util_HashDestroy(uHash *hash, void (*delete_entry)(void *)); int Util_HashStore(uHash *hash, unsigned int klen, |