diff options
Diffstat (limited to 'src/hash-table.h')
| -rw-r--r-- | src/hash-table.h | 18 |
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 | |||
| 7 | typedef struct hash_table *HASH_TABLE; | ||
| 8 | |||
| 9 | HASH_TABLE hash_table_init (size_t bucket_count); | ||
| 10 | void hash_table_print (HASH_TABLE, const char *filename); | ||
| 11 | void hash_table_clear (HASH_TABLE); | ||
| 12 | void hash_table_free (HASH_TABLE); | ||
| 13 | |||
| 14 | void hash_table_insert (HASH_TABLE, const char *key, const char *value); | ||
| 15 | bool hash_table_delete (HASH_TABLE, const char *key); | ||
| 16 | const char *hash_table_search (HASH_TABLE, const char *key); | ||
| 17 | |||
| 18 | #endif | ||
