]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: Refactor qemu to utilize virDomainMoment more
authorEric Blake <eblake@redhat.com>
Wed, 27 Mar 2019 07:12:37 +0000 (02:12 -0500)
committerEric Blake <eblake@redhat.com>
Wed, 27 Mar 2019 13:16:10 +0000 (08:16 -0500)
commita487890d371b8cc3662c1717dfe07eea3f1ef1c0
treeff92acafd20085fe96556f3bb5c8fc673daf0e51
parent6b90a8473875eb34bae27856857cf6561e079089
snapshot: Refactor qemu to utilize virDomainMoment more

Use the common base class virDomainMoment for iterator callbacks
related to snapshots from the qemu code, so that when checkpoint
operations are introduced, they can share the same callbacks.

Simplify the code for qemuDomainSnapshotCurrent by better utilizing
virDomainMoment helpers.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_driver.c