MINOR: checks: Export the tcpcheck_eval_ret enum

This enum will be used to define custom function for tcp-check expect rules.
This commit is contained in:
Christopher Faulet 2020-04-03 11:16:13 +02:00
parent 7a1e2e1823
commit 6f87adcf20
2 changed files with 6 additions and 6 deletions

View 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. */

View 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)