On 3/20/19 1:40 AM, Eric Blake wrote:
Separate the algorithm for which list members to vist (which is
generic and can be shared with checkpoints, provided that checkpoints
pick the same bit values for some of its flags) 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.
Signed-off-by: Eric Blake <eblake(a)redhat.com>
---
src/conf/virdomainsnapshotobjlist.h | 4 ++
src/conf/virdomainsnapshotobjlist.c | 60 ++++++++++++++++++-----------
2 files changed, 42 insertions(+), 22 deletions(-)
Reviewed-by: John Ferlan <jferlan(a)redhat.com>
John