]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: Make virDomainSnapshotObjList use MomentObjList
authorEric Blake <eblake@redhat.com>
Fri, 22 Mar 2019 05:46:57 +0000 (00:46 -0500)
committerEric Blake <eblake@redhat.com>
Fri, 22 Mar 2019 06:18:34 +0000 (01:18 -0500)
commitac0379043ac3a96856b4a1c83939adf12a85ee10
tree82f182eff30034dcd32c1f71ab6ffc9bff828db1
parentdc8d3dc6cdf85292630eb7c31ba8fb58b836fb02
snapshot: Make virDomainSnapshotObjList use MomentObjList

Now that the generic moment code does pretty much everything that both
snapshots and checkpoints will need, it's time to replace the
now-duplicate code in virdomainsnapshotobjlist.c with simpler calls
into the generic code. I considered using sub-classing (a
'virDomainMomentObjList parent;' member, but that requires making the
opaque type visible in headers; so for now, I stuck with a container
instead (a 'virDomainMomentObjListPtr base;' member).

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