mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 21:30:10 +01:00
glib-aux: add nm_uuid_is_valid_normalized() helper
This commit is contained in:
parent
8c6be1909f
commit
6ce7b3ca0f
1 changed files with 8 additions and 0 deletions
|
|
@ -41,6 +41,14 @@ nm_uuid_is_valid(const char *str)
|
|||
return str && nm_uuid_parse_full(str, NULL, NULL);
|
||||
}
|
||||
|
||||
static inline gboolean
|
||||
nm_uuid_is_normalized(const char *str)
|
||||
{
|
||||
gboolean is_normalized;
|
||||
|
||||
return str && nm_uuid_parse_full(str, NULL, &is_normalized) && is_normalized;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
gboolean nm_uuid_is_valid_nmlegacy(const char *str);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue