]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: include: move h1_htx.h to haproxy/h1_htx.h
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jun 2020 07:00:02 +0000 (09:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:57 +0000 (10:18 +0200)
This one didn't have a type file. A few missing includes were
added (htx, types).

include/haproxy/h1_htx.h [moved from include/proto/h1_htx.h with 90% similarity]
src/h1_htx.c
src/http_fetch.c
src/mux_fcgi.c
src/mux_h1.c

similarity index 90%
rename from include/proto/h1_htx.h
rename to include/haproxy/h1_htx.h
index aa2c1f9a21b0341a4ab5037ba366f82ddd81cbdf..c73a274bacb726a5b5e8c2b21afd1807810d15a9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/types/h1_htx.h
+ * include/haproxy/h1_htx.h
  * This file defines function prototypes for H1 manipulation using the
  * internal representation.
  *
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _PROTO_H1_HTX_H
-#define _PROTO_H1_HTX_H
+#ifndef _HAPROXY_H1_HTX_H
+#define _HAPROXY_H1_HTX_H
 
-#include <haproxy/buf.h>
 #include <import/ist.h>
+#include <haproxy/api-t.h>
+#include <haproxy/buf-t.h>
 #include <haproxy/h1.h>
+#include <haproxy/htx-t.h>
 
 int h1_parse_msg_hdrs(struct h1m *h1m, union h1_sl *h1sl, struct htx *dsthtx,
                      struct buffer *srcbuf, size_t ofs, size_t max);
@@ -41,7 +43,7 @@ int h1_format_htx_stline(const struct htx_sl *sl, struct buffer *chk);
 int h1_format_htx_hdr(const struct ist n, const struct ist v, struct buffer *chk);
 int h1_format_htx_data(const struct ist data, struct buffer *chk, int chunked);
 
-#endif /* _PROTO_H1_HTX_H */
+#endif /* _HAPROXY_H1_HTX_H */
 
 /*
  * Local variables:
index 1f0dddbd818972d0fd1090fd16ec1b38252944da..b27ddca81b7d28574a3294048949fd317fd93749 100644 (file)
 #include <haproxy/api.h>
 #include <common/cfgparse.h>
 #include <haproxy/h1.h>
+#include <haproxy/h1_htx.h>
 #include <haproxy/http.h>
 #include <haproxy/htx.h>
 
-#include <proto/h1_htx.h>
-
 /* Estimate the size of the HTX headers after the parsing, including the EOH. */
 static size_t h1_eval_htx_hdrs_size(const struct http_hdr *hdrs)
 {
index 5d03dc7c5fbf43ca042fdbedf3ae97ea25ba6d64..f21d77c0aa20c8fd66decf14817c6fd319bdcc59 100644 (file)
@@ -20,6 +20,7 @@
 #include <haproxy/base64.h>
 #include <haproxy/chunk.h>
 #include <haproxy/h1.h>
+#include <haproxy/h1_htx.h>
 #include <haproxy/http.h>
 #include <haproxy/htx.h>
 #include <haproxy/pool.h>
@@ -33,7 +34,6 @@
 #include <proto/channel.h>
 #include <proto/connection.h>
 #include <proto/http_fetch.h>
-#include <proto/h1_htx.h>
 #include <proto/http_htx.h>
 #include <proto/log.h>
 #include <proto/obj_type.h>
index 0e1d59ce6024854c1ef071189b3c5dbf5435f8ba..6473e725c9ec838f39f66d4b8dd510b607f22900 100644 (file)
@@ -14,6 +14,7 @@
 #include <common/cfgparse.h>
 #include <haproxy/fcgi.h>
 #include <haproxy/h1.h>
+#include <haproxy/h1_htx.h>
 #include <haproxy/htx.h>
 #include <import/ist.h>
 #include <haproxy/list.h>
@@ -25,7 +26,6 @@
 
 #include <proto/connection.h>
 #include <proto/fcgi-app.h>
-#include <proto/h1_htx.h>
 #include <proto/http_htx.h>
 #include <proto/log.h>
 #include <proto/session.h>
index f2ba3384477236e5b7fb3a13cdd0062f9b2f4ca5..e0d856fc942bdcb7a8200af29270e25490fa5528 100644 (file)
@@ -13,6 +13,7 @@
 #include <haproxy/istbuf.h>
 #include <common/cfgparse.h>
 #include <haproxy/h1.h>
+#include <haproxy/h1_htx.h>
 #include <haproxy/h2.h>
 #include <haproxy/htx.h>
 
@@ -23,7 +24,6 @@
 #include <types/session.h>
 
 #include <proto/connection.h>
-#include <proto/h1_htx.h>
 #include <proto/http_htx.h>
 #include <proto/log.h>
 #include <proto/session.h>