[libvirt] [PATCH 09/16] snapshot: Refactor list filtering

John Ferlan jferlan at redhat.com
Wed Mar 20 21:40:56 UTC 2019



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 at redhat.com>
> ---
>  src/conf/virdomainsnapshotobjlist.h |  4 ++
>  src/conf/virdomainsnapshotobjlist.c | 60 ++++++++++++++++++-----------
>  2 files changed, 42 insertions(+), 22 deletions(-)
> 

Reviewed-by: John Ferlan <jferlan at redhat.com>

John




More information about the libvir-list mailing list