mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-14 04:00:33 +01:00
glib-aux: add nm_uuid_is_valid_full() to have a non-static, non-inline variant
This commit is contained in:
parent
f18c6e7bd1
commit
ce1dd0c0de
2 changed files with 14 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue