aboutsummaryrefslogtreecommitdiff
path: root/src/hash-table.h
blob: b8f14bcc16778c22ac03b973cec19aee9c4eda4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef INCLUDED_HASH_TABLE_H
#define INCLUDED_HASH_TABLE_H

#include <stdlib.h>
#include <stdbool.h>

typedef struct hash_table *HASH_TABLE;

HASH_TABLE hash_table_init (size_t bucket_count);
void hash_table_print (HASH_TABLE, const char *filename);
void hash_table_clear (HASH_TABLE);
void hash_table_free  (HASH_TABLE);

void        hash_table_insert (HASH_TABLE, const char *key, const char *value);
bool        hash_table_delete (HASH_TABLE, const char *key);
const char *hash_table_search (HASH_TABLE, const char *key);

#endif