• E
    snapshot: simplify acting on just children · 67555b24
    Eric Blake 提交于
    Similar to the last patch in isolating the filtering from the
    client actions, so that clients don't have to reinvent the
    filtering.
    
    * src/conf/domain_conf.h (virDomainSnapshotForEachChild): New
    prototype.
    * src/libvirt_private.syms (domain_conf.h): Export it.
    * src/conf/domain_conf.c (virDomainSnapshotActOnChild)
    (virDomainSnapshotForEachChild): New functions.
    (virDomainSnapshotCountChildren): Delete.
    (virDomainSnapshotHasChildren): Simplify.
    * src/qemu/qemu_driver.c (qemuDomainSnapshotReparentChildren)
    (qemuDomainSnapshotDelete): Likewise.
    67555b24
libvirt_private.syms 25.4 KB