From b70596df0a4e4f614d16e29e990974f51ba63e77 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 6 Oct 2021 09:09:01 +0200 Subject: [PATCH] BUILD: action: add the relevant structures for function arguments Some structures are inherited via intermediary includes (e.g. dns_counters comes from a long path). Let's define the missing ones and includes vars-t that is needed in the structure. --- include/haproxy/action-t.h | 6 +++++- include/haproxy/action.h | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/include/haproxy/action-t.h b/include/haproxy/action-t.h index fd85d2707..08f250897 100644 --- a/include/haproxy/action-t.h +++ b/include/haproxy/action-t.h @@ -23,8 +23,12 @@ #define _HAPROXY_ACTION_T_H #include -#include #include +#include + +struct session; +struct stream; +struct proxy; enum act_from { ACT_F_TCP_REQ_CON, /* tcp-request connection */ diff --git a/include/haproxy/action.h b/include/haproxy/action.h index a85d7a0c1..9ea5847c9 100644 --- a/include/haproxy/action.h +++ b/include/haproxy/action.h @@ -28,6 +28,9 @@ #include #include +struct resolv_requester; +struct dns_counters; + int act_resolution_cb(struct resolv_requester *requester, struct dns_counters *counters); int act_resolution_error_cb(struct resolv_requester *requester, int error_code); const char *action_suggest(const char *word, const struct list *keywords, const char **extra);