summaryrefslogtreecommitdiffstats
path: root/src/hashtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hashtable.h')
-rw-r--r--src/hashtable.h9
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
26typedef struct hashentry_t { 25typedef 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); 41hashtable_t* hash_table_new(hash_func_t hash_func, compare_func_t compare_func);
43_PLIST_INTERNAL void hash_table_destroy(hashtable_t *ht); 42void hash_table_destroy(hashtable_t *ht);
44 43
45_PLIST_INTERNAL void hash_table_insert(hashtable_t* ht, void *key, void *value); 44void hash_table_insert(hashtable_t* ht, void *key, void *value);
46_PLIST_INTERNAL void* hash_table_lookup(hashtable_t* ht, void *key); 45void* hash_table_lookup(hashtable_t* ht, void *key);
47 46
48#endif 47#endif