mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-27 23:22:09 +00:00
85d79c94a9
It does the opposite of 'set-var' action/converter. It is really useful for per-process variables. But, it can be used for any scope. The lua function 'unset_var' has also been added.
18 lines
768 B
C
18 lines
768 B
C
#ifndef _PROTO_VARS_H
|
|
#define _PROTO_VARS_H
|
|
|
|
#include <types/vars.h>
|
|
|
|
void vars_init(struct vars *vars, enum vars_scope scope);
|
|
void vars_prune(struct vars *vars, struct session *sess, struct stream *strm);
|
|
void vars_prune_per_sess(struct vars *vars);
|
|
int vars_get_by_name(const char *name, size_t len, struct sample *smp);
|
|
void vars_set_by_name_ifexist(const char *name, size_t len, struct sample *smp);
|
|
void vars_set_by_name(const char *name, size_t len, struct sample *smp);
|
|
void vars_unset_by_name_ifexist(const char *name, size_t len, struct sample *smp);
|
|
void vars_unset_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);
|
|
int vars_check_arg(struct arg *arg, char **err);
|
|
|
|
#endif
|