• E
    snapshot: Refactor list filtering · de80cdbc
    Eric Blake 提交于
    Separate the algorithm for which list members to vist (which is
    generic and can be shared with checkpoints, provided that common
    filtering bits are either declared with the same value or have a
    mapping from public API to common value) from the decision on which
    members to return (which is specific to snapshots).  The typedef for
    the callback function feels a bit heavy here, but will make it easier
    to move the common portions in a later patch.
    
    As part of the refactoring, note that the macros for selecting filter
    bits are specific to listing functionality, so they belong better in
    virdomainsnapshotobjlist.h (missed in commit 9b75154c).
    Signed-off-by: NEric Blake <eblake@redhat.com>
    Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
    de80cdbc
virsh-snapshot.c 60.3 KB