REORG: include: move common/chunk.h to haproxy/chunk.h
No change was necessary, it was already properly split.
diff --git a/contrib/hpack/decode.c b/contrib/hpack/decode.c
index 8dbb6f1..bc38f92 100644
--- a/contrib/hpack/decode.c
+++ b/contrib/hpack/decode.c
@@ -18,7 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/hpack-dec.h>
#define MAX_RQ_SIZE 65536
diff --git a/contrib/mod_defender/defender.c b/contrib/mod_defender/defender.c
index f3b9055..fdf80d8 100644
--- a/contrib/mod_defender/defender.c
+++ b/contrib/mod_defender/defender.c
@@ -20,7 +20,7 @@
#include <haproxy/api.h>
#include <common/standard.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <haproxy/time.h>
#include <proto/spoe.h>
diff --git a/contrib/mod_defender/spoa.c b/contrib/mod_defender/spoa.c
index 530b42d..b4c990b 100644
--- a/contrib/mod_defender/spoa.c
+++ b/contrib/mod_defender/spoa.c
@@ -32,7 +32,7 @@
#include <event2/thread.h>
#include <haproxy/list.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <proto/spoe.h>
diff --git a/contrib/modsecurity/spoa.c b/contrib/modsecurity/spoa.c
index ded8a6f..b9d61ed 100644
--- a/contrib/modsecurity/spoa.c
+++ b/contrib/modsecurity/spoa.c
@@ -37,7 +37,7 @@
#include <event2/thread.h>
#include <haproxy/list.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <proto/spoe.h>
diff --git a/include/common/buffer.h b/include/common/buffer.h
index e9aae25..a42fc25 100644
--- a/include/common/buffer.h
+++ b/include/common/buffer.h
@@ -28,7 +28,7 @@
#include <haproxy/api.h>
#include <haproxy/buf.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <import/ist.h>
#include <haproxy/istbuf.h>
#include <haproxy/pool.h>
diff --git a/include/common/hpack-dec.h b/include/common/hpack-dec.h
index f538332..1926574 100644
--- a/include/common/hpack-dec.h
+++ b/include/common/hpack-dec.h
@@ -29,7 +29,7 @@
#define _COMMON_HPACK_DEC_H
#include <haproxy/api.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/hpack-tbl.h>
int hpack_decode_frame(struct hpack_dht *dht, const uint8_t *raw, uint32_t len,
diff --git a/include/common/htx.h b/include/common/htx.h
index e73b699..664aaca 100644
--- a/include/common/htx.h
+++ b/include/common/htx.h
@@ -26,7 +26,7 @@
#include <haproxy/api.h>
#include <haproxy/buf.h>
#include <import/ist.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/http.h>
#include <common/http-hdr.h>
diff --git a/include/common/standard.h b/include/common/standard.h
index 7a2ba2e..d2231d8 100644
--- a/include/common/standard.h
+++ b/include/common/standard.h
@@ -39,7 +39,7 @@
#include <arpa/inet.h>
#include <haproxy/api.h>
#include <haproxy/intops.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/namespace.h>
#include <import/eb32tree.h>
#include <import/eb32sctree.h>
diff --git a/include/common/chunk.h b/include/haproxy/chunk.h
similarity index 98%
rename from include/common/chunk.h
rename to include/haproxy/chunk.h
index 279b802..8bb9372 100644
--- a/include/common/chunk.h
+++ b/include/haproxy/chunk.h
@@ -1,5 +1,5 @@
/*
- * include/common/chunk.h
+ * include/haproxy/chunk.h
* Chunk management definitions, macros and inline functions.
*
* Copyright (C) 2000-2012 Willy Tarreau - w@1wt.eu
@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _TYPES_CHUNK_H
-#define _TYPES_CHUNK_H
+#ifndef _HAPROXY_CHUNK_H
+#define _HAPROXY_CHUNK_H
#include <stdlib.h>
#include <string.h>
@@ -298,7 +298,7 @@
return dst->area;
}
-#endif /* _TYPES_CHUNK_H */
+#endif /* _HAPROXY_CHUNK_H */
/*
* Local variables:
diff --git a/include/proto/channel.h b/include/proto/channel.h
index eaaa36b..a36b63a 100644
--- a/include/proto/channel.h
+++ b/include/proto/channel.h
@@ -28,7 +28,7 @@
#include <string.h>
#include <haproxy/api.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/htx.h>
#include <common/ticks.h>
#include <haproxy/time.h>
diff --git a/include/types/applet.h b/include/types/applet.h
index 1f16543..ac7f38d 100644
--- a/include/types/applet.h
+++ b/include/types/applet.h
@@ -29,7 +29,7 @@
#include <types/proxy.h>
#include <types/stream.h>
#include <common/buffer.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/xref.h>
struct appctx;
diff --git a/include/types/arg.h b/include/types/arg.h
index 366c09e..6cd739f 100644
--- a/include/types/arg.h
+++ b/include/types/arg.h
@@ -25,7 +25,7 @@
#include <sys/socket.h>
#include <netinet/in.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <haproxy/list-t.h>
#include <types/vars.h>
diff --git a/include/types/proxy.h b/include/types/proxy.h
index aeec0ed..4e095ef 100644
--- a/include/types/proxy.h
+++ b/include/types/proxy.h
@@ -28,7 +28,7 @@
#include <arpa/inet.h>
#include <haproxy/api-t.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/http.h>
#include <haproxy/list-t.h>
#include <common/regex.h>
diff --git a/src/51d.c b/src/51d.c
index 6d3e86f..c53d681 100644
--- a/src/51d.c
+++ b/src/51d.c
@@ -2,7 +2,7 @@
#include <haproxy/api.h>
#include <common/cfgparse.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/buffer.h>
#include <haproxy/errors.h>
#include <haproxy/thread.h>
diff --git a/src/arg.c b/src/arg.c
index adaff12..5adffe3 100644
--- a/src/arg.c
+++ b/src/arg.c
@@ -15,7 +15,7 @@
#include <arpa/inet.h>
#include <common/standard.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <types/global.h>
#include <proto/arg.h>
diff --git a/src/cfgparse.c b/src/cfgparse.c
index 373a321..205f4fb 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -35,7 +35,7 @@
#include <haproxy/api.h>
#include <common/cfgparse.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <haproxy/errors.h>
#include <haproxy/pool.h>
#include <common/standard.h>
diff --git a/src/checks.c b/src/checks.c
index 6744e2d..0a1d0e2 100644
--- a/src/checks.c
+++ b/src/checks.c
@@ -32,7 +32,7 @@
#include <haproxy/api.h>
#include <common/cfgparse.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <haproxy/list.h>
#include <common/standard.h>
#include <haproxy/time.h>
diff --git a/src/chunk.c b/src/chunk.c
index 2ec6a7d..917a4f9 100644
--- a/src/chunk.c
+++ b/src/chunk.c
@@ -16,7 +16,7 @@
#include <string.h>
#include <haproxy/api.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/standard.h>
#include <types/global.h>
diff --git a/src/fcgi-app.c b/src/fcgi-app.c
index 5b11680..f088900 100644
--- a/src/fcgi-app.c
+++ b/src/fcgi-app.c
@@ -11,7 +11,7 @@
*/
#include <haproxy/api.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/cfgparse.h>
#include <haproxy/errors.h>
#include <common/standard.h>
diff --git a/src/frontend.c b/src/frontend.c
index b111e6a..4a66c49 100644
--- a/src/frontend.c
+++ b/src/frontend.c
@@ -23,7 +23,7 @@
#include <netinet/tcp.h>
#include <haproxy/api.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/standard.h>
#include <haproxy/time.h>
diff --git a/src/haproxy.c b/src/haproxy.c
index 917b14f..40d31d7 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -83,7 +83,7 @@
#include <haproxy/base64.h>
#include <common/cfgparse.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <haproxy/errors.h>
#include <haproxy/pool.h>
#include <haproxy/list.h>
diff --git a/src/hpack-dec.c b/src/hpack-dec.c
index 50293d8..aa73f9b 100644
--- a/src/hpack-dec.c
+++ b/src/hpack-dec.c
@@ -34,7 +34,7 @@
#include <common/hpack-dec.h>
#include <common/hpack-huff.h>
#include <common/hpack-tbl.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/h2.h>
#include <import/ist.h>
diff --git a/src/http_acl.c b/src/http_acl.c
index c55c720..368a4b1 100644
--- a/src/http_acl.c
+++ b/src/http_acl.c
@@ -17,7 +17,7 @@
#include <time.h>
#include <haproxy/api.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/http.h>
#include <haproxy/pool.h>
#include <common/standard.h>
diff --git a/src/http_act.c b/src/http_act.c
index 8e394cc..c2e3857 100644
--- a/src/http_act.c
+++ b/src/http_act.c
@@ -18,7 +18,7 @@
#include <haproxy/api.h>
#include <common/cfgparse.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/http.h>
#include <haproxy/pool.h>
#include <common/standard.h>
diff --git a/src/http_conv.c b/src/http_conv.c
index b82883a..8937fa0 100644
--- a/src/http_conv.c
+++ b/src/http_conv.c
@@ -17,7 +17,7 @@
#include <time.h>
#include <haproxy/api.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/http.h>
#include <haproxy/pool.h>
#include <common/standard.h>
diff --git a/src/http_fetch.c b/src/http_fetch.c
index c253c8d..8fe22b8 100644
--- a/src/http_fetch.c
+++ b/src/http_fetch.c
@@ -18,7 +18,7 @@
#include <haproxy/api.h>
#include <haproxy/base64.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/h1.h>
#include <common/http.h>
#include <common/htx.h>
diff --git a/src/http_rules.c b/src/http_rules.c
index 01a820e..96508e9 100644
--- a/src/http_rules.c
+++ b/src/http_rules.c
@@ -18,7 +18,7 @@
#include <haproxy/api.h>
#include <common/cfgparse.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/http.h>
#include <haproxy/pool.h>
#include <common/standard.h>
diff --git a/src/htx.c b/src/htx.c
index 82c788b..d1679a2 100644
--- a/src/htx.c
+++ b/src/htx.c
@@ -10,7 +10,7 @@
*
*/
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/htx.h>
struct htx htx_empty = { .size = 0, .data = 0, .head = -1, .tail = -1, .first = -1 };
diff --git a/src/sample.c b/src/sample.c
index 0715e14..23cd3ab 100644
--- a/src/sample.c
+++ b/src/sample.c
@@ -19,7 +19,7 @@
#include <haproxy/api.h>
#include <types/global.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <haproxy/hash.h>
#include <common/http.h>
#include <common/net_helper.h>
diff --git a/src/ssl_sock.c b/src/ssl_sock.c
index f5e3405..fe194b7 100644
--- a/src/ssl_sock.c
+++ b/src/ssl_sock.c
@@ -45,7 +45,7 @@
#include <import/xxhash.h>
#include <common/buffer.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <haproxy/errors.h>
#include <haproxy/openssl-compat.h>
#include <common/standard.h>
diff --git a/src/standard.c b/src/standard.c
index fe174af..2b32429 100644
--- a/src/standard.c
+++ b/src/standard.c
@@ -37,7 +37,7 @@
#include <arpa/inet.h>
#include <haproxy/api.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/standard.h>
#include <types/global.h>
#include <proto/applet.h>
diff --git a/src/wurfl.c b/src/wurfl.c
index 8869461..65a5917 100644
--- a/src/wurfl.c
+++ b/src/wurfl.c
@@ -3,7 +3,7 @@
#include <haproxy/api.h>
#include <common/cfgparse.h>
-#include <common/chunk.h>
+#include <haproxy/chunk.h>
#include <common/buffer.h>
#include <haproxy/errors.h>
#include <types/global.h>