]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: check: move tcpchecks away from check.c
authorWilly Tarreau <w@1wt.eu>
Fri, 5 Jun 2020 10:25:38 +0000 (12:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:58 +0000 (10:18 +0200)
commit51cd5956ee9c377dc4f2665eefadda9638d3b0d7
tree05e3f9a82d1d37ffd37c016033ef6f0d8d2f5ddf
parentcee013e4e018493003efc4fac3efcd4b22fa59ba
REORG: check: move tcpchecks away from check.c

Checks.c remains one of the largest file of the project and it contains
too many things. The tcpchecks code represents half of this file, and
both parts are relatively isolated, so let's move it away into its own
file. We now have tcpcheck.c, tcpcheck{,-t}.h.

Doing so required to export quite a number of functions because check.c
has almost everything made static, which really doesn't help to split!
13 files changed:
Makefile
include/haproxy/check-t.h
include/haproxy/check.h
include/haproxy/connection.h
include/haproxy/proxy-t.h
include/haproxy/tcpcheck-t.h [new file with mode: 0644]
include/haproxy/tcpcheck.h [new file with mode: 0644]
src/cfgparse-listen.c
src/check.c
src/mailers.c
src/server.c
src/tcpcheck.c [new file with mode: 0644]
src/vars.c