]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: new virDomainSnapshotListChildrenNames API
authorEric Blake <eblake@redhat.com>
Sun, 25 Sep 2011 01:56:26 +0000 (19:56 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 10 Oct 2011 22:54:16 +0000 (16:54 -0600)
commitf2013c9dd1ce468b8620ee35c232a93ef7026fb0
treed382e50eef09fd2b1a58de48a754b9d69e9f561b
parentde6431a3d64dd94dc265f0ea9e9025781dd8fbec
snapshot: new virDomainSnapshotListChildrenNames API

The previous API addition allowed traversal up the hierarchy;
this one makes it easier to traverse down the hierarchy.

In the python bindings, virDomainSnapshotNumChildren can be
generated, but virDomainSnapshotListChildrenNames had to copy
from the hand-written example of virDomainSnapshotListNames.

* include/libvirt/libvirt.h.in (virDomainSnapshotNumChildren)
(virDomainSnapshotListChildrenNames): New prototypes.
(VIR_DOMAIN_SNAPSHOT_LIST_DESCENDANTS): New flag alias.
* src/libvirt.c (virDomainSnapshotNumChildren)
(virDomainSnapshotListChildrenNames): New functions.
* src/libvirt_public.syms: Export them.
* src/driver.h (virDrvDomainSnapshotNumChildren)
(virDrvDomainSnapshotListChildrenNames): New callbacks.
* python/generator.py (skip_impl, nameFixup): Update lists.
* python/libvirt-override-api.xml: Likewise.
* python/libvirt-override.c
(libvirt_virDomainSnapshotListChildrenNames): New wrapper function.
include/libvirt/libvirt.h.in
python/generator.py
python/libvirt-override-api.xml
python/libvirt-override.c
src/driver.h
src/libvirt.c
src/libvirt_public.syms