mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-09 08:51:28 -04:00
MINOR: actions: Export actions lookup functions
These functions will be useful to check if a keyword is already registered. This will be needed by a next patch to fix a bug, and will need to be backported.
This commit is contained in:
parent
2f05cc6f86
commit
7a71a6d9d2
4 changed files with 16 additions and 7 deletions
|
|
@ -52,6 +52,10 @@ static inline void http_after_res_keywords_register(struct action_kw_list *kw_li
|
|||
LIST_ADDQ(&http_after_res_keywords.list, &kw_list->list);
|
||||
}
|
||||
|
||||
struct action_kw *action_http_req_custom(const char *kw);
|
||||
struct action_kw *action_http_res_custom(const char *kw);
|
||||
struct action_kw *action_http_after_res_custom(const char *kw);
|
||||
|
||||
#endif /* _HAPROXY_HTTP_RULES_H */
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -37,6 +37,11 @@ void tcp_req_sess_keywords_register(struct action_kw_list *kw_list);
|
|||
void tcp_req_cont_keywords_register(struct action_kw_list *kw_list);
|
||||
void tcp_res_cont_keywords_register(struct action_kw_list *kw_list);
|
||||
|
||||
struct action_kw *tcp_req_conn_action(const char *kw);
|
||||
struct action_kw *tcp_req_sess_action(const char *kw);
|
||||
struct action_kw *tcp_req_cont_action(const char *kw);
|
||||
struct action_kw *tcp_res_cont_action(const char *kw);
|
||||
|
||||
#endif /* _HAPROXY_TCP_RULES_H */
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ struct action_kw_list http_after_res_keywords = {
|
|||
/*
|
||||
* Return the struct http_req_action_kw associated to a keyword.
|
||||
*/
|
||||
static struct action_kw *action_http_req_custom(const char *kw)
|
||||
struct action_kw *action_http_req_custom(const char *kw)
|
||||
{
|
||||
return action_lookup(&http_req_keywords.list, kw);
|
||||
}
|
||||
|
|
@ -59,7 +59,7 @@ static struct action_kw *action_http_req_custom(const char *kw)
|
|||
/*
|
||||
* Return the struct http_res_action_kw associated to a keyword.
|
||||
*/
|
||||
static struct action_kw *action_http_res_custom(const char *kw)
|
||||
struct action_kw *action_http_res_custom(const char *kw)
|
||||
{
|
||||
return action_lookup(&http_res_keywords.list, kw);
|
||||
}
|
||||
|
|
@ -67,7 +67,7 @@ static struct action_kw *action_http_res_custom(const char *kw)
|
|||
/*
|
||||
* Return the struct http_after_res_action_kw associated to a keyword.
|
||||
*/
|
||||
static struct action_kw *action_http_after_res_custom(const char *kw)
|
||||
struct action_kw *action_http_after_res_custom(const char *kw)
|
||||
{
|
||||
return action_lookup(&http_after_res_keywords.list, kw);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,22 +66,22 @@ void tcp_res_cont_keywords_register(struct action_kw_list *kw_list)
|
|||
/*
|
||||
* Return the struct tcp_req_action_kw associated to a keyword.
|
||||
*/
|
||||
static struct action_kw *tcp_req_conn_action(const char *kw)
|
||||
struct action_kw *tcp_req_conn_action(const char *kw)
|
||||
{
|
||||
return action_lookup(&tcp_req_conn_keywords, kw);
|
||||
}
|
||||
|
||||
static struct action_kw *tcp_req_sess_action(const char *kw)
|
||||
struct action_kw *tcp_req_sess_action(const char *kw)
|
||||
{
|
||||
return action_lookup(&tcp_req_sess_keywords, kw);
|
||||
}
|
||||
|
||||
static struct action_kw *tcp_req_cont_action(const char *kw)
|
||||
struct action_kw *tcp_req_cont_action(const char *kw)
|
||||
{
|
||||
return action_lookup(&tcp_req_cont_keywords, kw);
|
||||
}
|
||||
|
||||
static struct action_kw *tcp_res_cont_action(const char *kw)
|
||||
struct action_kw *tcp_res_cont_action(const char *kw)
|
||||
{
|
||||
return action_lookup(&tcp_res_cont_keywords, kw);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue