[MEDIUM] buffers: rework the functions to exchange between SI and buffers
authorWilly Tarreau <w@1wt.eu>
Wed, 8 Sep 2010 15:04:31 +0000 (17:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 8 Sep 2010 15:04:31 +0000 (17:04 +0200)
commit74b08c9ab792140a0423dc0e78ac15bb4ace812a
tree1e47a6ea24bf5ab378c9b141cb84f474ed8b5fe5
parentd8ccffe0f6c1517cf112032d1cf5fb62f43dbb61
[MEDIUM] buffers: rework the functions to exchange between SI and buffers

There was no consistency between all the functions used to exchange data
between a buffer and a stream interface. Also, the functions used to send
data to a buffer did not consider the possibility that the buffer was
shutdown for read.

Now the functions are called buffer_{put,get}_{char,block,chunk,string}.

The old buffer_feed* functions have been left available for existing code
but marked deprecated.
include/proto/buffers.h
src/buffers.c
src/dumpstats.c