]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: new virsh function factored from snapshot-list
authorEric Blake <eblake@redhat.com>
Fri, 15 Jun 2012 00:50:03 +0000 (18:50 -0600)
committerEric Blake <eblake@redhat.com>
Sat, 16 Jun 2012 01:49:05 +0000 (19:49 -0600)
commit76d397b0d31f303d333ebf8e5995f3cc4e442999
tree282664b92c192fd2d2c8cd08674deaec2560928b
parent350583c859deaaddc98d7319e1c2ad649e4d3e83
snapshot: new virsh function factored from snapshot-list

This patch is based on the fallback code out of cmdSnapshotList,
with tweaks to keep the snapshot objects around rather than just
their name, and to remove unwanted elements before returning.
It looks forward to a future patch when we add a way to list all
snapshot objects at once, and the next patch will simplify
cmdSnapshotList to take advantage of this factorization.

* tools/virsh.c (vshSnapshotList, vshSnapshotListFree): New functions.
tools/virsh.c