blob: caf00ff685ac607cfc461b1b9a7521b88a02011c [file] [log] [blame]
Thierry FOURNIER4834bc72015-06-06 19:29:07 +02001#ifndef _PROTO_VARS_H
2#define _PROTO_VARS_H
3
4#include <types/vars.h>
5
6void vars_init(struct vars *vars, enum vars_scope scope);
Willy Tarreau6204cd92016-03-10 16:33:04 +01007void vars_prune(struct vars *vars, struct session *sess, struct stream *strm);
Willy Tarreauebcd4842015-06-19 11:59:02 +02008void vars_prune_per_sess(struct vars *vars);
Willy Tarreau6204cd92016-03-10 16:33:04 +01009int vars_get_by_name(const char *name, size_t len, struct sample *smp);
Christopher Faulet09c9df22016-10-31 11:05:37 +010010void vars_set_by_name_ifexist(const char *name, size_t len, struct sample *smp);
Willy Tarreau6204cd92016-03-10 16:33:04 +010011void vars_set_by_name(const char *name, size_t len, struct sample *smp);
Christopher Faulet85d79c92016-11-09 16:54:56 +010012void vars_unset_by_name_ifexist(const char *name, size_t len, struct sample *smp);
Willy Tarreau6204cd92016-03-10 16:33:04 +010013int vars_get_by_desc(const struct var_desc *var_desc, struct sample *smp);
Thierry FOURNIER4834bc72015-06-06 19:29:07 +020014int vars_check_arg(struct arg *arg, char **err);
15
16#endif