Let's start using the parent's property so we can, in the future, remove _DEVICE_LINK_PROP_SUPPORTED (mainly considering it's not part of any release yet). Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx> --- osinfo/osinfo_loader.c | 4 ++-- osinfo/osinfo_os.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/osinfo/osinfo_loader.c b/osinfo/osinfo_loader.c index 030062b..d809137 100644 --- a/osinfo/osinfo_loader.c +++ b/osinfo/osinfo_loader.c @@ -639,10 +639,10 @@ static void osinfo_loader_device_link(OsinfoLoader *loader, } gchar *supported = (gchar *)xmlGetProp(related[i], - BAD_CAST OSINFO_DEVICELINK_PROP_SUPPORTED); + BAD_CAST OSINFO_LINK_PROP_SUPPORTED); if (supported != NULL) { osinfo_entity_set_param_boolean(OSINFO_ENTITY(devlink), - OSINFO_DEVICELINK_PROP_SUPPORTED, + OSINFO_LINK_PROP_SUPPORTED, g_str_equal(supported, "false") ? FALSE : TRUE); xmlFree(supported); } diff --git a/osinfo/osinfo_os.c b/osinfo/osinfo_os.c index 9ed93d1..0a8754d 100644 --- a/osinfo/osinfo_os.c +++ b/osinfo/osinfo_os.c @@ -222,7 +222,7 @@ add_entity_to_list_check(OsinfoEntity *ent1, /* OsinfoDeviceLink */ ret = TRUE; if (!osinfo_entity_get_param_value_boolean_with_default(ent1, - OSINFO_DEVICELINK_PROP_SUPPORTED, + OSINFO_LINK_PROP_SUPPORTED, TRUE)) unsupported = TRUE; @@ -342,7 +342,7 @@ OsinfoDeviceList *osinfo_os_get_all_devices(OsinfoOs *os, OsinfoFilter *filter) unsupported_filter = osinfo_filter_new(); osinfo_filter_add_constraint(unsupported_filter, - OSINFO_DEVICELINK_PROP_SUPPORTED, + OSINFO_LINK_PROP_SUPPORTED, "false"); unsupported_devlinks = OSINFO_DEVICELINKLIST @@ -504,7 +504,7 @@ osinfo_os_get_all_device_links_internal(OsinfoOs *os, OsinfoDeviceLink *devlink = OSINFO_DEVICELINK(it->data); if (!osinfo_entity_get_param_value_boolean_with_default(OSINFO_ENTITY(devlink), - OSINFO_DEVICELINK_PROP_SUPPORTED, + OSINFO_LINK_PROP_SUPPORTED, TRUE)) continue; -- 2.19.1 _______________________________________________ Libosinfo mailing list Libosinfo@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libosinfo