]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
Add chardev API qemu_chr_fe_read_all
authorNikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Tue, 27 May 2014 12:03:48 +0000 (15:03 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 13:41:54 +0000 (16:41 +0300)
commit7b0bfdf52d694c9a3a96505aa42ce3f8d63acd35
treeba5112e9386ab9cc4372aa5daa6df386a3874e64
parent69e03ae64ba01c4846425fb13e494bce3eedfa6b
Add chardev API qemu_chr_fe_read_all

This function will attempt to read data from the chardev trying
to fill the buffer up to the given length.
Add tcp_chr_disconnect to reuse disconnection code where needed.

Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com>
Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/sysemu/char.h
qemu-char.c