]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: include: move action.h to haproxy/action{,-t}.h
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jun 2020 08:15:32 +0000 (10:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:57 +0000 (10:18 +0200)
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.

21 files changed:
contrib/prometheus-exporter/service-prometheus.c
include/haproxy/action-t.h [moved from include/types/action.h with 97% similarity]
include/haproxy/action.h [moved from include/proto/action.h with 93% similarity]
include/proto/checks.h
include/proto/dns.h
include/proto/http_rules.h
include/proto/proto_tcp.h
include/proto/stream.h
include/proto/tcp_rules.h
src/action.c
src/cache.c
src/cfgparse.c
src/checks.c
src/dns.c
src/flt_spoe.c
src/http_act.c
src/http_ana.c
src/http_rules.c
src/proto_tcp.c
src/stream.c
src/tcp_rules.c

index 7c58bab6ce2b4341b8ee41b6acc6480557b4e179..c64385cdf65971ed647a40cdd065f31f364307c0 100644 (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>
similarity index 97%
rename from include/types/action.h
rename to include/haproxy/action-t.h
index c70fcf733118d6ac66a88c8c6e49f968cceca51b..54dd63b9e02ba5b7bcf3487a14a39c95bb109d9b 100644 (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 */
similarity index 93%
rename from include/proto/action.h
rename to include/haproxy/action.h
index eb660dd5da478061f7ba4d8c0453d2fa340950ab..c7ce92dc5f37e1c0ca66bc979593f2fba8f88074 100644 (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
  * 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 */
index f0ff52aa23c4288c7f1e72eeddff98c3570da6e8..04c9eeb63836ff7f88a4071d401142ee4be7f389 100644 (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>
 
index 7ce5a098e3c45673cb87536ccf68f5a39a9f2c4d..35eb2bf31ac6765dd21aa22dccbdeb80dec71fbe 100644 (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;
index 84f302dce02c7f6f06e68d3f9985884ddedf4233..fd2db010896683305d548834184062dd4662fbd4 100644 (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;
index 347305bf32c8d3023f4b2c79ba47959a1aa11548..29e6c1c2dcf8a8a413ac082cb6f28b61adc472bd 100644 (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>
 
index ac555451ede0fe56ee29470f74736728ac877b11..bc93a2bc41ccc9fe9f43a898a492de44c2e8b12b 100644 (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>
index b9a4c932a46c1adcf882dafb1512a8f9efb0d150..2059c0927662ec538daa5376a50cbd292b4bf4c8 100644 (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>
 
index 17716b5ea040e9d47c66459765874d13989928de..63c1188d7eda3a2e941bd15aadd85d869e60003c 100644 (file)
  *
  */
 
+#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>
index 0fa1c642fb4a85b98dd8a11b4db1ba2db11761c1..ad34a9d0b2716778f79defde4605cc9c1211f3bb 100644 (file)
  * 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>
index 2f9ed1b84fecd15c80874e14c226dd0f6a93a546..0505611537322eebbd0542836a52c461e2de4694 100644 (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>
index b5c76fbf4d77dab914dbc7f4c1dc7e226364dafe..279e8af01b65cd4c26c819ea48a2cca949eb5e7f 100644 (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>
index 79a7a0d4cd453a4bd0aad230502374e033ba1f5e..d251674c97856d96f0b87ed190607c4b2082fcf1 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
@@ -19,6 +19,7 @@
 
 #include <sys/types.h>
 
+#include <haproxy/action.h>
 #include <haproxy/api.h>
 #include <common/cfgparse.h>
 #include <haproxy/errors.h>
 #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>
index 52771ef138c1e16c05e1ee9e5c92969ee848fcf2..4bb259e6e6bef679009feeef985bf4112f6f825f 100644 (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>
index cba3c7965d2f3279279b9d092c2094cfc17f4387..8bb98775b90d64c8c4a460cae09f30a14a13ed8f 100644 (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>
index d26b9a444a3d9f2e30e6a92b9f434bd93fabb30f..3ad3bcca9e6be8eb323eabfbe46c71f47d1c56b0 100644 (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>
index 77ac2cbe3ebfb5cafe54101ab8a1093a7a7192f0..ba19e878e558153e48f68b4e8fc947fa124f5958 100644 (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>
index 9b109f4259b25d92f0f5894ae6dfe1e564a4767a..c21d1c91a7e2c0b8ca14decbae37d556db0e94bb 100644 (file)
 #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>
index e2e78802bb1cb123dbc35aeed71bfad2a91171f2..530be55c4758a3a7fdd28341c7eba0da6412b7a9 100644 (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>
index 012bfd3108b94c7a9fb994bd3647113637df1367..d6c1eb3fb6d335ab22b7064a54c537cf6f237d10 100644 (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>