MINOR: channel: Add functions to get info on buffers and deal with HTX streams

This patch adds HXT-aware versions of the functions c_data(), ci_data() and
c_empty(). channel_data() function returns the amount of data in the
channel, channel_input_data() returns the amount of input data and
channel_empty() returns true if the channel's buffer is empty. These
functions handles HTX buffers.

In addition, channel_data_limit() function, still HTX-aware, can be used to
get the maximum absolute amount of data that can be copied in a buffer,
independently on data already present in the buffer.

(cherry picked from commit 020231ea791367c04e5d27bb62af8aff5cedaeaa)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit fe8a00e537dc5e068f9b5c27414c329b8f2599d8)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 5e4a8025e47f83b7226e97d5b7bdbdfd022ea49f)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 44ea3995de954320c51cb95c517779a9b7521814)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed