MINOR: vars: export var_set and var_unset functions
Co-authored-by: Dragan Dosen <ddosen@haproxy.com>
This commit is contained in:
committed by
Willy Tarreau
parent
cf37e4cc1b
commit
e225e04ba7
@ -37,6 +37,8 @@ void var_accounting_diff(struct vars *vars, struct session *sess, struct stream
|
||||
unsigned int var_clear(struct var *var, int force);
|
||||
void vars_prune(struct vars *vars, struct session *sess, struct stream *strm);
|
||||
void vars_prune_per_sess(struct vars *vars);
|
||||
int var_set(uint64_t name_hash, enum vars_scope scope, struct sample *smp, uint flags);
|
||||
int var_unset(uint64_t name_hash, enum vars_scope scope, struct sample *smp);
|
||||
int vars_get_by_name(const char *name, size_t len, struct sample *smp, const struct buffer *def);
|
||||
int vars_set_by_name_ifexist(const char *name, size_t len, struct sample *smp);
|
||||
int vars_set_by_name(const char *name, size_t len, struct sample *smp);
|
||||
|
@ -363,7 +363,7 @@ static inline void var_clear_buffer(struct sample *smp, struct vars *vars, struc
|
||||
*
|
||||
* It returns 0 on failure, non-zero on success.
|
||||
*/
|
||||
static int var_set(uint64_t name_hash, enum vars_scope scope, struct sample *smp, uint flags)
|
||||
int var_set(uint64_t name_hash, enum vars_scope scope, struct sample *smp, uint flags)
|
||||
{
|
||||
struct vars *vars;
|
||||
struct var *var;
|
||||
@ -515,7 +515,7 @@ static int var_set(uint64_t name_hash, enum vars_scope scope, struct sample *smp
|
||||
* session and stream found in <smp>. Note that stream may be null for
|
||||
* SCOPE_SESS. Returns 0 if the scope was not found otherwise 1.
|
||||
*/
|
||||
static int var_unset(uint64_t name_hash, enum vars_scope scope, struct sample *smp)
|
||||
int var_unset(uint64_t name_hash, enum vars_scope scope, struct sample *smp)
|
||||
{
|
||||
struct vars *vars;
|
||||
struct var *var;
|
||||
|
Reference in New Issue
Block a user