]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: add API for filtering by leaves
authorEric Blake <eblake@redhat.com>
Fri, 30 Sep 2011 23:36:00 +0000 (17:36 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 12 Oct 2011 22:03:19 +0000 (16:03 -0600)
commit8b6d1a20685764b8bdb4b921ffcbaf982d3c07e6
treee45bf4dfaeaf4681506f46909b7c38b18dcde36c
parentc490b469ceaca8fae7be92b5dac300f92406d2f1
snapshot: add API for filtering by leaves

Counterpart to --roots.

* include/libvirt/libvirt.h.in (VIR_DOMAIN_SNAPSHOT_LIST_LEAVES):
New flag.
* src/libvirt.c (virDomainSnapshotNum, virDomainSnapshotListNames)
(virDomainSnapshotNumChildren)
(virDomainSnapshotListChildrenNames): Document it.
* tools/virsh.c (cmdSnapshotList): Expose it.
* tools/virsh.pod (snapshot-list): Document --leaves.
include/libvirt/libvirt.h.in
src/libvirt.c
tools/virsh.c
tools/virsh.pod