mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-29 10:11:49 -04:00
I can never figure whether it takes an "s" or not, and in the end it's better if it matches the file's naming, so let's call it "__decl_thread".
19 lines
313 B
C
19 lines
313 B
C
#ifndef _TYPES_DICT_H
|
|
#define _TYPES_DICT_H
|
|
|
|
#include <haproxy/thread.h>
|
|
#include <import/ebpttree.h>
|
|
|
|
struct dict_entry {
|
|
struct ebpt_node value;
|
|
unsigned int refcount;
|
|
size_t len;
|
|
};
|
|
|
|
struct dict {
|
|
const char *name;
|
|
struct eb_root values;
|
|
__decl_thread(HA_RWLOCK_T rwlock);
|
|
};
|
|
|
|
#endif /* _TYPES_DICT_H */
|