blob: 9299b9f39b440a9115f31037bc01b597f198e8d5 [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);
7void vars_prune(struct vars *vars, struct stream *strm);
Willy Tarreauebcd4842015-06-19 11:59:02 +02008void vars_prune_per_sess(struct vars *vars);
Thierry FOURNIERc365d992015-06-09 12:27:17 +02009int vars_get_by_name(const char *name, size_t len, struct stream *strm, struct sample *smp);
10void vars_set_by_name(const char *name, size_t len, struct stream *strm, struct sample *smp);
Thierry FOURNIERfd77e052015-07-07 21:20:42 +020011int vars_get_by_desc(const struct var_desc *var_desc, struct stream *strm, struct sample *smp);
Thierry FOURNIER4834bc72015-06-06 19:29:07 +020012int vars_check_arg(struct arg *arg, char **err);
13
14#endif