Thierry FOURNIER | 4834bc7 | 2015-06-06 19:29:07 +0200 | [diff] [blame] | 1 | #ifndef _PROTO_VARS_H |
| 2 | #define _PROTO_VARS_H |
| 3 | |
| 4 | #include <types/vars.h> |
| 5 | |
| 6 | void vars_init(struct vars *vars, enum vars_scope scope); |
Willy Tarreau | 6204cd9 | 2016-03-10 16:33:04 +0100 | [diff] [blame] | 7 | void vars_prune(struct vars *vars, struct session *sess, struct stream *strm); |
Willy Tarreau | ebcd484 | 2015-06-19 11:59:02 +0200 | [diff] [blame] | 8 | void vars_prune_per_sess(struct vars *vars); |
Willy Tarreau | 6204cd9 | 2016-03-10 16:33:04 +0100 | [diff] [blame] | 9 | int vars_get_by_name(const char *name, size_t len, struct sample *smp); |
Christopher Faulet | 09c9df2 | 2016-10-31 11:05:37 +0100 | [diff] [blame] | 10 | void vars_set_by_name_ifexist(const char *name, size_t len, struct sample *smp); |
Willy Tarreau | 6204cd9 | 2016-03-10 16:33:04 +0100 | [diff] [blame] | 11 | void vars_set_by_name(const char *name, size_t len, struct sample *smp); |
Christopher Faulet | 85d79c9 | 2016-11-09 16:54:56 +0100 | [diff] [blame] | 12 | void vars_unset_by_name_ifexist(const char *name, size_t len, struct sample *smp); |
| 13 | void vars_unset_by_name(const char *name, size_t len, struct sample *smp); |
Willy Tarreau | 6204cd9 | 2016-03-10 16:33:04 +0100 | [diff] [blame] | 14 | int vars_get_by_desc(const struct var_desc *var_desc, struct sample *smp); |
Thierry FOURNIER | 4834bc7 | 2015-06-06 19:29:07 +0200 | [diff] [blame] | 15 | int vars_check_arg(struct arg *arg, char **err); |
| 16 | |
| 17 | #endif |