Frédéric Lécaille | 4a3fef8 | 2019-05-28 14:47:17 +0200 | [diff] [blame] | 1 | #ifndef _TYPES_DICT_H |
| 2 | #define _TYPES_DICT_H |
| 3 | |
| 4 | #include <common/hathreads.h> |
Willy Tarreau | 8d2b777 | 2020-05-27 10:58:19 +0200 | [diff] [blame] | 5 | #include <import/ebpttree.h> |
Frédéric Lécaille | 4a3fef8 | 2019-05-28 14:47:17 +0200 | [diff] [blame] | 6 | |
| 7 | struct dict_entry { |
| 8 | struct ebpt_node value; |
| 9 | unsigned int refcount; |
Frédéric Lécaille | 99de1d0 | 2019-06-07 10:58:20 +0200 | [diff] [blame] | 10 | size_t len; |
Frédéric Lécaille | 4a3fef8 | 2019-05-28 14:47:17 +0200 | [diff] [blame] | 11 | }; |
| 12 | |
| 13 | struct dict { |
| 14 | const char *name; |
| 15 | struct eb_root values; |
| 16 | __decl_hathreads(HA_RWLOCK_T rwlock); |
| 17 | }; |
| 18 | |
| 19 | #endif /* _TYPES_DICT_H */ |