From: Willy Tarreau Date: Wed, 27 May 2020 10:00:13 +0000 (+0200) Subject: REORG: include: create new file haproxy/api.h X-Git-Tag: v2.2-dev9~142 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ab7031e34541bdebc6f4f88af12d0febfcceab4;p=thirdparty%2Fhaproxy.git REORG: include: create new file haproxy/api.h This file includes everything that must be guaranteed to be available to any buildable file in the project (including the contrib/ subdirs). For now it includes so that standard integer types and compiler macros are known, to ease dynamic registration of init functions, and for a few MIN/MAX macros. version.h should probably also be added, though at the moment it doesn't bring a great value. All files which currently include the ones above should now switch to haproxy/api.h or haproxy/api-t.h instead. This should also reduce build time by having a single guard for several files at once. --- diff --git a/include/haproxy/api.h b/include/haproxy/api.h new file mode 100644 index 0000000000..305e860730 --- /dev/null +++ b/include/haproxy/api.h @@ -0,0 +1,37 @@ +/* + * include/haproxy/api.h + * + * Include wrapper that assembles all includes required by every haproxy file. + * Please do not add direct definitions into this file. + * + * Copyright (C) 2020 Willy Tarreau - w@1wt.eu + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#ifndef _HAPROXY_BASE_H +#define _HAPROXY_BASE_H + +#include +#include +#include + +#endif