]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: add macros to declare pools based on a struct type
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Aug 2025 14:33:27 +0000 (16:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Aug 2025 17:20:36 +0000 (19:20 +0200)
commitf0d0922aa18cec60dcc267bf1b5423f7b94e5865
tree73883c9e6fadf1d2aa6da400f8aae1fd2cf80218
parent6ea0e3e2f813e14ed4bb8f4a74024ecbcb05b32b
MINOR: pools: add macros to declare pools based on a struct type

DECLARE_TYPED_POOL() and friends take a name, a type and an extra
size (to be added to the size of the element), and will use this
to create the pool. This has the benefit of letting the compiler
automatically adapt sizeof() and alignof() based on the type
declaration.
include/haproxy/pool.h