From 167e1eb7c7860d516210a81ea46f1b78ad338d1d Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 4 Jun 2020 11:01:17 +0200 Subject: [PATCH] REORG: include: move counters.h to haproxy/counters-t.h Since these are only type definitions, let's move them to counters-t.h and reserve counters.h for when functions will be needed. --- include/{types/counters.h => haproxy/counters-t.h} | 8 ++++---- include/types/proxy.h | 2 +- include/types/server.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename include/{types/counters.h => haproxy/counters-t.h} (98%) diff --git a/include/types/counters.h b/include/haproxy/counters-t.h similarity index 98% rename from include/types/counters.h rename to include/haproxy/counters-t.h index 5b56c7dbb..dbd60724e 100644 --- a/include/types/counters.h +++ b/include/haproxy/counters-t.h @@ -1,5 +1,5 @@ /* - * include/types/counters.h + * include/haproxy/counters-t.h * This file contains structure declarations for statistics counters. * * Copyright 2008-2009 Krzysztof Piotr Oledzki @@ -20,8 +20,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef _TYPES_COUNTERS_H -#define _TYPES_COUNTERS_H +#ifndef _HAPROXY_COUNTERS_T_H +#define _HAPROXY_COUNTERS_T_H /* counters used by listeners and frontends */ struct fe_counters { @@ -115,7 +115,7 @@ struct be_counters { } p; /* protocol-specific stats */ }; -#endif /* _TYPES_COUNTERS_H */ +#endif /* _HAPROXY_COUNTERS_T_H */ /* * Local variables: diff --git a/include/types/proxy.h b/include/types/proxy.h index 2019de805..75f02975b 100644 --- a/include/types/proxy.h +++ b/include/types/proxy.h @@ -29,6 +29,7 @@ #include #include +#include #include #include #include @@ -39,7 +40,6 @@ #include #include #include -#include #include #include #include diff --git a/include/types/server.h b/include/types/server.h index 9cf5ade64..c0f6c38ae 100644 --- a/include/types/server.h +++ b/include/types/server.h @@ -25,6 +25,7 @@ #include #include +#include #include #include #include @@ -34,7 +35,6 @@ #include #include -#include #include #include #include