• Michael Tokarev's avatar
    cleanup qemu_co_sendv(), qemu_co_recvv() and friends · 2fc8ae1d
    Michael Tokarev authored
    
    
    The same as for non-coroutine versions in previous
    patches: rename arguments to be more obvious, change
    type of arguments from int to size_t where appropriate,
    and use common code for send and receive paths (with
    one extra argument) since these are exactly the same.
    Use common iov_send_recv() directly.
    
    qemu_co_sendv(), qemu_co_recvv(), and qemu_co_recv()
    are now trivial #define's merely adding one extra arg.
    
    qemu_co_sendv() and qemu_co_recvv() callers are
    converted to different argument order and extra
    `iov_cnt' argument.
    Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
    2fc8ae1d
qemu-coroutine-io.c 2.42 KB