diff options
Diffstat (limited to 'hashtable.h')
-rw-r--r-- | hashtable.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/hashtable.h b/hashtable.h index b85c2e0..21467a8 100644 --- a/hashtable.h +++ b/hashtable.h @@ -1,15 +1,17 @@ #pragma once +#include "global.h" + struct hashtable; struct hashtable* ht_alloc(); void ht_free(struct hashtable *ht); -void ht_insert(struct hashtable *ht, unsigned int key, void *value); +void ht_insert(struct hashtable *ht, u64 key, void *value); // Returns NULL if key is not present in the table. -void* ht_find(const struct hashtable *ht, unsigned int key); +void* ht_find(const struct hashtable *ht, u64 key); // Does nothing if the key is not present in the table. -void ht_delete(struct hashtable *ht, unsigned int key); +void ht_delete(struct hashtable *ht, u64 key); |