mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-24 23:31:40 +02:00
Clean the API used by decode_qcs() and transcoder internal functions. Parsing functions now returns a ssize_t which represents the number of consumed bytes or a negative error code. The total consumed bytes is returned via decode_qcs(). The API is now unified and cleaner. The MUX can thus simply use the return value of decode_qcs() instead of substracting the data bytes in the buffer before and after the call. Transcoders functions are not anymore obliged to remove consumed bytes from the buffer which was not obvious.