diff options
author | Jan Synacek <jsynacek@redhat.com> | 2014-04-29 08:33:13 +0200 |
---|---|---|
committer | Jan Synacek <jsynacek@redhat.com> | 2014-04-30 15:54:14 +0200 |
commit | 55f63d29f5d2b4e82979d71386df58394e87ef5a (patch) | |
tree | 34227f5696df9b3a85c5999d2fd48f50be82681f /src/hardware/LMI_BatteryPhysicalPackageProvider.c | |
parent | dab89c6afb2a2b339ebadea3d47e841cd749b5ef (diff) | |
download | openlmi-providers-55f63d29f5d2b4e82979d71386df58394e87ef5a.tar.gz openlmi-providers-55f63d29f5d2b4e82979d71386df58394e87ef5a.tar.xz openlmi-providers-55f63d29f5d2b4e82979d71386df58394e87ef5a.zip |
libopenlmi: reorganize and gather
Make naming consistent. Gather common functionality into one library and
try to use it across all providers.
Introduce libtool-style versioning for libraries.
Diffstat (limited to 'src/hardware/LMI_BatteryPhysicalPackageProvider.c')
-rw-r--r-- | src/hardware/LMI_BatteryPhysicalPackageProvider.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/hardware/LMI_BatteryPhysicalPackageProvider.c b/src/hardware/LMI_BatteryPhysicalPackageProvider.c index 3b17aa2..7ff67da 100644 --- a/src/hardware/LMI_BatteryPhysicalPackageProvider.c +++ b/src/hardware/LMI_BatteryPhysicalPackageProvider.c @@ -22,7 +22,6 @@ #include <konkret/konkret.h> #include "LMI_BatteryPhysicalPackage.h" #include "LMI_Hardware.h" -#include "globals.h" #include "dmidecode.h" static const CMPIBroker* _cb = NULL; @@ -73,7 +72,7 @@ static CMPIStatus LMI_BatteryPhysicalPackageEnumInstances( LMI_BatteryPhysicalPackage_Init(&lmi_batt_phys, _cb, ns); LMI_BatteryPhysicalPackage_Set_CreationClassName(&lmi_batt_phys, - ORGID "_" BATTERY_PHYS_PKG_CLASS_NAME); + LMI_ORGID "_" BATTERY_PHYS_PKG_CLASS_NAME); LMI_BatteryPhysicalPackage_Set_PackageType(&lmi_batt_phys, LMI_BatteryPhysicalPackage_PackageType_Battery); LMI_BatteryPhysicalPackage_Set_Caption(&lmi_batt_phys, @@ -82,7 +81,7 @@ static CMPIStatus LMI_BatteryPhysicalPackageEnumInstances( "This object represents one physical battery package in system."); snprintf(instance_id, INSTANCE_ID_LEN, - ORGID ":" ORGID "_" BATTERY_PHYS_PKG_CLASS_NAME ":%s", + LMI_ORGID ":" LMI_ORGID "_" BATTERY_PHYS_PKG_CLASS_NAME ":%s", dmi_batt[i].name); LMI_BatteryPhysicalPackage_Set_Tag(&lmi_batt_phys, dmi_batt[i].name); |