shared: add nm_g_variant_is_of_type() helper

This commit is contained in:
Thomas Haller 2020-02-27 15:43:28 +01:00
parent c3bfd57c69
commit d3e5eab734

View file

@ -1062,6 +1062,14 @@ nm_g_variant_lookup_value (GVariant *dictionary,
: NULL;
}
static inline gboolean
nm_g_variant_is_of_type (GVariant *value,
const GVariantType *type)
{
return value
&& g_variant_is_of_type (value, type);
}
static inline void
nm_g_source_destroy_and_unref (GSource *source)
{