]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: include: move http_htx.h to haproxy/http_htx{,-t}.h
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jun 2020 07:08:41 +0000 (09:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:57 +0000 (10:18 +0200)
A few includes had to be added, namely list-t.h in the type file and
types/proxy.h in the proto file. actions.h was including http-htx.h
but didn't need it so it was dropped.

26 files changed:
contrib/prometheus-exporter/service-prometheus.c
include/haproxy/http_htx-t.h [moved from include/types/http_htx.h with 95% similarity]
include/haproxy/http_htx.h [moved from include/proto/http_htx.h with 95% similarity]
include/types/action.h
include/types/http_ana.h
src/51d.c
src/backend.c
src/cache.c
src/cfgparse-listen.c
src/checks.c
src/da.c
src/fcgi-app.c
src/filters.c
src/flt_http_comp.c
src/flt_trace.c
src/hlua.c
src/http_act.c
src/http_ana.c
src/http_fetch.c
src/http_htx.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/stats.c
src/stream_interface.c
src/wurfl.c

index b79fab587d6274b2c12002dee8c8f35a42ef7410..7c58bab6ce2b4341b8ee41b6acc6480557b4e179 100644 (file)
@@ -16,6 +16,7 @@
 #include <haproxy/api.h>
 #include <common/cfgparse.h>
 #include <haproxy/http.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/htx.h>
 #include <haproxy/pool.h>
 #include <haproxy/list.h>
@@ -28,7 +29,6 @@
 #include <haproxy/compression.h>
 #include <proto/frontend.h>
 #include <proto/listener.h>
-#include <proto/http_htx.h>
 #include <haproxy/pipe.h>
 #include <proto/proxy.h>
 #include <proto/sample.h>
similarity index 95%
rename from include/types/http_htx.h
rename to include/haproxy/http_htx-t.h
index b3af77e3c3b792d10cd145871a1583fc4ae4cdc5..dd3b2381ff1a45cb7dc733472d02b273ccbcfa34 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/types/http_htx.h
+ * include/haproxy/http_htx-t.h
  * This file defines everything related to HTTP manipulation using the internal
  * representation.
  *
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _TYPES_HTTP_HTX_H
-#define _TYPES_HTTP_HTX_H
+#ifndef _HAPROXY_HTTP_HTX_T_H
+#define _HAPROXY_HTTP_HTX_T_H
 
 #include <import/ebistree.h>
 
 #include <haproxy/buf-t.h>
+#include <import/ist.h>
 #include <haproxy/http-t.h>
 #include <haproxy/htx-t.h>
-#include <import/ist.h>
+#include <haproxy/list-t.h>
 
 /* Context used to find/remove an HTTP header. */
 struct http_hdr_ctx {
@@ -92,4 +93,4 @@ struct http_errors {
        struct list list;                     /* http-errors list */
 };
 
-#endif /* _TYPES_HTTP_HTX_H */
+#endif /* _HAPROXY_HTTP_HTX_T_H */
similarity index 95%
rename from include/proto/http_htx.h
rename to include/haproxy/http_htx.h
index d480be868067a2295071dd269c701deec38f3cac..775037be08fe0cc16197366265736bcd80e0de9e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/types/http_htx.h
+ * include/haproxy/http_htx-t.h
  * This file defines function prototypes for HTTP manipulation using the
  * internal representation.
  *
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _PROTO_HTTP_HTX_H
-#define _PROTO_HTTP_HTX_H
+#ifndef _HAPROXY_HTTP_HTX_H
+#define _HAPROXY_HTTP_HTX_H
 
-#include <haproxy/buf.h>
 #include <import/ist.h>
+#include <haproxy/buf-t.h>
+#include <haproxy/http_htx-t.h>
 #include <haproxy/regex-t.h>
-
-#include <types/http_htx.h>
+#include <types/proxy.h>
 
 extern struct buffer http_err_chunks[HTTP_ERR_SIZE];
 extern struct http_reply http_err_replies[HTTP_ERR_SIZE];
@@ -73,4 +73,4 @@ struct buffer *http_parse_errorloc(int errloc, int status, const char *url, char
 int proxy_dup_default_conf_errors(struct proxy *curpx, struct proxy *defpx, char **errmsg);
 void proxy_release_conf_errors(struct proxy *px);
 
-#endif /* _PROTO_HTTP_HTX_H */
+#endif /* _HAPROXY_HTTP_HTX_H */
index a102b2b927f09eef5a63240ba00972cf469d9971..c70fcf733118d6ac66a88c8c6e49f968cceca51b 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <types/applet.h>
 #include <types/stick_table.h>
-#include <types/http_htx.h>
 
 enum act_from {
        ACT_F_TCP_REQ_CON, /* tcp-request connection */
index 4a1a9cdcefa049672f9ff590d85ded3dc9510666..4dd8e3336030e8862167dee5eaf6ef18b163db82 100644 (file)
@@ -26,7 +26,7 @@
 #include <haproxy/http-t.h>
 
 #include <types/channel.h>
-#include <types/http_htx.h>
+#include <haproxy/http_htx-t.h>
 
 /* These are the flags that are found in txn->flags */
 
index ab628fe642b5fd94815270cfcb79d99a123f5258..d6033f34a5f772ff1accde6d0fecbe6610bce5a9 100644 (file)
--- a/src/51d.c
+++ b/src/51d.c
@@ -5,11 +5,11 @@
 #include <haproxy/chunk.h>
 #include <haproxy/buf-t.h>
 #include <haproxy/errors.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/thread.h>
 #include <types/global.h>
 #include <proto/arg.h>
 #include <proto/http_fetch.h>
-#include <proto/http_htx.h>
 #include <proto/log.h>
 #include <proto/http_ana.h>
 #include <proto/sample.h>
index a78aad8aa37ffece3b334da7d5ed73bc2f7430f2..22f8603c8e260daa7a0d68ca47eba7049fbab0cd 100644 (file)
@@ -22,6 +22,7 @@
 #include <haproxy/api.h>
 #include <haproxy/hash.h>
 #include <haproxy/http.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/htx.h>
 #include <haproxy/ticks.h>
 #include <haproxy/time.h>
@@ -35,7 +36,6 @@
 #include <proto/channel.h>
 #include <proto/checks.h>
 #include <proto/frontend.h>
-#include <proto/http_htx.h>
 #include <proto/lb_chash.h>
 #include <proto/lb_fas.h>
 #include <proto/lb_fwlc.h>
index 02083c05cea3ab44b04c5cdf41ce059d8f2d1652..0fa1c642fb4a85b98dd8a11b4db1ba2db11761c1 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <haproxy/api.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/shctx.h>
 #include <import/eb32tree.h>
 #include <import/sha1.h>
@@ -23,7 +24,6 @@
 #include <proto/channel.h>
 #include <proto/cli.h>
 #include <proto/proxy.h>
-#include <proto/http_htx.h>
 #include <proto/filters.h>
 #include <proto/http_rules.h>
 #include <proto/http_ana.h>
index c9c6b7523763a582769f87590306c034c45f047a..0fdf5dbc680b1a5ba11744b67446591bb4e6c1e7 100644 (file)
 
 #include <types/capture.h>
 #include <haproxy/compression-t.h>
+#include <haproxy/http_htx.h>
 #include <types/stats.h>
 
 #include <proto/acl.h>
 #include <proto/checks.h>
 #include <proto/connection.h>
-#include <proto/http_htx.h>
 #include <proto/http_rules.h>
 #include <proto/listener.h>
 #include <haproxy/protocol.h>
index 59c176031a61f9839bb7dded08dc680358001eb7..b5c76fbf4d77dab914dbc7f4c1dc7e226364dafe 100644 (file)
@@ -40,6 +40,7 @@
 #include <haproxy/time.h>
 #include <haproxy/thread.h>
 #include <haproxy/http.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/h1.h>
 #include <haproxy/htx.h>
 
@@ -53,7 +54,6 @@
 #include <proto/checks.h>
 #include <proto/stats.h>
 #include <haproxy/fd.h>
-#include <proto/http_htx.h>
 #include <proto/log.h>
 #include <proto/mux_pt.h>
 #include <proto/queue.h>
index 51f6e38234fbbd7e99c60ead1bfd7d590b9d03f6..a9bc696aa855b8fed45df2d3b94b0cffec3b477b 100644 (file)
--- a/src/da.c
+++ b/src/da.c
@@ -4,10 +4,10 @@
 #include <common/cfgparse.h>
 #include <haproxy/errors.h>
 #include <haproxy/http.h>
+#include <haproxy/http_htx.h>
 #include <types/global.h>
 #include <proto/arg.h>
 #include <proto/http_fetch.h>
-#include <proto/http_htx.h>
 #include <proto/log.h>
 #include <proto/http_ana.h>
 #include <proto/sample.h>
index d846c25dbdf859f6de05cb194eb36a6096d6b490..d9f6bdbe24bab035da0807ff649315dfa2052e2b 100644 (file)
@@ -14,6 +14,7 @@
 #include <haproxy/chunk.h>
 #include <common/cfgparse.h>
 #include <haproxy/errors.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/regex.h>
 #include <haproxy/tools.h>
 
@@ -23,7 +24,6 @@
 #include <proto/fcgi-app.h>
 #include <proto/filters.h>
 #include <proto/http_fetch.h>
-#include <proto/http_htx.h>
 #include <proto/log.h>
 #include <proto/proxy.h>
 #include <proto/sample.h>
index 592b30320b117ed6e61e75d46e566f70e88d74a2..965b54fa063e1d2ba2b63ac97b0572149ea2607a 100644 (file)
@@ -14,6 +14,7 @@
 #include <haproxy/buf-t.h>
 #include <common/cfgparse.h>
 #include <haproxy/errors.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/htx.h>
 #include <haproxy/namespace.h>
 #include <haproxy/tools.h>
@@ -24,7 +25,6 @@
 #include <haproxy/compression.h>
 #include <proto/filters.h>
 #include <proto/flt_http_comp.h>
-#include <proto/http_htx.h>
 #include <proto/http_ana.h>
 #include <proto/stream.h>
 #include <proto/stream_interface.h>
index 8d02fc759302e49ebe21d84d56d768c9e4910d9d..c081e2790df880262818efa17b364aee13a5334d 100644 (file)
@@ -14,6 +14,7 @@
 #include <haproxy/compression.h>
 #include <haproxy/dynbuf.h>
 #include <haproxy/http.h>
+#include <haproxy/http_htx.h>
 #include <common/cfgparse.h>
 #include <haproxy/htx.h>
 #include <haproxy/list.h>
@@ -24,7 +25,6 @@
 #include <types/sample.h>
 
 #include <proto/filters.h>
-#include <proto/http_htx.h>
 #include <proto/http_ana.h>
 #include <proto/sample.h>
 #include <proto/stream.h>
index 64dc564df074cae5bb8c9eca57596a6643063c61..362040c375ce8c31a25882a0fb7220b4b05f9f57 100644 (file)
@@ -13,6 +13,7 @@
 #include <ctype.h>
 
 #include <haproxy/api.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/htx.h>
 #include <haproxy/tools.h>
 #include <haproxy/time.h>
@@ -24,7 +25,6 @@
 #include <types/stream.h>
 
 #include <proto/filters.h>
-#include <proto/http_htx.h>
 #include <proto/log.h>
 #include <proto/http_ana.h>
 #include <proto/stream.h>
index 3de0bea1aa82bb3bdf461ae4541112f081ffc1ee..daf2a8f06fd572902f15f370fa5f4eb0676ce931 100644 (file)
@@ -25,6 +25,7 @@
 #include <import/ebpttree.h>
 
 #include <common/cfgparse.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/thread.h>
 #include <haproxy/regex.h>
 #include <haproxy/xref.h>
@@ -45,7 +46,6 @@
 #include <proto/hlua.h>
 #include <proto/hlua_fcn.h>
 #include <proto/http_fetch.h>
-#include <proto/http_htx.h>
 #include <proto/http_rules.h>
 #include <proto/map.h>
 #include <proto/obj_type.h>
index 165cae27dee3a2ce3b31da45aaa111c020e1ed32..cba3c7965d2f3279279b9d092c2094cfc17f4387 100644 (file)
@@ -20,6 +20,7 @@
 #include <common/cfgparse.h>
 #include <haproxy/chunk.h>
 #include <haproxy/http.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/pool.h>
 #include <haproxy/regex.h>
 #include <haproxy/tools.h>
@@ -33,7 +34,6 @@
 #include <proto/arg.h>
 #include <proto/action.h>
 #include <proto/http_rules.h>
-#include <proto/http_htx.h>
 #include <proto/log.h>
 #include <proto/http_ana.h>
 #include <proto/pattern.h>
index 3065e3837113865014130883e8c27a8041c627a7..d26b9a444a3d9f2e30e6a92b9f434bd93fabb30f 100644 (file)
@@ -13,6 +13,7 @@
 #include <haproxy/api.h>
 #include <haproxy/base64.h>
 #include <haproxy/http.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/htx.h>
 #include <haproxy/net_helper.h>
 #include <haproxy/regex.h>
@@ -26,7 +27,6 @@
 #include <proto/checks.h>
 #include <proto/connection.h>
 #include <proto/filters.h>
-#include <proto/http_htx.h>
 #include <proto/log.h>
 #include <proto/http_ana.h>
 #include <proto/proxy.h>
index f21d77c0aa20c8fd66decf14817c6fd319bdcc59..42ba8c2f7ee8a0ad5f0f12200be7406e3f847ec1 100644 (file)
@@ -22,6 +22,7 @@
 #include <haproxy/h1.h>
 #include <haproxy/h1_htx.h>
 #include <haproxy/http.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/htx.h>
 #include <haproxy/pool.h>
 #include <haproxy/tools.h>
@@ -34,7 +35,6 @@
 #include <proto/channel.h>
 #include <proto/connection.h>
 #include <proto/http_fetch.h>
-#include <proto/http_htx.h>
 #include <proto/log.h>
 #include <proto/obj_type.h>
 #include <proto/http_ana.h>
index f345b4b14ebe869cd9408007ee0dd28286434141..af4dd5cec032b7d63de0b1ec7282df990cd30d3a 100644 (file)
 #include <common/cfgparse.h>
 #include <haproxy/h1.h>
 #include <haproxy/http.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/htx.h>
 
 #include <proto/arg.h>
-#include <proto/http_htx.h>
 #include <proto/http_fetch.h>
 #include <proto/sample.h>
 
index 6473e725c9ec838f39f66d4b8dd510b607f22900..3c95b6475358b78b419fd94ddc7f4071db993a3f 100644 (file)
@@ -15,6 +15,7 @@
 #include <haproxy/fcgi.h>
 #include <haproxy/h1.h>
 #include <haproxy/h1_htx.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/htx.h>
 #include <import/ist.h>
 #include <haproxy/list.h>
@@ -26,7 +27,6 @@
 
 #include <proto/connection.h>
 #include <proto/fcgi-app.h>
-#include <proto/http_htx.h>
 #include <proto/log.h>
 #include <proto/session.h>
 #include <proto/ssl_sock.h>
index e0d856fc942bdcb7a8200af29270e25490fa5528..107794c3d9eff1f98d7c7dda886f4a49a986896f 100644 (file)
@@ -24,7 +24,7 @@
 #include <types/session.h>
 
 #include <proto/connection.h>
-#include <proto/http_htx.h>
+#include <haproxy/http_htx.h>
 #include <proto/log.h>
 #include <proto/session.h>
 #include <proto/stream.h>
index 6ff41843813191a1a9ee139645631dcd6958e2d8..02f6a5f9649c463b07a59f2df7668c6deec0c2f8 100644 (file)
 #include <haproxy/hpack-dec.h>
 #include <haproxy/hpack-enc.h>
 #include <haproxy/hpack-tbl.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/htx.h>
 #include <haproxy/net_helper.h>
 #include <proto/connection.h>
-#include <proto/http_htx.h>
 #include <proto/trace.h>
 #include <proto/session.h>
 #include <proto/stream.h>
index 21dd009c010127429214af76423cdc4b775ffbf8..2700ab50a9f9bc2143915c10b883b512fde388e8 100644 (file)
@@ -29,6 +29,7 @@
 #include <haproxy/compression.h>
 #include <haproxy/debug.h>
 #include <haproxy/http.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/htx.h>
 #include <haproxy/pool.h>
 #include <haproxy/list.h>
@@ -54,7 +55,6 @@
 #include <haproxy/fd.h>
 #include <haproxy/freq_ctr.h>
 #include <proto/frontend.h>
-#include <proto/http_htx.h>
 #include <proto/log.h>
 #include <proto/pattern.h>
 #include <haproxy/pipe.h>
index 157fa51fc4ab179226e0ef5b302e8788720a06ac..02d20a003e3b29f9130c58ad94f19de513523e5f 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <haproxy/api.h>
 #include <haproxy/dynbuf.h>
+#include <haproxy/http_htx.h>
 #include <haproxy/tools.h>
 #include <haproxy/ticks.h>
 #include <haproxy/time.h>
@@ -28,7 +29,6 @@
 #include <proto/applet.h>
 #include <proto/channel.h>
 #include <proto/connection.h>
-#include <proto/http_htx.h>
 #include <proto/mux_pt.h>
 #include <haproxy/pipe.h>
 #include <proto/proxy.h>
index 0bc10fa989ef1e18ea338bd133c56d3d1af7b01c..9f374fa65e271423871b553824a8e078f76f9a25 100644 (file)
@@ -6,12 +6,12 @@
 #include <common/cfgparse.h>
 #include <haproxy/chunk.h>
 #include <haproxy/errors.h>
+#include <haproxy/http_htx.h>
 #include <types/global.h>
 #include <proto/arg.h>
 #include <proto/log.h>
 #include <proto/http_ana.h>
 #include <proto/http_fetch.h>
-#include <proto/http_htx.h>
 #include <proto/sample.h>
 #include <import/ebsttree.h>
 #include <import/ebmbtree.h>