]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: Access snapshot def directly when needed
authorEric Blake <eblake@redhat.com>
Mon, 18 Mar 2019 21:13:50 +0000 (16:13 -0500)
committerEric Blake <eblake@redhat.com>
Fri, 22 Mar 2019 06:18:33 +0000 (01:18 -0500)
commit55c2ab3e2b3b6db858f904eb6c77d35996dedc9b
tree87382095c57161d69abb674bf52fb9b6bb9625da
parent02c4e24db71213c0eec81461f4a3093fdfda9b7e
snapshot: Access snapshot def directly when needed

An upcoming patch will rework virDomainSnapshotObjList to be generic
for both snapshots and checkpoints; reduce the churn by adding a new
accessor virDomainSnapshotObjGetDef() which returns the
snapshot-specific definition even when the list is rewritten to
operate only on a base class, then using it at sites that that are
specific to snapshots.  Use VIR_STEAL_PTR when appropriate in the
affected lines.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/conf/snapshot_conf.c
src/conf/virdomainsnapshotobjlist.c
src/conf/virdomainsnapshotobjlist.h
src/qemu/qemu_domain.c