diff options
author | Alon Levy <alevy@redhat.com> | 2013-04-05 11:30:23 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-04-16 11:52:09 +0200 |
commit | b010cec86b9a4a0b63162cd27e37c2d99e90ed66 (patch) | |
tree | 107d19633a0368fc7ce1f10d48a4ec2ec4d7ad4b /libcacard | |
parent | ae893e5e818878caf433d716d37be9df297403fe (diff) |
spice-qemu-char: Remove intermediate buffer
virtio-serial's buffer is valid when it calls us, and we don't
access it otherwise: vmc_read is only called in response to wakeup,
or else we set datalen=0 and throttle. Then vmc_read is called back,
we return 0 (not accessing the buffer) and set the timer to unthrottle.
Also make datalen int and not ssize_t (to fit spice_chr_write signature).
HdG: Update to apply to spice-qemu-char with new gio-channel based
flowcontrol support.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'libcacard')
0 files changed, 0 insertions, 0 deletions