]> xenbits.xensource.com Git - libvirt.git/commit
virTypedParamsFilter: Introduce option to filter also by type
authorPeter Krempa <pkrempa@redhat.com>
Fri, 27 Sep 2024 10:56:34 +0000 (12:56 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 1 Oct 2024 10:57:02 +0000 (12:57 +0200)
commitb74fed01730beac3e7d6d31b35b771a0bf559be2
tree01a212b7dce1a37e24ab25989867af97423a6778
parente5fae984b1c500d5199ace234cdae2bc89da9065
virTypedParamsFilter: Introduce option to filter also by type

The only caller of this function is doing some additional filtering so
it's useful if the filtering function was able to do so internally.

Introduce a 'type' parameter which will optionally filter the results by
type and extend the testsuite to cover this scenario.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/util/virtypedparam.c
src/util/virtypedparam.h
tests/virtypedparamtest.c