glib-aux: add nm_uuid_is_valid() helper

This commit is contained in:
Thomas Haller 2021-05-04 14:56:02 +02:00
parent b12f116a02
commit ce65fc52a8
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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);
/*****************************************************************************/