]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: http: export the function 'smp_fetch_base32'
authorThierry FOURNIER <tfournier@exceliance.fr>
Tue, 15 Jul 2014 14:11:07 +0000 (16:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Jul 2014 17:09:36 +0000 (19:09 +0200)
It's sometimes useful outside of proto_http.c.

include/proto/proto_http.h
src/proto_http.c

index e898ca8721347e4239c7e0a0f0ee401819806322..8c222df48cc04c10d1dcd23021e94d57002a0ed9 100644 (file)
@@ -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);
 
index 94afed74882b6e7c644b0e88626413498395e54a..201749406184506e3f6e7fb7f64caa9af2ae0550 100644 (file)
@@ -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)
 {