blob: 006e91524db414ee1208a955725859c5234661ac [file] [log] [blame]
Frédéric Lécaille4a3fef82019-05-28 14:47:17 +02001#ifndef _TYPES_DICT_H
2#define _TYPES_DICT_H
3
4#include <common/hathreads.h>
5#include <ebpttree.h>
6
7struct dict_entry {
8 struct ebpt_node value;
9 unsigned int refcount;
Frédéric Lécaille99de1d02019-06-07 10:58:20 +020010 size_t len;
Frédéric Lécaille4a3fef82019-05-28 14:47:17 +020011};
12
13struct dict {
14 const char *name;
15 struct eb_root values;
16 __decl_hathreads(HA_RWLOCK_T rwlock);
17};
18
19#endif /* _TYPES_DICT_H */