]> xenbits.xensource.com Git - libvirt.git/commit
virbitmap: Allow NULL bitmap in functions returning index of a set/clear bit
authorPeter Krempa <pkrempa@redhat.com>
Wed, 9 Nov 2022 15:54:56 +0000 (16:54 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 6 Feb 2023 12:34:06 +0000 (13:34 +0100)
commit72e3100e82f3996112db90e71b79d879e82154f4
treefde9ae0f44ff422561886625576ac565afeef859
parentd9e4075d4e9e4d699b5083572a534545f35a91b1
virbitmap: Allow NULL bitmap in functions returning index of a set/clear bit

virBitmapNextSetBit/virBitmapLastSetBit/virBitmapNextClearBit can be
used for iteration of a bitmap. Allow NULL bitmap so that iteration of a
bitmap can be simplified in certain cases.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virbitmap.c
src/util/virbitmap.h