Re: [Qemu-devel] [PATCH v3 01/25] chardev: Simplify IOWatchPoll::fd_can_read as a GSourceFunc

2019-02-20 Thread Marc-André Lureau
On Wed, Feb 20, 2019 at 2:03 AM Philippe Mathieu-Daudé wrote: > > IOWatchPoll::fd_can_read() really is a GSourceFunc type, it simply > returns a boolean value. > Update the backends to return a boolean, whether there is data to > read from the source or not. > > Suggested-by: Paolo Bonzini >

[Qemu-devel] [PATCH v3 01/25] chardev: Simplify IOWatchPoll::fd_can_read as a GSourceFunc

2019-02-19 Thread Philippe Mathieu-Daudé
IOWatchPoll::fd_can_read() really is a GSourceFunc type, it simply returns a boolean value. Update the backends to return a boolean, whether there is data to read from the source or not. Suggested-by: Paolo Bonzini Signed-off-by: Philippe Mathieu-Daudé --- chardev/char-fd.c | 4 ++--