diff options
author | Eric Blake <eblake@redhat.com> | 2012-06-09 09:55:36 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2012-06-19 13:50:03 -0600 |
commit | cb8fb3d06281dc1c56bd8438f8d8a3b82ca95bcc (patch) | |
tree | 8b0a1edd073bdd92b7ad4295eff228c3f4a8c37f /libvirt-override-api.xml | |
parent | 7beedf6c6330c8ea5aa8e3d2d31c13e1cc7b780d (diff) | |
download | libvirt-python-split-cb8fb3d06281dc1c56bd8438f8d8a3b82ca95bcc.tar.gz libvirt-python-split-cb8fb3d06281dc1c56bd8438f8d8a3b82ca95bcc.tar.xz libvirt-python-split-cb8fb3d06281dc1c56bd8438f8d8a3b82ca95bcc.zip |
list: provide python bindings for snapshotsv0.9.13-rc2v0.9.13-rc1v0.9.13
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.
Diffstat (limited to 'libvirt-override-api.xml')
-rw-r--r-- | libvirt-override-api.xml | 16 |
1 files changed, 14 insertions, 2 deletions
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 @@ <arg name='flags' type='unsigned int' info='fine-tuning flags, currently unused, pass 0.'/> </function> <function name='virDomainSnapshotListNames' file='python'> - <info>collect the list of snapshots for the given domain</info> + <info>collect the list of snapshot names for the given domain</info> <arg name='dom' type='virDomainPtr' info='pointer to the domain'/> <arg name='flags' type='unsigned int' info='flags'/> <return type='str *' info='the list of Names or None in case of error'/> </function> + <function name='virDomainListAllSnapshots' file='python'> + <info>returns the list of snapshots for the given domain</info> + <arg name='dom' type='virDomainPtr' info='pointer to the domain'/> + <arg name='flags' type='unsigned int' info='flags'/> + <return type='snapshot *' info='the list of snapshots or None in case of error'/> + </function> <function name='virDomainSnapshotListChildrenNames' file='python'> - <info>collect the list of child snapshots for the given snapshot</info> + <info>collect the list of child snapshot names for the given snapshot</info> <arg name='snapshot' type='virDomainSnapshotPtr' info='pointer to the snapshot'/> <arg name='flags' type='unsigned int' info='flags'/> <return type='str *' info='the list of Names or None in case of error'/> </function> + <function name='virDomainSnapshotListAllChildren' file='python'> + <info>returns the list of child snapshots for the given snapshot</info> + <arg name='snapshot' type='virDomainSnapshotPtr' info='pointer to the snapshot'/> + <arg name='flags' type='unsigned int' info='flags'/> + <return type='snapshot *' info='the list of snapshots or None in case of error'/> + </function> <function name='virDomainRevertToSnapshot' file='python'> <info>revert the domain to the given snapshot</info> <arg name='dom' type='virDomainPtr' info='dummy domain pointer'/> |