]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: filters: rework RESUME_FILTER_* macros as inline functions
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 5 Feb 2026 19:36:23 +0000 (20:36 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 13 Feb 2026 11:24:00 +0000 (12:24 +0100)
commite88b219331ab3d8b62b1d244460747fe35abc72d
tree1798a725b98e09becd21d53f58f1623604eca5c0
parentf47b800ac321365e43effbf7e93efb4e2f337291
MINOR: filters: rework RESUME_FILTER_* macros as inline functions

There is no need to have those helpers defined as macro, and since it
is not mandatory, code maintenance is much easier using functions,
thus let's switch to function definitions.

Also, we change the way we iterate over the list so that the calling
function now has a pseudo API to get and iterate over filter pointers
while keeping control on how they implement the iterating logic.

One benefit of this is that we will also be able to switch between lists
depending on the channel type, which is a prerequisite for upcoming
rework that split the filter list over request and response channels
(commit will follow)

No change of behavior is expected.
src/filters.c