]> git.proxmox.com Git - qemu.git/commit
block: make all steps in qmp_transaction() as callback
authorWenchao Xia <xiawenc@linux.vnet.ibm.com>
Wed, 8 May 2013 10:25:16 +0000 (18:25 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 24 May 2013 14:17:55 +0000 (16:17 +0200)
commitba0c86a34e29b31ef360feda74c94200a5403fdd
tree8e48f9b67b9cb627550165f6ca12668836a5e04d
parent96b86bf72de0c6eda2799201517ef32910beb340
block: make all steps in qmp_transaction() as callback

Make it easier to add other operations to qmp_transaction() by using
callbacks, with external snapshots serving as an example implementation
of the callbacks.

Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c