From cb8fb3d06281dc1c56bd8438f8d8a3b82ca95bcc Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Sat, 9 Jun 2012 09:55:36 -0600 Subject: list: provide python bindings for snapshots This adds support for the new virDomainListAllSnapshots (a domain function) and virDomainSnapshotListAllChildren (a snapshot function) to the libvirt-python bindings. The implementation is done manually as the generator does not support wrapping lists of C pointers into python objects. * python/libvirt-override.c (libvirt_virDomainListAllSnapshots) (libvirt_virDomainSnapshotListAllChildren): New functions. * python/libvirt-override-api.xml: Document them. * python/libvirt-override-virDomain.py (listAllSnapshots): New file. * python/libvirt-override-virDomainSnapshot.py (listAllChildren): Likewise. * python/Makefile.am (CLASSES_EXTRA): Ship them. --- libvirt-override-api.xml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'libvirt-override-api.xml') diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml index 2fd6dec..67ef36e 100644 --- a/libvirt-override-api.xml +++ b/libvirt-override-api.xml @@ -406,17 +406,29 @@ - collect the list of snapshots for the given domain + collect the list of snapshot names for the given domain + + returns the list of snapshots for the given domain + + + + - collect the list of child snapshots for the given snapshot + collect the list of child snapshot names for the given snapshot + + returns the list of child snapshots for the given snapshot + + + + revert the domain to the given snapshot -- cgit