haproxy/include/types/dict.h
Frédéric Lécaille 4a3fef834c MINOR: dict: Add dictionary new data structure.
This patch adds minimalistic definitions to implement dictionary new data structure
which is an ebtree of ebpt_node structs with strings as keys. Note that this has nothing
to see with real dictionary data structure (maps of keys in association with values).
2019-06-05 08:33:35 +02:00

18 lines
298 B
C

#ifndef _TYPES_DICT_H
#define _TYPES_DICT_H
#include <common/hathreads.h>
#include <ebpttree.h>
struct dict_entry {
struct ebpt_node value;
unsigned int refcount;
};
struct dict {
const char *name;
struct eb_root values;
__decl_hathreads(HA_RWLOCK_T rwlock);
};
#endif /* _TYPES_DICT_H */