From bf0731491b2595fa138200417be6ab6a14195c6f Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 3 Jun 2020 12:04:01 +0200 Subject: [PATCH] REORG: include: move common/h2.h to haproxy/h2.h No change was performed, the file is only included from C files and currently doesn't need to be split into types+functions. --- include/{common => haproxy}/h2.h | 11 +++++------ src/h2.c | 2 +- src/hpack-dec.c | 2 +- src/mux_h1.c | 2 +- src/mux_h2.c | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) rename include/{common => haproxy}/h2.h (99%) diff --git a/include/common/h2.h b/include/haproxy/h2.h similarity index 99% rename from include/common/h2.h rename to include/haproxy/h2.h index 751989d7f..aa0edec93 100644 --- a/include/common/h2.h +++ b/include/haproxy/h2.h @@ -1,5 +1,5 @@ /* - * include/common/h2.h + * include/haproxy/h2.h * This file contains types and macros used for the HTTP/2 protocol * * Copyright (C) 2000-2017 Willy Tarreau - w@1wt.eu @@ -26,14 +26,13 @@ * OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef _COMMON_H2_H -#define _COMMON_H2_H +#ifndef _HAPROXY_H2_H +#define _HAPROXY_H2_H +#include #include #include #include -#include - /* indexes of most important pseudo headers can be simplified to an almost * linear array by dividing the index by 2 for all values from 1 to 9, and @@ -325,7 +324,7 @@ static inline const char *h2_phdr_to_str(int phdr) } } -#endif /* _COMMON_H2_H */ +#endif /* _HAPROXY_H2_H */ /* * Local variables: diff --git a/src/h2.c b/src/h2.c index 14eeabc2e..7e5811346 100644 --- a/src/h2.c +++ b/src/h2.c @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/hpack-dec.c b/src/hpack-dec.c index 8f8e02bcc..e318ac363 100644 --- a/src/hpack-dec.c +++ b/src/hpack-dec.c @@ -35,7 +35,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/mux_h1.c b/src/mux_h1.c index 4afaa29c5..ef22ccee1 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/mux_h2.c b/src/mux_h2.c index adc789ad2..6ff418438 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include #include