io: change the QIOTask callback signature
commit60e705c51c66373f78e536e0462744a610c27cf6
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Aug 2016 14:20:58 +0000 (11 15:20 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 23 Jan 2017 15:32:18 +0000 (23 15:32 +0000)
treea92d50a052c105d1554b11ab4c89a90f15a54be0
parent1a447e4f0266d757687b38146795b95525d37d94
io: change the QIOTask callback signature

Currently the QIOTaskFunc signature takes an Object * for
the source, and an Error * for any error. We also need to
be able to provide a result pointer. Rather than continue
to add parameters to QIOTaskFunc, remove the existing
ones and simply pass the QIOTask object instead. This
has methods to access all the other data items required
in the callback impl.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
15 files changed:
include/io/task.h
io/channel-tls.c
io/channel-websock.c
io/task.c
io/trace-events
migration/socket.c
migration/tls.c
nbd/common.c
nbd/nbd-internal.h
qemu-char.c
tests/test-io-channel-socket.c
tests/test-io-channel-tls.c
tests/test-io-task.c
ui/vnc-auth-vencrypt.c
ui/vnc-ws.c