]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: event_hdl: global sublist management clarification
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 16 Mar 2023 10:16:05 +0000 (11:16 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Apr 2023 06:58:17 +0000 (08:58 +0200)
commit3a81e997ac05398fc78e85a248d7e0d87b841d30
tree5b4317c2ffe6a2ac47304614c086d85d6ff8f5f3
parentd514ca45c6d8552ee73ea8ff4bce66db5a57da07
MINOR: event_hdl: global sublist management clarification

event_hdl_sub_list_init() and event_hdl_sub_list_destroy() don't expect
to be called with a NULL argument (to use global subscription list
implicitly), simply because the global subscription list init and
destroy is internally managed.

Adding BUG_ON() to detect such invalid usages, and updating some comments
to prevent confusion around these functions.

If 68e692da0 ("MINOR: event_hdl: add event handler base api")
is being backported, then this commit should be backported with it.
include/haproxy/event_hdl.h
src/event_hdl.c