mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
MINOR: channel: Add co_set_data().
Add a new function that lets one set the channel's output amount.
This commit is contained in:
parent
3ee8344b7b
commit
d4251a7e98
@ -198,6 +198,12 @@ static inline void c_realign_if_empty(struct channel *chn)
|
||||
b_realign_if_empty(chn->buf);
|
||||
}
|
||||
|
||||
/* Sets the amount of output for the channel */
|
||||
static inline void co_set_data(struct channel *c, size_t output)
|
||||
{
|
||||
c->buf->o = output;
|
||||
}
|
||||
|
||||
|
||||
/* co_head() : returns a pointer to the beginning of output data in the buffer.
|
||||
* The "__" variants don't support wrapping, "ofs" are relative to
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user