]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server/event_hdl: add SERVER_ADMIN event
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 21 Apr 2023 16:06:58 +0000 (18:06 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 May 2023 14:28:32 +0000 (16:28 +0200)
commita163d652540e7d7d2dc51cb614f72a3c67d13022
treeed470ad6c4d3c91928e892cc3e7e3b31f49d5aaa
parentc99f3adf10df63cf8bb92b63a0aaa076d3f976a6
MINOR: server/event_hdl: add SERVER_ADMIN event

Adding a new SERVER event in the event_hdl API.

SERVER_ADMIN is implemented as an advanced server event.
It is published each time the administrative state changes.
(when s->cur_admin changes)

SERVER_ADMIN data is an event_hdl_cb_data_server_admin struct that
provides additional info related to the admin state change, but can
be casted as a regular event_hdl_cb_data_server struct if additional
info is not needed.
include/haproxy/event_hdl-t.h
include/haproxy/server-t.h
src/event_hdl.c
src/server.c