[libvirt-users] [PATCH] Use correct param names in Product getters

From: "Zeeshan Ali (Khattak)" <zeeshanak@gnome.org> --- osinfo/osinfo_product.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/osinfo/osinfo_product.c b/osinfo/osinfo_product.c index 89e01bd..bbbcf67 100644 --- a/osinfo/osinfo_product.c +++ b/osinfo/osinfo_product.c @@ -158,15 +158,15 @@ void osinfo_product_add_related(OsinfoProduct *product, OsinfoProductRelationshi const gchar *osinfo_product_get_vendor(OsinfoProduct *prod) { - return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_NAME); + return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_VENDOR); } const gchar *osinfo_product_get_version(OsinfoProduct *prod) { - return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_NAME); + return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_VERSION); } const gchar *osinfo_product_get_short_id(OsinfoProduct *prod) { - return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_NAME); + return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_SHORT_ID); } const gchar *osinfo_product_get_name(OsinfoProduct *prod) { -- 1.7.5.4

[assuming you meant this to go to virt-tools-list] On 07/01/2011 07:22 AM, Zeeshan Ali (Khattak) wrote:
From: "Zeeshan Ali (Khattak)" <zeeshanak@gnome.org>
--- osinfo/osinfo_product.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/osinfo/osinfo_product.c b/osinfo/osinfo_product.c index 89e01bd..bbbcf67 100644 --- a/osinfo/osinfo_product.c +++ b/osinfo/osinfo_product.c @@ -158,15 +158,15 @@ void osinfo_product_add_related(OsinfoProduct *product, OsinfoProductRelationshi
const gchar *osinfo_product_get_vendor(OsinfoProduct *prod) { - return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_NAME); + return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_VENDOR); } const gchar *osinfo_product_get_version(OsinfoProduct *prod) { - return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_NAME); + return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_VERSION); } const gchar *osinfo_product_get_short_id(OsinfoProduct *prod) { - return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_NAME); + return osinfo_entity_get_param_value(OSINFO_ENTITY(prod), OSINFO_PRODUCT_PROP_SHORT_ID); } const gchar *osinfo_product_get_name(OsinfoProduct *prod) {
-- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
participants (2)
-
Eric Blake
-
Zeeshan Ali (Khattak)