mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
Half of the users of this include only need the type definitions and not the manipulation macros nor the inline functions. Moves the various types into mini-clist-t.h makes the files cleaner. The other one had all its includes grouped at the top. A few files continued to reference it without using it and were cleaned. In addition it was about time that we'd rename that file, it's not "mini" anymore and contains a bit more than just circular lists.
37 lines
672 B
C
37 lines
672 B
C
#ifndef _TYPES_VARS_H
|
|
#define _TYPES_VARS_H
|
|
|
|
#include <haproxy/list-t.h>
|
|
#include <common/hathreads.h>
|
|
|
|
#include <types/sample.h>
|
|
|
|
enum vars_scope {
|
|
SCOPE_SESS = 0,
|
|
SCOPE_TXN,
|
|
SCOPE_REQ,
|
|
SCOPE_RES,
|
|
SCOPE_PROC,
|
|
SCOPE_CHECK,
|
|
};
|
|
|
|
struct vars {
|
|
struct list head;
|
|
enum vars_scope scope;
|
|
unsigned int size;
|
|
__decl_hathreads(HA_RWLOCK_T rwlock);
|
|
};
|
|
|
|
/* This struct describes a variable. */
|
|
struct var_desc {
|
|
const char *name; /* Contains the normalized variable name. */
|
|
enum vars_scope scope;
|
|
};
|
|
|
|
struct var {
|
|
struct list l; /* Used for chaining vars. */
|
|
const char *name; /* Contains the variable name. */
|
|
struct sample_data data; /* data storage. */
|
|
};
|
|
|
|
#endif
|