2015-06-06 17:29:07 +00:00
|
|
|
#ifndef _PROTO_VARS_H
|
|
|
|
#define _PROTO_VARS_H
|
|
|
|
|
|
|
|
#include <types/vars.h>
|
|
|
|
|
|
|
|
void vars_init(struct vars *vars, enum vars_scope scope);
|
2016-03-10 15:33:04 +00:00
|
|
|
void vars_prune(struct vars *vars, struct session *sess, struct stream *strm);
|
2015-06-19 09:59:02 +00:00
|
|
|
void vars_prune_per_sess(struct vars *vars);
|
2016-03-10 15:33:04 +00:00
|
|
|
int vars_get_by_name(const char *name, size_t len, struct sample *smp);
|
|
|
|
void vars_set_by_name(const char *name, size_t len, struct sample *smp);
|
|
|
|
int vars_get_by_desc(const struct var_desc *var_desc, struct sample *smp);
|
2015-06-06 17:29:07 +00:00
|
|
|
int vars_check_arg(struct arg *arg, char **err);
|
|
|
|
|
|
|
|
#endif
|