On Wed, Mar 27, 2019 at 05:07:14AM -0500, Eric Blake wrote:
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(a)redhat.com>
---
src/qemu/qemu_domain.h | 20 +++++++++-------
src/qemu/qemu_domain.c | 33 +++++++++++++-------------
src/qemu/qemu_driver.c | 53 +++++++++++++++++++++++-------------------
3 files changed, 57 insertions(+), 49 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange(a)redhat.com>
Regards,
Daniel
--
|:
https://berrange.com -o-
https://www.flickr.com/photos/dberrange :|
|:
https://libvirt.org -o-
https://fstop138.berrange.com :|
|:
https://entangle-photo.org -o-
https://www.instagram.com/dberrange :|