From: Willy Tarreau Date: Wed, 27 May 2020 14:10:29 +0000 (+0200) Subject: REORG: include: move base64.h, errors.h and hash.h from common to to haproxy/ X-Git-Tag: v2.2-dev9~133 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=8d36697deea8e4c87202a94505b238174334ea40;p=thirdparty%2Fhaproxy.git REORG: include: move base64.h, errors.h and hash.h from common to to haproxy/ These ones do not depend on any other file. One used to include haproxy/api.h but that was solely for stddef.h. --- diff --git a/include/common/base64.h b/include/haproxy/base64.h similarity index 75% rename from include/common/base64.h rename to include/haproxy/base64.h index e53a3528be..d7dec58cde 100644 --- a/include/common/base64.h +++ b/include/haproxy/base64.h @@ -1,8 +1,8 @@ /* - * include/common/base64.h + * include/haproxy/base64.h * Ascii to Base64 conversion as described in RFC1421. * - * Copyright 2006-2010 Willy Tarreau + * Copyright 2006-2020 Willy Tarreau * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -11,10 +11,10 @@ * */ -#ifndef _COMMON_BASE64_H -#define _COMMON_BASE64_H +#ifndef _HAPROXY_BASE64_H +#define _HAPROXY_BASE64_H -#include +#include int a2base64(char *in, int ilen, char *out, int olen); int base64dec(const char *in, size_t ilen, char *out, size_t olen); @@ -23,4 +23,4 @@ int b64tos30(const char *in); extern const char base64tab[]; -#endif /* _COMMON_BASE64_H */ +#endif /* _HAPROXY_BASE64_H */ diff --git a/include/common/errors.h b/include/haproxy/errors.h similarity index 94% rename from include/common/errors.h rename to include/haproxy/errors.h index e6b658b1f6..6277701dec 100644 --- a/include/common/errors.h +++ b/include/haproxy/errors.h @@ -1,8 +1,8 @@ /* - * include/common/errors.h + * include/haproxy/errors.h * Global error macros and constants * - * Copyright (C) 2000-2010 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 @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef _COMMON_ERRORS_H -#define _COMMON_ERRORS_H +#ifndef _HAPROXY_ERRORS_H +#define _HAPROXY_ERRORS_H /* These flags may be used in various functions which are called from within * loops (eg: to start all listeners from all proxies). They provide enough @@ -56,7 +56,7 @@ enum { PE_ARG_NOT_FOUND, /* argument references something not found */ }; -#endif /* _COMMON_ERRORS_H */ +#endif /* _HAPROXY_ERRORS_H */ /* * Local variables: diff --git a/include/common/hash.h b/include/haproxy/hash.h similarity index 86% rename from include/common/hash.h rename to include/haproxy/hash.h index c17f8c9ff4..cb506c7cf0 100644 --- a/include/common/hash.h +++ b/include/haproxy/hash.h @@ -1,8 +1,8 @@ /* - * include/common/hash.h + * include/haproxy/hash.h * Macros for different hashing function. * - * Copyright (C) 2000-2011 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 @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef _COMMON_HASH_H_ -#define _COMMON_HASH_H_ +#ifndef _HAPROXY_HASH_H_ +#define _HAPROXY_HASH_H_ #include @@ -30,4 +30,4 @@ unsigned int hash_sdbm(const void *input, int len); unsigned int hash_crc32(const void *input, int len); uint32_t hash_crc32c(const void *input, int len); -#endif /* _COMMON_HASH_H_ */ +#endif /* _HAPROXY_HASH_H_ */ diff --git a/include/proto/stick_table.h b/include/proto/stick_table.h index 2243d3d1bd..986c7755f7 100644 --- a/include/proto/stick_table.h +++ b/include/proto/stick_table.h @@ -23,7 +23,7 @@ #ifndef _PROTO_STICK_TABLE_H #define _PROTO_STICK_TABLE_H -#include +#include #include #include #include diff --git a/src/51d.c b/src/51d.c index 13997e348b..ceef3559a2 100644 --- a/src/51d.c +++ b/src/51d.c @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/auth.c b/src/auth.c index 2d9804433d..6570ecafe2 100644 --- a/src/auth.c +++ b/src/auth.c @@ -27,7 +27,7 @@ #include #include -#include +#include #include #include diff --git a/src/backend.c b/src/backend.c index f259b39175..ece412c7c5 100644 --- a/src/backend.c +++ b/src/backend.c @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/base64.c b/src/base64.c index 90e4fb85d7..53e4d65b29 100644 --- a/src/base64.c +++ b/src/base64.c @@ -15,7 +15,7 @@ #include #include -#include +#include #define B64BASE '#' /* arbitrary chosen base value */ #define B64CMIN '+' diff --git a/src/cache.c b/src/cache.c index fac9b7d76c..c4177f74fe 100644 --- a/src/cache.c +++ b/src/cache.c @@ -34,7 +34,7 @@ #include -#include +#include #include #include diff --git a/src/cfgparse-ssl.c b/src/cfgparse-ssl.c index e6372fb103..3d1f676d11 100644 --- a/src/cfgparse-ssl.c +++ b/src/cfgparse-ssl.c @@ -32,7 +32,7 @@ #include #include -#include +#include #include #include diff --git a/src/cfgparse.c b/src/cfgparse.c index 5fd288068c..da76aa99e5 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/cli.c b/src/cli.c index 9212651d97..13fc2049c4 100644 --- a/src/cli.c +++ b/src/cli.c @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/connection.c b/src/connection.c index fd6a27498e..a30a2dd973 100644 --- a/src/connection.c +++ b/src/connection.c @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/da.c b/src/da.c index 73e59db390..c783fb1522 100644 --- a/src/da.c +++ b/src/da.c @@ -2,7 +2,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/dns.c b/src/dns.c index 92c6dda63c..b11622c263 100644 --- a/src/dns.c +++ b/src/dns.c @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/fcgi-app.c b/src/fcgi-app.c index d0992283ae..5b116803d5 100644 --- a/src/fcgi-app.c +++ b/src/fcgi-app.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/filters.c b/src/filters.c index 9b6bd5b3e6..3d7bb45620 100644 --- a/src/filters.c +++ b/src/filters.c @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/haproxy.c b/src/haproxy.c index 2351aed335..d2bb0de64d 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -81,10 +81,10 @@ #include #include -#include +#include #include #include -#include +#include #include #include #include diff --git a/src/hash.c b/src/hash.c index 8984ef36d0..a20b90cc04 100644 --- a/src/hash.c +++ b/src/hash.c @@ -14,7 +14,7 @@ */ -#include +#include unsigned int hash_wt6(const void *input, int len) diff --git a/src/http_ana.c b/src/http_ana.c index bd2db1fe74..4635c38e1d 100644 --- a/src/http_ana.c +++ b/src/http_ana.c @@ -11,7 +11,7 @@ */ #include -#include +#include #include #include #include diff --git a/src/http_fetch.c b/src/http_fetch.c index 0ea509c41e..5d7ae8828e 100644 --- a/src/http_fetch.c +++ b/src/http_fetch.c @@ -17,7 +17,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/listener.c b/src/listener.c index ab9f84b567..a1b6ae455d 100644 --- a/src/listener.c +++ b/src/listener.c @@ -20,7 +20,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/mworker-prog.c b/src/mworker-prog.c index f445c7fa69..4951063d51 100644 --- a/src/mworker-prog.c +++ b/src/mworker-prog.c @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include diff --git a/src/namespace.c b/src/namespace.c index a6d208082d..6165994ec9 100644 --- a/src/namespace.c +++ b/src/namespace.c @@ -12,8 +12,8 @@ #include #include -#include -#include +#include +#include #include #include #include diff --git a/src/proto_sockpair.c b/src/proto_sockpair.c index 8a0773c5b4..ff642f26d4 100644 --- a/src/proto_sockpair.c +++ b/src/proto_sockpair.c @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/proto_tcp.c b/src/proto_tcp.c index f1e65c5f6c..063f4b3638 100644 --- a/src/proto_tcp.c +++ b/src/proto_tcp.c @@ -32,7 +32,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/proto_uxst.c b/src/proto_uxst.c index e9b85dd88b..5fc976a63a 100644 --- a/src/proto_uxst.c +++ b/src/proto_uxst.c @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/protocol.c b/src/protocol.c index 6c4341e34c..3a11bddf6c 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -14,7 +14,7 @@ #include #include -#include +#include #include #include diff --git a/src/proxy.c b/src/proxy.c index a62df4d0fd..b5bc5ae9da 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -19,7 +19,7 @@ #include #include -#include +#include #include #include diff --git a/src/sample.c b/src/sample.c index e4841fd9ce..0715e14689 100644 --- a/src/sample.c +++ b/src/sample.c @@ -20,12 +20,12 @@ #include #include -#include +#include #include #include #include #include -#include +#include #include #include diff --git a/src/server.c b/src/server.c index 9d6e7a6a09..791747c312 100644 --- a/src/server.c +++ b/src/server.c @@ -18,7 +18,7 @@ #include #include -#include +#include #include #include diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index 4a5f1c1150..9011df9bcb 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -21,8 +21,8 @@ #include #include -#include -#include +#include +#include #include #include diff --git a/src/ssl_crtlist.c b/src/ssl_crtlist.c index 38cffc8053..1d77362f47 100644 --- a/src/ssl_crtlist.c +++ b/src/ssl_crtlist.c @@ -15,7 +15,7 @@ #include #include -#include +#include #include #include diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 79e81d7ba8..39e4f22d2d 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -47,12 +47,12 @@ #include #include #include -#include +#include #include #include #include #include -#include +#include #include #include diff --git a/src/stats.c b/src/stats.c index 8cb1840eaa..08879256cb 100644 --- a/src/stats.c +++ b/src/stats.c @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/uri_auth.c b/src/uri_auth.c index 06266f338b..a2c1426159 100644 --- a/src/uri_auth.c +++ b/src/uri_auth.c @@ -14,7 +14,7 @@ #include #include -#include +#include #include #include diff --git a/src/wurfl.c b/src/wurfl.c index f5de52af55..8869461f49 100644 --- a/src/wurfl.c +++ b/src/wurfl.c @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include #include