mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 23:30:07 +01:00
glib-aux: add nm_uuid_is_valid() helper
This commit is contained in:
parent
b12f116a02
commit
ce65fc52a8
1 changed files with 8 additions and 0 deletions
|
|
@ -33,6 +33,14 @@ gboolean nm_uuid_is_null(const NMUuid *uuid);
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
static inline gboolean
|
||||
nm_uuid_is_valid(const char *str)
|
||||
{
|
||||
return str && nm_uuid_parse_full(str, NULL, NULL);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
gboolean nm_uuid_is_valid_nmlegacy(const char *str);
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue