mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-18 06:26:55 +02:00
MINOR: sample: add type_to_smp() helper function
type_to_smp(type) does the reverse operation of smp_to_type[smp]: it takes a type name as input string and tries to return the corresponding SMP_T_* smp type or SMP_TYPES if not found.
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
extern sample_cast_fct sample_casts[SMP_TYPES][SMP_TYPES];
|
||||
extern const unsigned int fetch_cap[SMP_SRC_ENTRIES];
|
||||
extern const char *smp_to_type[SMP_TYPES];
|
||||
int type_to_smp(const char *type);
|
||||
|
||||
struct sample_expr *sample_parse_expr(char **str, int *idx, const char *file, int line, char **err, struct arg_list *al, char **endptr);
|
||||
int sample_parse_expr_cnv(char **str, int *idx, char **endptr, char **err_msg, struct arg_list *al, const char *file, int line,
|
||||
|
||||
Reference in New Issue
Block a user