]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: clock/wdt: move wdt timer initialization to clock.c
authorWilly Tarreau <w@1wt.eu>
Fri, 8 Oct 2021 12:48:30 +0000 (14:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Oct 2021 15:22:26 +0000 (17:22 +0200)
commit6cb0c391e7654e44795e43f9a7bb92c1aee74f95
tree4a95797047644e85607ad118d1837091a2967814
parent44c58da52f741ebdddaf873561f5d7e827117600
REORG: clock/wdt: move wdt timer initialization to clock.c

The code that deals with timer creation for the WDT was moved to clock.c
and is called with the few relevant arguments. This removes the need for
awareness of clock_id from wdt.c and as such saves us from having to
share it outside. The timer_t is also known only from both ends but not
from the public API so that we don't have to create a fake timer_t
anymore on systems which do not support it (e.g. macos).
include/haproxy/clock.h
src/clock.c
src/wdt.c