]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: check: move the e-mail alerting code to mailers.c
authorWilly Tarreau <w@1wt.eu>
Fri, 5 Jun 2020 09:40:38 +0000 (11:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:58 +0000 (10:18 +0200)
commitcee013e4e018493003efc4fac3efcd4b22fa59ba
treed58a8e103a0397409adba25b78f2ed2e8c8de527
parent4f6535d734e7606a4c96120ab97f25d71b2cf41b
REORG: check: move the e-mail alerting code to mailers.c

check.c is one of the largest file and contains too many things. The
e-mail alerting code is stored there while nothing is in mailers.c.
Let's move this code out. That's only 4% of the code but a good start.
In order to do so, a few tcp-check functions had to be exported.
include/haproxy/check.h
include/haproxy/mailers.h
src/cfgparse.c
src/check.c
src/mailers.c
src/server.c