glib-aux: add nm_uuid_is_valid_full() to have a non-static, non-inline variant

This commit is contained in:
Thomas Haller 2021-05-27 09:22:14 +02:00
parent f18c6e7bd1
commit ce1dd0c0de
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
2 changed files with 14 additions and 0 deletions

View file

@ -129,6 +129,18 @@ nm_uuid_generate_random(NMUuid *out_uuid)
/*****************************************************************************/
gboolean
nm_uuid_is_valid_full(const char *str)
{
/* The only reason why this exists is that nm_uuid_is_valid() is an inline function.
* If you need to forward declare the function, that won't work.
*
* Usually, you wouldn't use this variant! */
return nm_uuid_is_valid(str);
}
/*****************************************************************************/
/**
* nm_uuid_is_valid_nmlegacy()
* @str: the string to check whether it's a valid UUID.

View file

@ -33,6 +33,8 @@ gboolean nm_uuid_is_null(const NMUuid *uuid);
/*****************************************************************************/
gboolean nm_uuid_is_valid_full(const char *str);
static inline gboolean
nm_uuid_is_valid(const char *str)
{