]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: include: move common/h1.h to haproxy/h1.h
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Jun 2020 17:33:08 +0000 (19:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:57 +0000 (10:18 +0200)
The file was moved as-is. There was a wrong dependency on dynbuf.h
instead of buf.h which was addressed. There was no benefit to
splitting this between types and functions.

include/haproxy/h1.h [moved from include/common/h1.h with 98% similarity]
include/proto/h1_htx.h
src/checks.c
src/h1.c
src/h1_htx.c
src/hlua.c
src/http_fetch.c
src/http_htx.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c

similarity index 98%
rename from include/common/h1.h
rename to include/haproxy/h1.h
index 879e041d07c546b63c98728a772a0b0bcc6d9614..6ac1f61fded0fedae56b237ff17c3246f0f641f6 100644 (file)
@@ -1,8 +1,8 @@
 /*
- * include/common/h1.h
+ * include/haproxy/h1.h
  * This file contains HTTP/1 protocol definitions.
  *
- * Copyright (C) 2000-2017 Willy Tarreau - w@1wt.eu
+ * Copyright (C) 2000-2020 Willy Tarreau - w@1wt.eu
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _COMMON_H1_H
-#define _COMMON_H1_H
+#ifndef _HAPROXY_H1_H
+#define _HAPROXY_H1_H
 
+#include <import/ist.h>
 #include <haproxy/api.h>
-#include <haproxy/dynbuf.h>
-#include <haproxy/intops.h>
+#include <haproxy/buf.h>
 #include <haproxy/http.h>
 #include <haproxy/http-hdr-t.h>
-#include <import/ist.h>
+#include <haproxy/intops.h>
 
 
 /* Possible states while parsing HTTP/1 messages (request|response) */
@@ -356,4 +356,4 @@ static inline struct h1m *h1m_init_res(struct h1m *h1m)
        return h1m;
 }
 
-#endif /* _COMMON_H1_H */
+#endif /* _HAPROXY_H1_H */
index 02b9bdca7beeb48ea064a5db330641ac645e5fbd..aa2c1f9a21b0341a4ab5037ba366f82ddd81cbdf 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <haproxy/buf.h>
 #include <import/ist.h>
-#include <common/h1.h>
+#include <haproxy/h1.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);
index b0d677621eb4bbfa4ea7aedd9d56b39cac622532..6f409e3aa0df7c09e797d83a4ae9596fa2f3ae56 100644 (file)
@@ -40,7 +40,7 @@
 #include <haproxy/time.h>
 #include <haproxy/thread.h>
 #include <haproxy/http.h>
-#include <common/h1.h>
+#include <haproxy/h1.h>
 #include <common/htx.h>
 
 #include <types/global.h>
index f143db9c3b8bef118dd61f25abdb461829963219..9ac575b7d699db5c8c53654029bf3cfd8bc9b86f 100644 (file)
--- a/src/h1.c
+++ b/src/h1.c
@@ -12,7 +12,7 @@
 
 #include <ctype.h>
 #include <haproxy/api.h>
-#include <common/h1.h>
+#include <haproxy/h1.h>
 #include <haproxy/http-hdr.h>
 
 #include <proto/channel.h>
index 83ebfb1a157fea283bab36175e986a56a9e8a328..69472a61299ba4132a0449d2fb1de440750280da 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <haproxy/api.h>
 #include <common/cfgparse.h>
-#include <common/h1.h>
+#include <haproxy/h1.h>
 #include <haproxy/http.h>
 #include <common/htx.h>
 
index 0a3362a30ecb7c9f72b3d141348910c0e1b4d005..d73abec4f9e599c8cbf9af941424632c4013afc6 100644 (file)
@@ -28,7 +28,7 @@
 #include <haproxy/thread.h>
 #include <haproxy/regex.h>
 #include <haproxy/xref.h>
-#include <common/h1.h>
+#include <haproxy/h1.h>
 #include <common/standard.h>
 
 #include <types/cli.h>
index 2d996428214771773f7fb5ca9042b62bf6e14a47..3f30797f55f5a28f0ae5a8ce63bf53b573910f54 100644 (file)
@@ -19,7 +19,7 @@
 #include <haproxy/api.h>
 #include <haproxy/base64.h>
 #include <haproxy/chunk.h>
-#include <common/h1.h>
+#include <haproxy/h1.h>
 #include <haproxy/http.h>
 #include <common/htx.h>
 #include <haproxy/pool.h>
index ede8a0ea214c379de63b1104164a3e73c2439042..d410f03a9d294da41939d10dfa8d312123d8226c 100644 (file)
@@ -19,7 +19,7 @@
 #include <types/global.h>
 
 #include <common/cfgparse.h>
-#include <common/h1.h>
+#include <haproxy/h1.h>
 #include <haproxy/http.h>
 #include <common/htx.h>
 
index 364e5cf477a6edfdc931ad135da045e8218aab65..f58609ec6359060539a58b686543e494ad03eaa6 100644 (file)
@@ -13,7 +13,7 @@
 #include <haproxy/api.h>
 #include <common/cfgparse.h>
 #include <common/fcgi.h>
-#include <common/h1.h>
+#include <haproxy/h1.h>
 #include <common/htx.h>
 #include <import/ist.h>
 #include <haproxy/list.h>
index 963ed16afb26d0701658e11cace9c7b6fd43e8f9..09bf87142a589d031e2bd96bd519e5e6aebb960c 100644 (file)
@@ -12,7 +12,7 @@
 #include <haproxy/api.h>
 #include <haproxy/istbuf.h>
 #include <common/cfgparse.h>
-#include <common/h1.h>
+#include <haproxy/h1.h>
 #include <common/h2.h>
 #include <common/htx.h>
 
index fb4997c8b8a37d53d6e2a31497c5506857477db5..d672f997b2a8cf000672a385a3540542ca03664f 100644 (file)
@@ -13,7 +13,7 @@
 #include <haproxy/api.h>
 #include <haproxy/istbuf.h>
 #include <common/cfgparse.h>
-#include <common/h1.h>
+#include <haproxy/h1.h>
 #include <common/h2.h>
 #include <common/hpack-dec.h>
 #include <common/hpack-enc.h>