list: provide python bindings for snapshotsv0.9.13v0.9.13-rc1v0.9.13-rc2
commitcb8fb3d06281dc1c56bd8438f8d8a3b82ca95bcc
authorEric Blake <eblake@redhat.com>
Sat, 9 Jun 2012 15:55:36 +0000 (9 09:55 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 19 Jun 2012 19:50:03 +0000 (19 13:50 -0600)
tree8b0a1edd073bdd92b7ad4295eff228c3f4a8c37f
parent7beedf6c6330c8ea5aa8e3d2d31c13e1cc7b780d
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.
Makefile.am
libvirt-override-api.xml
libvirt-override-virDomain.py [new file with mode: 0644]
libvirt-override-virDomainSnapshot.py [new file with mode: 0644]
libvirt-override.c