]> xenbits.xensource.com Git - libvirt.git/commit
util: Introduce virBitmapNewString
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 23 Aug 2017 07:12:10 +0000 (09:12 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Sat, 18 Nov 2017 09:45:10 +0000 (10:45 +0100)
commit2e5579a43b45e55d744cac9f62aaa901e2587fee
tree6642196a369388eb28a25f4b6deaf331036c846c
parentfb106028752d8bd31f48a7c50357b7437b87d7c1
util: Introduce virBitmapNewString

Our bitmaps can be represented as data (raw bytes for which we have
virBitmapNewData() and virBitmapToData()), human representation (list
of numbers in a string for which we have virBitmapParse() and
virBitmapFormat()) and hexadecimal string (for which we have only
virBitmapToString()).  So let's add the missing complement for the
last one so that we can parse hexadecimal strings.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/libvirt_private.syms
src/util/virbitmap.c
src/util/virbitmap.h
tests/virbitmaptest.c