[PATCH] Use correct param names in Product getters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Zeeshan Ali (Khattak)" <zeeshanak@xxxxxxxxx>

---
 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


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux