mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 18:10:29 +01:00
shared: add nm_g_variant_is_of_type() helper
This commit is contained in:
parent
c3bfd57c69
commit
d3e5eab734
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue