]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: Make virDomainMomentObjListGetNames more generic
authorEric Blake <eblake@redhat.com>
Fri, 22 Mar 2019 04:17:01 +0000 (23:17 -0500)
committerEric Blake <eblake@redhat.com>
Mon, 25 Mar 2019 19:53:33 +0000 (14:53 -0500)
commita3d179807ada46ebb149902b46d1810e53cc6b52
tree682b506f437ff686a6d9c6c40e2bf31e34494193
parent015e71c54ddf8d133905a85514239b21bc7e552e
snapshot: Make virDomainMomentObjListGetNames more generic

Rather than hard-coding the snapshot filter bit values into the
generic code, add another layer of indirection: callers must map which
of their public filter bits correspond to supported moment bits, then
pass two separate flags (the ones translated for moment code to
operate on, and the remaining ones for the filter callback to operate
on).

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/conf/virdomainmomentobjlist.c
src/conf/virdomainmomentobjlist.h
src/conf/virdomainsnapshotobjlist.c