]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: checks: Export the tcpcheck_eval_ret enum
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Apr 2020 09:16:13 +0000 (11:16 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:38 +0000 (09:39 +0200)
This enum will be used to define custom function for tcp-check expect rules.

include/types/checks.h
src/checks.c

index c44fe8e39009e992d7bad53e3c7d329a93e14633..220563345cb639b1e8e983d39a43ff1dfa006d28 100644 (file)
@@ -246,6 +246,12 @@ struct tcpcheck_send {
        };
 };
 
+enum tcpcheck_eval_ret {
+       TCPCHK_EVAL_WAIT = 0,
+       TCPCHK_EVAL_STOP,
+       TCPCHK_EVAL_CONTINUE,
+};
+
 enum tcpcheck_expect_type {
        TCPCHK_EXPECT_UNDEF = 0, /* Match is not used. */
        TCPCHK_EXPECT_STRING, /* Matches a string. */
index 6820d28749a91a1ad0118648b7f6c16af1a1f7a0..20280bdffe922a96e0ecec3ca15a6780917502c9 100644 (file)
@@ -2763,12 +2763,6 @@ static int tcpcheck_get_step_id(struct check *check, struct tcpcheck_rule *rule)
        return rule->index + 1;
 }
 
-enum tcpcheck_eval_ret {
-       TCPCHK_EVAL_WAIT = 0,
-       TCPCHK_EVAL_STOP,
-       TCPCHK_EVAL_CONTINUE,
-};
-
 /* Evaluate a TCPCHK_ACT_CONNECT rule. It returns 1 to evaluate the next rule, 0
  * to wait and -1 to stop the check. */
 static enum tcpcheck_eval_ret tcpcheck_eval_connect(struct check *check, struct tcpcheck_rule *rule)