]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: include: split global.h into haproxy/global{,-t}.h
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jun 2020 15:05:57 +0000 (17:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:58 +0000 (10:18 +0200)
commitf268ee8795dcf8d6513c32eaf7031690c1b18233
tree534dc33e5d0e124ffae264bae30999bc1123acd1
parenta17189250170c45b66f7b8f88de9350c9eccd273
REORG: include: split global.h into haproxy/global{,-t}.h

global.h was one of the messiest files, it has accumulated tons of
implicit dependencies and declares many globals that make almost all
other file include it. It managed to silence a dependency loop between
server.h and proxy.h by being well placed to pre-define the required
structs, forcing struct proxy and struct server to be forward-declared
in a significant number of files.

It was split in to, one which is the global struct definition and the
few macros and flags, and the rest containing the functions prototypes.

The UNIX_MAX_PATH definition was moved to compat.h.
84 files changed:
contrib/modsecurity/modsec_wrapper.c
contrib/prometheus-exporter/service-prometheus.c
include/haproxy/compat.h
include/haproxy/dns-t.h
include/haproxy/global-t.h [moved from include/types/global.h with 60% similarity]
include/haproxy/global.h [new file with mode: 0644]
include/haproxy/lb_chash.h
include/proto/channel.h
include/proto/cli.h
include/proto/proxy.h
include/proto/session.h
include/proto/task.h
include/types/checks.h
include/types/server.h
include/types/session.h
src/51d.c
src/acl.c
src/arg.c
src/auth.c
src/backend.c
src/buffer.c
src/cfgparse.c
src/checks.c
src/chunk.c
src/cli.c
src/compression.c
src/da.c
src/debug.c
src/dns.c
src/ev_epoll.c
src/ev_evports.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c
src/fcgi-app.c
src/fd.c
src/flt_spoe.c
src/flt_trace.c
src/frontend.c
src/h2.c
src/haproxy.c
src/hpack-dec.c
src/hpack-enc.c
src/hpack-tbl.c
src/http_acl.c
src/http_act.c
src/http_conv.c
src/http_fetch.c
src/http_htx.c
src/http_rules.c
src/lb_chash.c
src/lb_fas.c
src/lb_fwlc.c
src/lb_fwrr.c
src/lb_map.c
src/listener.c
src/log.c
src/map.c
src/mworker.c
src/namespace.c
src/pattern.c
src/peers.c
src/pipe.c
src/pool.c
src/proto_sockpair.c
src/proto_tcp.c
src/proto_udp.c
src/proto_uxst.c
src/proxy.c
src/raw_sock.c
src/regex.c
src/sample.c
src/server.c
src/session.c
src/shctx.c
src/ssl_sock.c
src/stats.c
src/stick_table.c
src/stream.c
src/tcp_rules.c
src/thread.c
src/tools.c
src/wdt.c
src/wurfl.c