diff options
Diffstat (limited to 'src/hashtable.h')
| -rw-r--r-- | src/hashtable.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/hashtable.h b/src/hashtable.h index 8c72c82..c28de91 100644 --- a/src/hashtable.h +++ b/src/hashtable.h | |||
| @@ -21,7 +21,6 @@ | |||
| 21 | #ifndef HASHTABLE_H | 21 | #ifndef HASHTABLE_H |
| 22 | #define HASHTABLE_H | 22 | #define HASHTABLE_H |
| 23 | #include <stdlib.h> | 23 | #include <stdlib.h> |
| 24 | #include "common.h" | ||
| 25 | 24 | ||
| 26 | typedef struct hashentry_t { | 25 | typedef struct hashentry_t { |
| 27 | void *key; | 26 | void *key; |
| @@ -39,10 +38,10 @@ typedef struct hashtable_t { | |||
| 39 | compare_func_t compare_func; | 38 | compare_func_t compare_func; |
| 40 | } hashtable_t; | 39 | } hashtable_t; |
| 41 | 40 | ||
| 42 | _PLIST_INTERNAL hashtable_t* hash_table_new(hash_func_t hash_func, compare_func_t compare_func); | 41 | hashtable_t* hash_table_new(hash_func_t hash_func, compare_func_t compare_func); |
| 43 | _PLIST_INTERNAL void hash_table_destroy(hashtable_t *ht); | 42 | void hash_table_destroy(hashtable_t *ht); |
| 44 | 43 | ||
| 45 | _PLIST_INTERNAL void hash_table_insert(hashtable_t* ht, void *key, void *value); | 44 | void hash_table_insert(hashtable_t* ht, void *key, void *value); |
| 46 | _PLIST_INTERNAL void* hash_table_lookup(hashtable_t* ht, void *key); | 45 | void* hash_table_lookup(hashtable_t* ht, void *key); |
| 47 | 46 | ||
| 48 | #endif | 47 | #endif |
