mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 22:28:41 -04:00
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).
18 lines
298 B
C
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 */
|