Skip to content

Commit

Permalink
Change the DBus interface check for non-useful interfaces to use the …
Browse files Browse the repository at this point in the history
…NI_OBJECTMODEL_NAMESPACE constant
  • Loading branch information
rtorrero committed Mar 20, 2018
1 parent 6e39f27 commit 3516230
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/main.c
Expand Up @@ -553,8 +553,7 @@ __dump_object_xml(const char *object_path, const ni_dbus_variant_t *variant,
}

/* Ignore well-known interfaces that never have properties */
if (!strcmp(interface_name, "org.freedesktop.DBus.ObjectManager")
|| !strcmp(interface_name, "org.freedesktop.DBus.Properties"))
if (!ni_string_startswith(interface_name, NI_OBJECTMODEL_NAMESPACE))
continue;

ni_dbus_xml_deserialize_properties(schema, interface_name, &entry->datum, object_node);
Expand Down

0 comments on commit 3516230

Please sign in to comment.