mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
util: virstring: Remove virStringListLength
glib provides g_strv_length. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
dcd547aec1
commit
51f8baee8d
@ -3242,7 +3242,6 @@ virStringIsEmpty;
|
|||||||
virStringIsPrintable;
|
virStringIsPrintable;
|
||||||
virStringListFreeCount;
|
virStringListFreeCount;
|
||||||
virStringListJoin;
|
virStringListJoin;
|
||||||
virStringListLength;
|
|
||||||
virStringListMerge;
|
virStringListMerge;
|
||||||
virStringMatch;
|
virStringMatch;
|
||||||
virStringMatchesNameSuffix;
|
virStringMatchesNameSuffix;
|
||||||
|
@ -747,17 +747,6 @@ virStringIsEmpty(const char *str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
size_t virStringListLength(const char * const *strings)
|
|
||||||
{
|
|
||||||
size_t i = 0;
|
|
||||||
|
|
||||||
while (strings && strings[i])
|
|
||||||
i++;
|
|
||||||
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virStringSortCompare:
|
* virStringSortCompare:
|
||||||
*
|
*
|
||||||
|
@ -112,8 +112,6 @@ int virStrcpy(char *dest, const char *src, size_t destbytes)
|
|||||||
G_GNUC_WARN_UNUSED_RESULT;
|
G_GNUC_WARN_UNUSED_RESULT;
|
||||||
#define virStrcpyStatic(dest, src) virStrcpy((dest), (src), sizeof(dest))
|
#define virStrcpyStatic(dest, src) virStrcpy((dest), (src), sizeof(dest))
|
||||||
|
|
||||||
size_t virStringListLength(const char * const *strings);
|
|
||||||
|
|
||||||
int virStringSortCompare(const void *a, const void *b);
|
int virStringSortCompare(const void *a, const void *b);
|
||||||
int virStringSortRevCompare(const void *a, const void *b);
|
int virStringSortRevCompare(const void *a, const void *b);
|
||||||
int virStringToUpper(char **dst, const char *src);
|
int virStringToUpper(char **dst, const char *src);
|
||||||
|
Loading…
Reference in New Issue
Block a user