aboutsummaryrefslogtreecommitdiff
path: root/src/hash-table.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash-table.h')
-rw-r--r--src/hash-table.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/hash-table.h b/src/hash-table.h
new file mode 100644
index 0000000..b8f14bc
--- /dev/null
+++ b/src/hash-table.h
@@ -0,0 +1,18 @@
1#ifndef INCLUDED_HASH_TABLE_H
2#define INCLUDED_HASH_TABLE_H
3
4#include <stdlib.h>
5#include <stdbool.h>
6
7typedef struct hash_table *HASH_TABLE;
8
9HASH_TABLE hash_table_init (size_t bucket_count);
10void hash_table_print (HASH_TABLE, const char *filename);
11void hash_table_clear (HASH_TABLE);
12void hash_table_free (HASH_TABLE);
13
14void hash_table_insert (HASH_TABLE, const char *key, const char *value);
15bool hash_table_delete (HASH_TABLE, const char *key);
16const char *hash_table_search (HASH_TABLE, const char *key);
17
18#endif