diff options
author | Stef Walter <stef@memberwebs.com> | 2007-04-29 00:20:38 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2007-04-29 00:20:38 +0000 |
commit | 856a057fc0a0807e9c0dd2b11c04e1f1312bdb12 (patch) | |
tree | 1286bdecc6beb0d43cfc883016e8d8f834e8d119 /ckcapi-util.h | |
parent | 31366290fcfbb7b51332e41755ba3f0c4b01084f (diff) |
Fix tons of bugs and performance issues to better list the certificates.
Diffstat (limited to 'ckcapi-util.h')
-rw-r--r-- | ckcapi-util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ckcapi-util.h b/ckcapi-util.h index ea3d5e2..84aa9bd 100644 --- a/ckcapi-util.h +++ b/ckcapi-util.h @@ -44,8 +44,10 @@ void ckcapi_array_remove_range (CkCapiArray* array, unsigned int index, struct _CkCapiHash; typedef struct _CkCapiHash CkCapiHash; +typedef void (*CkCapiHashDestroy)(void* val); + CkCapiHash* ckcapi_hash_new(); -void ckcapi_hash_free(CkCapiHash* ht); +void ckcapi_hash_free(CkCapiHash* ht, CkCapiHashDestroy destroy_func); size_t ckcapi_hash_count(CkCapiHash* ht); void* ckcapi_hash_get(CkCapiHash* ht, const void* key, size_t klen); int ckcapi_hash_set(CkCapiHash* ht, const void* key, size_t klen, void* val); |