1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00

util: bitmap: Unexport 'virBitmapParseSeparator'

The function isn't used besides tests. Since the separator parsing
capability is trivial we can keep it in place and just unexport it for
now.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2021-12-06 15:47:00 +01:00
parent 628be89e87
commit 3c9b04cb12
4 changed files with 2 additions and 8 deletions

View File

@ -1851,7 +1851,6 @@ virBitmapNextClearBit;
virBitmapNextSetBit; virBitmapNextSetBit;
virBitmapOverlaps; virBitmapOverlaps;
virBitmapParse; virBitmapParse;
virBitmapParseSeparator;
virBitmapParseUnlimited; virBitmapParseUnlimited;
virBitmapSetAll; virBitmapSetAll;
virBitmapSetBit; virBitmapSetBit;

View File

@ -397,7 +397,7 @@ virBitmapFormat(virBitmap *bitmap)
* *
* Returns 0 on success, or -1 in case of error. * Returns 0 on success, or -1 in case of error.
*/ */
int static int
virBitmapParseSeparator(const char *str, virBitmapParseSeparator(const char *str,
char terminator, char terminator,
virBitmap **bitmap, virBitmap **bitmap,

View File

@ -81,11 +81,6 @@ int virBitmapParse(const char *str,
virBitmap **bitmap, virBitmap **bitmap,
size_t bitmapSize) size_t bitmapSize)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2); ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
int
virBitmapParseSeparator(const char *str,
char terminator,
virBitmap **bitmap,
size_t bitmapSize);
virBitmap * virBitmap *
virBitmapParseUnlimited(const char *str); virBitmapParseUnlimited(const char *str);

View File

@ -497,7 +497,7 @@ test10(const void *opaque G_GNUC_UNUSED)
g_autoptr(virBitmap) b3 = NULL; g_autoptr(virBitmap) b3 = NULL;
g_autoptr(virBitmap) b4 = NULL; g_autoptr(virBitmap) b4 = NULL;
if (virBitmapParseSeparator("0-3,5-8,11-15f16", 'f', &b1, 20) < 0 || if (virBitmapParse("0-3,5-8,11-15", &b1, 20) < 0 ||
virBitmapParse("4,9,10,16-19", &b2, 20) < 0 || virBitmapParse("4,9,10,16-19", &b2, 20) < 0 ||
virBitmapParse("15", &b3, 20) < 0 || virBitmapParse("15", &b3, 20) < 0 ||
virBitmapParse("0,^0", &b4, 20) < 0) virBitmapParse("0,^0", &b4, 20) < 0)