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:
parent
628be89e87
commit
3c9b04cb12
@ -1851,7 +1851,6 @@ virBitmapNextClearBit;
|
||||
virBitmapNextSetBit;
|
||||
virBitmapOverlaps;
|
||||
virBitmapParse;
|
||||
virBitmapParseSeparator;
|
||||
virBitmapParseUnlimited;
|
||||
virBitmapSetAll;
|
||||
virBitmapSetBit;
|
||||
|
@ -397,7 +397,7 @@ virBitmapFormat(virBitmap *bitmap)
|
||||
*
|
||||
* Returns 0 on success, or -1 in case of error.
|
||||
*/
|
||||
int
|
||||
static int
|
||||
virBitmapParseSeparator(const char *str,
|
||||
char terminator,
|
||||
virBitmap **bitmap,
|
||||
|
@ -81,11 +81,6 @@ int virBitmapParse(const char *str,
|
||||
virBitmap **bitmap,
|
||||
size_t bitmapSize)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
|
||||
int
|
||||
virBitmapParseSeparator(const char *str,
|
||||
char terminator,
|
||||
virBitmap **bitmap,
|
||||
size_t bitmapSize);
|
||||
virBitmap *
|
||||
virBitmapParseUnlimited(const char *str);
|
||||
|
||||
|
@ -497,7 +497,7 @@ test10(const void *opaque G_GNUC_UNUSED)
|
||||
g_autoptr(virBitmap) b3 = 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("15", &b3, 20) < 0 ||
|
||||
virBitmapParse("0,^0", &b4, 20) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user