summaryrefslogtreecommitdiffstats
path: root/include/chardev/char.h
diff options
context:
space:
mode:
authorMarc-André Lureau2017-01-26 19:48:37 +0100
committerMarc-André Lureau2017-06-02 09:33:53 +0200
commitc90e9392efa6579e714fe9aa2993e7d89e3792dc (patch)
tree4867ac1b0a32b61bfd65145e641e9a30af8e9dfb /include/chardev/char.h
parentbe-hci: use backend functions (diff)
downloadqemu-c90e9392efa6579e714fe9aa2993e7d89e3792dc.tar.gz
qemu-c90e9392efa6579e714fe9aa2993e7d89e3792dc.tar.xz
qemu-c90e9392efa6579e714fe9aa2993e7d89e3792dc.zip
char: generalize qemu_chr_write_all()
qemu_chr_fe_write() is similar to qemu_chr_write_all(): the later write all with a chardev backend. Make qemu_chr_write() and qemu_chr_fe_write_buffer() take an 'all' argument. If false, handle 'partial' write the way qemu_chr_fe_write() use to, and call qemu_chr_write() from qemu_chr_fe_write(). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'include/chardev/char.h')
0 files changed, 0 insertions, 0 deletions