]> xenbits.xensource.com Git - libvirt.git/commit
util: bitmap: Introduce self-expanding bitmap APIs
authorPeter Krempa <pkrempa@redhat.com>
Fri, 18 Mar 2016 14:41:59 +0000 (15:41 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 29 Mar 2016 19:25:41 +0000 (21:25 +0200)
commit917426c8d7dd26f13142fc4c5c1a8a19137ac647
treebd7cffef296daffca035e338f6bc832c12e5cd92
parent4ed5937d71eda3150df55b4a8a28a9029f660105
util: bitmap: Introduce self-expanding bitmap APIs

In some cases it's impractical to use the regular APIs as the bitmap
size needs to be pre-declared. These new APIs allow to use bitmaps that
self expand.

The new code adds a property to the bitmap to track the allocation of
memory so that VIR_RESIZE_N can be used.
src/libvirt_private.syms
src/util/virbitmap.c
src/util/virbitmap.h
tests/virbitmaptest.c