mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
util: Rename virBitmapString to virBitmapToString
This follows the virBitmapToData() function and, similarly to virBitmapNewData(), we'll be able to have virBitmapNewString() later on without name confusion. Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
d127aced0a
commit
68d7cc649c
@ -1375,9 +1375,9 @@ virBitmapSetAll;
|
||||
virBitmapSetBit;
|
||||
virBitmapSetBitExpand;
|
||||
virBitmapSize;
|
||||
virBitmapString;
|
||||
virBitmapToData;
|
||||
virBitmapToDataBuf;
|
||||
virBitmapToString;
|
||||
|
||||
|
||||
# util/virbuffer.h
|
||||
|
@ -1510,7 +1510,7 @@ int virQEMUCapsParseHelpStr(const char *qemu,
|
||||
qemuCaps, check_yajl) < 0)
|
||||
goto cleanup;
|
||||
|
||||
strflags = virBitmapString(qemuCaps->flags, true);
|
||||
strflags = virBitmapToString(qemuCaps->flags, true);
|
||||
VIR_DEBUG("Version %u.%u.%u, cooked version %u, flags %s",
|
||||
major, minor, micro, *version, NULLSTR(strflags));
|
||||
VIR_FREE(strflags);
|
||||
@ -2377,7 +2377,7 @@ virQEMUCapsClear(virQEMUCapsPtr qemuCaps,
|
||||
|
||||
char *virQEMUCapsFlagsString(virQEMUCapsPtr qemuCaps)
|
||||
{
|
||||
return virBitmapString(qemuCaps->flags, true);
|
||||
return virBitmapToString(qemuCaps->flags, true);
|
||||
}
|
||||
|
||||
|
||||
|
@ -310,7 +310,7 @@ int virBitmapGetBit(virBitmapPtr bitmap, size_t b, bool *result)
|
||||
}
|
||||
|
||||
/**
|
||||
* virBitmapString:
|
||||
* virBitmapToString:
|
||||
* @bitmap: Pointer to bitmap
|
||||
* @prefix: Whether to prepend "0x"
|
||||
*
|
||||
@ -319,8 +319,8 @@ int virBitmapGetBit(virBitmapPtr bitmap, size_t b, bool *result)
|
||||
* Returns pointer to the string or NULL on error.
|
||||
*/
|
||||
char *
|
||||
virBitmapString(virBitmapPtr bitmap,
|
||||
bool prefix)
|
||||
virBitmapToString(virBitmapPtr bitmap,
|
||||
bool prefix)
|
||||
{
|
||||
virBuffer buf = VIR_BUFFER_INITIALIZER;
|
||||
size_t sz;
|
||||
|
@ -80,7 +80,7 @@ bool virBitmapIsBitSet(virBitmapPtr bitmap, size_t b)
|
||||
int virBitmapGetBit(virBitmapPtr bitmap, size_t b, bool *result)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(3) ATTRIBUTE_RETURN_CHECK;
|
||||
|
||||
char *virBitmapString(virBitmapPtr bitmap, bool prefix)
|
||||
char *virBitmapToString(virBitmapPtr bitmap, bool prefix)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
|
||||
|
||||
char *virBitmapFormat(virBitmapPtr bitmap);
|
||||
|
Loading…
Reference in New Issue
Block a user