mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-18 11:40:50 +00:00
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 <haproxy/api-t.h> so that standard integer types and compiler macros are known, <common/initcall.h> to ease dynamic registration of init functions, and <common/tools.h> 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.
This commit is contained in:
parent
ca1765713b
commit
7ab7031e34
37
include/haproxy/api.h
Normal file
37
include/haproxy/api.h
Normal file
@ -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 <common/initcall.h>
|
||||
#include <common/tools.h>
|
||||
#include <haproxy/api-t.h>
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user