mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
sockets: Use new QAPI cloning
Rather than rolling our own clone via an expensive conversion in and back out of QObject, use the new clone visitor. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1465490926-28625-15-git-send-email-eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
a15fcc3cf6
commit
37f9e0a2b6
6 changed files with 10 additions and 35 deletions
|
@ -159,7 +159,7 @@ typedef int (*QIOTaskWorker)(QIOTask *task,
|
|||
* QIOTask *task;
|
||||
* SocketAddress *addrCopy;
|
||||
*
|
||||
* qapi_copy_SocketAddress(&addrCopy, addr);
|
||||
* addrCopy = QAPI_CLONE(SocketAddress, addr);
|
||||
* task = qio_task_new(OBJECT(obj), func, opaque, notify);
|
||||
*
|
||||
* qio_task_run_in_thread(task, myobject_listen_worker,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue