• E
    snapshot: new virDomainSnapshotListChildrenNames API · f2013c9d
    Eric Blake 提交于
    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.
    f2013c9d
libvirt-override.c 143.7 KB