]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: include: move common/buffer.h to haproxy/dynbuf{,-t}.h
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Jun 2020 09:28:02 +0000 (11:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:57 +0000 (10:18 +0200)
commit2741c8c4aa16cabdfa7d46d41c6ed35a8d73752c
tree13daf4a34dcd0232d7965cbb1c4a52a5dd45c3e3
parenta04ded58dc4c0252c569329a177a33c39570cc85
REORG: include: move common/buffer.h to haproxy/dynbuf{,-t}.h

The pretty confusing "buffer.h" was in fact not the place to look for
the definition of "struct buffer" but the one responsible for dynamic
buffer allocation. As such it defines the struct buffer_wait and the
few functions to allocate a buffer or wait for one.

This patch moves it renaming it to dynbuf.h. The type definition was
moved to its own file since it's included in a number of other structs.

Doing this cleanup revealed that a significant number of files used to
rely on this one to inherit struct buffer through it but didn't need
anything from this file at all.
35 files changed:
contrib/prometheus-exporter/service-prometheus.c
include/common/h1.h
include/haproxy/dynbuf-t.h [new file with mode: 0644]
include/haproxy/dynbuf.h [moved from include/common/buffer.h with 90% similarity]
include/proto/channel.h
include/proto/session.h
include/proto/trace.h
include/types/applet.h
include/types/channel.h
include/types/compression.h
include/types/sink.h
include/types/spoe.h
include/types/ssl_sock.h
include/types/stream.h
include/types/trace.h
src/51d.c
src/backend.c
src/buffer.c
src/channel.c
src/checks.c
src/compression.c
src/filters.c
src/flt_http_comp.c
src/haproxy.c
src/mux_h1.c
src/mux_h2.c
src/raw_sock.c
src/session.c
src/ssl_sample.c
src/ssl_sock.c
src/ssl_utils.c
src/stream.c
src/stream_interface.c
src/trace.c
src/wurfl.c