From 1582ccf9d31366de3d2c21b170cb51f672684c99 Mon Sep 17 00:00:00 2001 From: Dragan Dosen Date: Wed, 27 Dec 2023 14:35:58 +0100 Subject: [PATCH] MINOR: tcpcheck: export proxy_parse_tcpcheck() Export proxy_parse_tcpcheck() in tcpcheck.h --- include/haproxy/tcpcheck.h | 4 ++++ src/tcpcheck.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/haproxy/tcpcheck.h b/include/haproxy/tcpcheck.h index 3abd1ef07..55c564a20 100644 --- a/include/haproxy/tcpcheck.h +++ b/include/haproxy/tcpcheck.h @@ -83,6 +83,10 @@ struct tcpcheck_rule *parse_tcpcheck_expect(char **args, int cur_arg, struct pro struct list *rules, unsigned int proto, const char *file, int line, char **errmsg); +int proxy_parse_tcpcheck(char **args, int section, struct proxy *curpx, + const struct proxy *defpx, const char *file, int line, + char **errmsg); + int proxy_parse_tcp_check_opt(char **args, int cur_arg, struct proxy *curpx, const struct proxy *defpx, const char *file, int line); int proxy_parse_redis_check_opt(char **args, int cur_arg, struct proxy *curpx, const struct proxy *defpx, diff --git a/src/tcpcheck.c b/src/tcpcheck.c index d30ecb57e..050015d1f 100644 --- a/src/tcpcheck.c +++ b/src/tcpcheck.c @@ -3877,9 +3877,9 @@ int add_tcpcheck_send_strs(struct tcpcheck_rules *rules, const char * const *str } /* Parses the "tcp-check" proxy keyword */ -static int proxy_parse_tcpcheck(char **args, int section, struct proxy *curpx, - const struct proxy *defpx, const char *file, int line, - char **errmsg) +int proxy_parse_tcpcheck(char **args, int section, struct proxy *curpx, + const struct proxy *defpx, const char *file, int line, + char **errmsg) { struct tcpcheck_ruleset *rs = NULL; struct tcpcheck_rule *chk = NULL;