]> xenbits.xensource.com Git - libvirt.git/commit
util: bitmap: Add virBitmapToDataBuf that does not allocate the buffer
authorPeter Krempa <pkrempa@redhat.com>
Thu, 21 May 2015 16:25:36 +0000 (18:25 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 3 Jun 2015 07:42:07 +0000 (09:42 +0200)
commit02a6c73f275ed1aa5986f14cfc376ef83084b1fe
tree58bab52b7e5083088b6d5dd26ad4f537d66b6657
parent2c67a3513edc1e0e7ff63fb060b1c8d85cf623de
util: bitmap: Add virBitmapToDataBuf that does not allocate the buffer

Since some functions can be optimized by reusing the buffers that they
already have instead of allocating and copying new ones, lets split
virBitmapToData to two functions where one only converts the data and
the second one is a wrapper that allocates the buffer if necessary.
src/libvirt_private.syms
src/util/virbitmap.c
src/util/virbitmap.h