2018-05-18 14:01:02 +00:00
|
|
|
#ifndef __HASHMAP_NODE_H
|
|
|
|
#define __HASHMAP_NODE_H
|
|
|
|
|
|
|
|
struct node {
|
|
|
|
struct node *next;
|
|
|
|
struct node *prev;
|
|
|
|
const char *key;
|
2018-05-20 02:36:01 +00:00
|
|
|
const void *value;
|
2018-05-18 14:01:02 +00:00
|
|
|
};
|
|
|
|
|
2018-05-20 02:36:01 +00:00
|
|
|
struct node *new_node(const char *key, const void *value);
|
|
|
|
struct node *insert_node(struct node *entry, const char *key, const void *value);
|
2018-05-18 14:01:02 +00:00
|
|
|
|
|
|
|
#endif
|