]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: buffers: add new pointer wrappers and get rid of almost all buffer_wrap_add...
authorWilly Tarreau <w@1wt.eu>
Fri, 4 May 2012 19:35:27 +0000 (21:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 10:28:14 +0000 (12:28 +0200)
commitcc5cfcbccef2d07a1f688e60e03d2e8e8eca52c2
tree44426b18d58a70f6249a048db6a2bd95f347fcbd
parentec1bc82a1d435923d18dae8a005b876900c91be9
MEDIUM: buffers: add new pointer wrappers and get rid of almost all buffer_wrap_add calls

buffer_wrap_add was convenient for the migration but is not handy at all.
Let's have new wrappers that report input begin/end and output begin/end
instead.

It looks like we'll also need a b_adv(ofs) to advance a buffer's pointer.
include/proto/buffers.h
src/buffers.c
src/proto_http.c
src/stream_sock.c