From: Willy Tarreau Date: Thu, 4 Jun 2020 07:00:02 +0000 (+0200) Subject: REORG: include: move h1_htx.h to haproxy/h1_htx.h X-Git-Tag: v2.2-dev9~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6fe884c743aee70daf5f26da822d2da44ca5f5d;p=thirdparty%2Fhaproxy.git REORG: include: move h1_htx.h to haproxy/h1_htx.h This one didn't have a type file. A few missing includes were added (htx, types). --- diff --git a/include/proto/h1_htx.h b/include/haproxy/h1_htx.h similarity index 90% rename from include/proto/h1_htx.h rename to include/haproxy/h1_htx.h index aa2c1f9a21..c73a274bac 100644 --- a/include/proto/h1_htx.h +++ b/include/haproxy/h1_htx.h @@ -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. * @@ -20,12 +20,14 @@ * 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 #include +#include +#include #include +#include 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: diff --git a/src/h1_htx.c b/src/h1_htx.c index 1f0dddbd81..b27ddca81b 100644 --- a/src/h1_htx.c +++ b/src/h1_htx.c @@ -13,11 +13,10 @@ #include #include #include +#include #include #include -#include - /* 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) { diff --git a/src/http_fetch.c b/src/http_fetch.c index 5d03dc7c5f..f21d77c0aa 100644 --- a/src/http_fetch.c +++ b/src/http_fetch.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -33,7 +34,6 @@ #include #include #include -#include #include #include #include diff --git a/src/mux_fcgi.c b/src/mux_fcgi.c index 0e1d59ce60..6473e725c9 100644 --- a/src/mux_fcgi.c +++ b/src/mux_fcgi.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -25,7 +26,6 @@ #include #include -#include #include #include #include diff --git a/src/mux_h1.c b/src/mux_h1.c index f2ba338447..e0d856fc94 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -23,7 +24,6 @@ #include #include -#include #include #include #include