* the path @prefix, sorted alphabetically.
*
* The @mountsret array will be NULL terminated and should
- * be freed with virStringListFree
+ * be freed with g_strfreev
*
* Returns 0 on success, -1 on error
*/
* the path @prefix, reverse-sorted alphabetically.
*
* The @mountsret array will be NULL terminated and should
- * be freed with virStringListFree
+ * be freed with g_strfreev
*
* Returns 0 on success, -1 on error
*/
* before calling virStringSplit().
*
* Return value: a newly-allocated NULL-terminated array of strings. Use
- * virStringListFree() to free it.
+ * g_strfreev() to free it.
*/
char **
virStringSplitCount(const char *string,
for (i = 0; i <= src_len; i++)
(*dst)[i + dst_len] = (*src)[i];
- /* Don't call virStringListFree() as it would free strings in
+ /* Don't call g_strfreev() as it would free strings in
* @src. */
VIR_FREE(*src);
return 0;
* @matches: pointer to an array to be filled with NULL terminated list of matches
*
* Performs a POSIX extended regex search against a string and return all matching substrings.
- * The @matches value should be freed with virStringListFree() when no longer
+ * The @matches value should be freed with g_strfreev() when no longer
* required.
*
* @code
* // matches[2] == "bbb3c75c-d60f-43b0-b802-fd56b84a4222"
* // matches[3] == NULL;
*
- * virStringListFree(matches);
+ * g_strfreev(matches);
* @endcode
*
* Returns: -1 on error, or number of matches
/*
* Convert the strings separated by ',' into array. The returned
* array is a NULL terminated string list. The caller has to free
- * the array using virStringListFree or a similar method.
+ * the array using g_strfreev or a similar method.
*
* Returns the length of the filled array on success, or -1
* on error.