]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: filters: rework filter iteration for channel related callback functions
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 5 Feb 2026 20:02:03 +0000 (21:02 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 13 Feb 2026 11:24:07 +0000 (12:24 +0100)
commitbb6cfbe754e14d984e961530b5a12422efe7df60
tree3f97d0a01fd018edf45e93d6352003acae5ebd80
parente88b219331ab3d8b62b1d244460747fe35abc72d
MINOR: filters: rework filter iteration for channel related callback functions

Multiple channel related functions have the same construction: they use
list_for_each_entry() to work on a given filter from the stream+channel
combination. In future commits we will try to use filter list from
dedicated channel list instead of the stream one, thus in this patch we
need as a prerequisite to implement and use the flt_list_{start,next} API
to iterate over filter list, giving the API the responsibility to iterate
over the correct list depending on the context, while the calling function
remains free to use the iteration construction it needs. This way we will
be able to easily change the way we iterate over filter list without
duplicating the code for requests and responses.
include/haproxy/filters.h
src/filters.c