From: Thierry FOURNIER Date: Tue, 15 Jul 2014 14:11:07 +0000 (+0200) Subject: MINOR: http: export the function 'smp_fetch_base32' X-Git-Tag: v1.6-dev1~357 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=055b9d5c639b0e86bc15e20f724cf34b5811d387;p=thirdparty%2Fhaproxy.git MINOR: http: export the function 'smp_fetch_base32' It's sometimes useful outside of proto_http.c. --- diff --git a/include/proto/proto_http.h b/include/proto/proto_http.h index e898ca8721..8c222df48c 100644 --- a/include/proto/proto_http.h +++ b/include/proto/proto_http.h @@ -122,6 +122,9 @@ struct redirect_rule *http_parse_redirect_rule(const char *file, int linenum, st const char **args, char **errmsg, int use_fmt); int smp_fetch_cookie(struct proxy *px, struct session *l4, void *l7, unsigned int opt, const struct arg *args, struct sample *smp, const char *kw); +int +smp_fetch_base32(struct proxy *px, struct session *l4, void *l7, unsigned int opt, + const struct arg *args, struct sample *smp, const char *kw); enum http_meth_t find_http_meth(const char *str, const int len); diff --git a/src/proto_http.c b/src/proto_http.c index 94afed7488..2017494061 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -10296,7 +10296,7 @@ smp_fetch_base(struct proxy *px, struct session *l4, void *l7, unsigned int opt, * 32-bit integer value. This fetch is useful for tracking per-path activity on * high-traffic sites without having to store whole paths. */ -static int +int smp_fetch_base32(struct proxy *px, struct session *l4, void *l7, unsigned int opt, const struct arg *args, struct sample *smp, const char *kw) {