]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: add two more filter sets to API
authorEric Blake <eblake@redhat.com>
Mon, 12 Nov 2012 17:29:14 +0000 (10:29 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 19 Nov 2012 15:43:00 +0000 (08:43 -0700)
commite9028f4b73b8ad59aa782416cb02c0a3dda79ed4
treebffa7e38b6d34fd9dc8d60283e9f2221c4e0e283
parent89204fca7f193c7cf48f941bf2917c1a0e71096c
snapshot: add two more filter sets to API

As we enable more modes of snapshot creation, it becomes more important
to be able to quickly filter based on snapshot properties.  This patch
introduces new filter flags; subsequent patches will introduce virsh
back-compat filtering, as well as actual libvirt filtering.

* include/libvirt/libvirt.h.in (virDomainSnapshotListFlags): Add
five new flags in two new groups.
* src/libvirt.c (virDomainSnapshotNum, virDomainSnapshotListNames)
(virDomainListAllSnapshots, virDomainSnapshotNumChildren)
(virDomainSnapshotListChildrenNames)
(virDomainSnapshotListAllChildren): Document them.
* src/conf/snapshot_conf.h (VIR_DOMAIN_SNAPSHOT_FILTERS_STATUS)
(VIR_DOMAIN_SNAPSHOT_FILTERS_LOCATION): Add new convenience filter
collection macros.
* tools/virsh-snapshot.c (cmdSnapshotList): Add 5 new flags.
* tools/virsh.pod (snapshot-list): Document them.
include/libvirt/libvirt.h.in
src/conf/snapshot_conf.h
src/libvirt.c
tools/virsh-snapshot.c
tools/virsh.pod