REORG: include: move action.h to haproxy/action{,-t}.h

List.h was missing for LIST_ADDQ(). A few unneeded includes of action.h
were removed from certain files.

This one still relies on applet.h and stick-table.h.
This commit is contained in:
Willy Tarreau 2020-06-04 10:15:32 +02:00
parent 8c794000c4
commit 122eba92b7
21 changed files with 29 additions and 29 deletions

View File

@ -13,6 +13,7 @@
*
*/
#include <haproxy/action-t.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <haproxy/http.h>
@ -23,7 +24,6 @@
#include <types/global.h>
#include <proto/action.h>
#include <proto/applet.h>
#include <proto/backend.h>
#include <haproxy/compression.h>

View File

@ -1,5 +1,5 @@
/*
* include/types/action.h
* include/haproxy/action-t.h
* This file contains actions definitions.
*
* Copyright (C) 2000-2010 Willy Tarreau - w@1wt.eu
@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _TYPES_ACTION_H
#define _TYPES_ACTION_H
#ifndef _HAPROXY_ACTION_T_H
#define _HAPROXY_ACTION_T_H
#include <haproxy/regex-t.h>
@ -173,4 +173,4 @@ struct action_kw_list {
struct action_kw kw[VAR_ARRAY];
};
#endif /* _TYPES_ACTION_H */
#endif /* _HAPROXY_ACTION_T_H */

View File

@ -1,5 +1,5 @@
/*
* include/proto/action.h
* include/haproxy/action.h
* This file contains actions prototypes.
*
* Copyright (C) 2000-2010 Willy Tarreau - w@1wt.eu
@ -19,10 +19,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _PROTO_ACTION_H
#define _PROTO_ACTION_H
#ifndef _HAPROXY_ACTION_H
#define _HAPROXY_ACTION_H
#include <types/action.h>
#include <stdio.h>
#include <haproxy/action-t.h>
#include <haproxy/list.h>
int act_resolution_cb(struct dns_requester *requester, struct dns_nameserver *nameserver);
int act_resolution_error_cb(struct dns_requester *requester, int error_code);
@ -88,4 +90,4 @@ int check_trk_action(struct act_rule *rule, struct proxy *px, char **err);
*/
int check_capture(struct act_rule *rule, struct proxy *px, char **err);
#endif /* _PROTO_ACTION_H */
#endif /* _HAPROXY_ACTION_H */

View File

@ -22,7 +22,7 @@
#ifndef _PROTO_CHECKS_H
#define _PROTO_CHECKS_H
#include <types/action.h>
#include <haproxy/action-t.h>
#include <types/mailers.h>
#include <types/checks.h>

View File

@ -22,7 +22,7 @@
#ifndef _PROTO_DNS_H
#define _PROTO_DNS_H
#include <types/action.h>
#include <haproxy/action-t.h>
#include <types/dns.h>
extern struct list dns_resolvers;

View File

@ -24,7 +24,7 @@
#include <haproxy/api.h>
#include <haproxy/list.h>
#include <types/action.h>
#include <haproxy/action-t.h>
#include <types/proxy.h>
extern struct action_kw_list http_req_keywords;

View File

@ -23,7 +23,6 @@
#define _PROTO_PROTO_TCP_H
#include <haproxy/api.h>
#include <types/action.h>
#include <types/task.h>
#include <proto/stick_table.h>

View File

@ -22,9 +22,9 @@
#ifndef _PROTO_STREAM_H
#define _PROTO_STREAM_H
#include <haproxy/action-t.h>
#include <haproxy/api.h>
#include <haproxy/pool.h>
#include <types/action.h>
#include <types/stream.h>
#include <haproxy/fd.h>
#include <haproxy/freq_ctr.h>

View File

@ -22,8 +22,8 @@
#ifndef _PROTO_TCP_RULES_H
#define _PROTO_TCP_RULES_H
#include <haproxy/action-t.h>
#include <haproxy/api.h>
#include <types/action.h>
#include <types/task.h>
#include <proto/stick_table.h>

View File

@ -10,12 +10,12 @@
*
*/
#include <haproxy/action.h>
#include <haproxy/api.h>
#include <haproxy/pool.h>
#include <haproxy/list.h>
#include <haproxy/tools.h>
#include <proto/action.h>
#include <proto/log.h>
#include <proto/obj_type.h>
#include <proto/proxy.h>

View File

@ -10,13 +10,13 @@
* 2 of the License, or (at your option) any later version.
*/
#include <haproxy/action-t.h>
#include <haproxy/api.h>
#include <haproxy/http_htx.h>
#include <haproxy/shctx.h>
#include <import/eb32tree.h>
#include <import/sha1.h>
#include <types/action.h>
#include <types/cli.h>
#include <types/filters.h>
#include <types/proxy.h>

View File

@ -33,6 +33,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <haproxy/action-t.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <haproxy/chunk.h>
@ -54,7 +55,6 @@
#include <types/stats.h>
#include <proto/acl.h>
#include <proto/action.h>
#include <proto/auth.h>
#include <proto/backend.h>
#include <proto/channel.h>

View File

@ -30,6 +30,7 @@
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <haproxy/action.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <haproxy/chunk.h>
@ -48,7 +49,6 @@
#include <types/dns.h>
#include <types/stats.h>
#include <proto/action.h>
#include <proto/arg.h>
#include <proto/backend.h>
#include <proto/checks.h>

View File

@ -19,6 +19,7 @@
#include <sys/types.h>
#include <haproxy/action.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <haproxy/errors.h>
@ -26,14 +27,12 @@
#include <haproxy/ticks.h>
#include <haproxy/net_helper.h>
#include <types/action.h>
#include <types/applet.h>
#include <types/cli.h>
#include <types/global.h>
#include <types/dns.h>
#include <types/stats.h>
#include <proto/action.h>
#include <proto/channel.h>
#include <proto/cli.h>
#include <proto/checks.h>

View File

@ -12,6 +12,7 @@
#include <ctype.h>
#include <errno.h>
#include <haproxy/action-t.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <haproxy/thread.h>
@ -23,7 +24,6 @@
#include <types/spoe.h>
#include <proto/acl.h>
#include <proto/action.h>
#include <proto/arg.h>
#include <proto/backend.h>
#include <proto/filters.h>

View File

@ -16,6 +16,7 @@
#include <string.h>
#include <time.h>
#include <haproxy/action.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <haproxy/chunk.h>
@ -32,7 +33,6 @@
#include <proto/acl.h>
#include <proto/arg.h>
#include <proto/action.h>
#include <proto/http_rules.h>
#include <proto/log.h>
#include <proto/http_ana.h>

View File

@ -10,6 +10,7 @@
*
*/
#include <haproxy/action-t.h>
#include <haproxy/api.h>
#include <haproxy/base64.h>
#include <haproxy/http.h>
@ -22,7 +23,6 @@
#include <types/capture.h>
#include <proto/acl.h>
#include <proto/action.h>
#include <proto/channel.h>
#include <proto/checks.h>
#include <proto/connection.h>

View File

@ -16,6 +16,7 @@
#include <string.h>
#include <time.h>
#include <haproxy/action.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <haproxy/chunk.h>
@ -28,7 +29,6 @@
#include <types/global.h>
#include <proto/acl.h>
#include <proto/action.h>
#include <proto/arg.h>
#include <proto/http_rules.h>
#include <proto/http_ana.h>

View File

@ -30,13 +30,13 @@
#include <netinet/tcp.h>
#include <netinet/in.h>
#include <haproxy/action-t.h>
#include <haproxy/api.h>
#include <haproxy/errors.h>
#include <haproxy/list.h>
#include <haproxy/tools.h>
#include <haproxy/namespace.h>
#include <types/action.h>
#include <types/connection.h>
#include <types/global.h>
#include <types/stream.h>

View File

@ -14,6 +14,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <haproxy/action.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <haproxy/dict.h>
@ -32,7 +33,6 @@
#include <types/stats.h>
#include <proto/acl.h>
#include <proto/action.h>
#include <haproxy/activity.h>
#include <proto/arg.h>
#include <proto/backend.h>

View File

@ -9,6 +9,7 @@
* 2 of the License, or (at your option) any later version.
*
*/
#include <haproxy/action.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <haproxy/list.h>
@ -22,7 +23,6 @@
#include <types/global.h>
#include <proto/acl.h>
#include <proto/action.h>
#include <proto/channel.h>
#include <proto/connection.h>
#include <proto/log.h>