]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: include: create new file haproxy/api.h
authorWilly Tarreau <w@1wt.eu>
Wed, 27 May 2020 10:00:13 +0000 (12:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 07:31:11 +0000 (09:31 +0200)
commit7ab7031e34541bdebc6f4f88af12d0febfcceab4
tree2177a5cebb45d0784cf204cf6d71485271d7a646
parentca1765713bddd49c90bdf6b61f6252979443554d
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.
include/haproxy/api.h [new file with mode: 0644]