]> git.proxmox.com Git - mirror_qemu.git/commit
util/fifo8: Introduce fifo8_peek_buf()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 9 Nov 2023 19:28:06 +0000 (20:28 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 10 Jan 2024 06:58:50 +0000 (06:58 +0000)
commit995d8348eb3d8ddf24882ed384a5c50eaf3aeae9
tree1d34bcb4c80369fde0a8b9ad176ce4799dc8320a
parentcd04033dbeb0bbdd613780ff4b412fc3d3c768d6
util/fifo8: Introduce fifo8_peek_buf()

To be able to peek at FIFO content without popping it,
introduce the fifo8_peek_buf() method by factoring
common content from fifo8_pop_buf().

Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231109192814.95977-3-philmd@linaro.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
include/qemu/fifo8.h
util/fifo8.c