diff options
author | Peter Schiffer <pschiffe@redhat.com> | 2014-05-09 17:37:40 +0200 |
---|---|---|
committer | Peter Schiffer <pschiffe@redhat.com> | 2014-05-12 19:20:43 +0200 |
commit | 28aed3c2c360b84762f76b322e9fc80bd74c036b (patch) | |
tree | 880f68596cbaf7e0e020a6f116c3e789cd4fd60a /src/hardware/LMI_PhysicalBatteryRealizesProvider.c | |
parent | 87a03ac7ebff779351e9782d40e691221195f8e0 (diff) | |
download | openlmi-providers-28aed3c2c360b84762f76b322e9fc80bd74c036b.tar.gz openlmi-providers-28aed3c2c360b84762f76b322e9fc80bd74c036b.tar.xz openlmi-providers-28aed3c2c360b84762f76b322e9fc80bd74c036b.zip |
Hardware: spring cleanup & refactor
* use openlmi common library where possible
* get rid of LMI_Hardware.h file
* some other cosmetic changes
Diffstat (limited to 'src/hardware/LMI_PhysicalBatteryRealizesProvider.c')
-rw-r--r-- | src/hardware/LMI_PhysicalBatteryRealizesProvider.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hardware/LMI_PhysicalBatteryRealizesProvider.c b/src/hardware/LMI_PhysicalBatteryRealizesProvider.c index a9d1f16..114e613 100644 --- a/src/hardware/LMI_PhysicalBatteryRealizesProvider.c +++ b/src/hardware/LMI_PhysicalBatteryRealizesProvider.c @@ -20,7 +20,7 @@ #include <konkret/konkret.h> #include "LMI_PhysicalBatteryRealizes.h" -#include "LMI_Hardware.h" +#include "utils.h" #include "dmidecode.h" static const CMPIBroker* _cb; @@ -75,12 +75,12 @@ static CMPIStatus LMI_PhysicalBatteryRealizesEnumInstances( lmi_get_system_creation_class_name()); LMI_BatteryRef_Set_SystemName(&lmi_batt, lmi_get_system_name()); LMI_BatteryRef_Set_CreationClassName(&lmi_batt, - LMI_ORGID "_" BATTERY_CLASS_NAME); + LMI_Battery_ClassName); LMI_BatteryRef_Set_DeviceID(&lmi_batt, dmi_batt[i].name); LMI_BatteryPhysicalPackageRef_Init(&lmi_batt_phys, _cb, ns); LMI_BatteryPhysicalPackageRef_Set_CreationClassName(&lmi_batt_phys, - LMI_ORGID "_" BATTERY_PHYS_PKG_CLASS_NAME); + LMI_BatteryPhysicalPackage_ClassName); LMI_BatteryPhysicalPackageRef_Set_Tag(&lmi_batt_phys, dmi_batt[i].name); LMI_PhysicalBatteryRealizes_Set_Antecedent(&lmi_phys_batt_realizes, |