summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2012-07-30 14:31:30 +0200
committerRadek Novacek <rnovacek@redhat.com>2012-07-30 14:57:59 +0200
commit81550f470d8224582867054a221445626393d58b (patch)
tree4e6bc3a9191011097160079ab8e1be283a3ea58a
parent0826d3ff487b5ce5fece56767e6cf88f81059c03 (diff)
downloadopenlmi-providers-81550f470d8224582867054a221445626393d58b.tar.gz
openlmi-providers-81550f470d8224582867054a221445626393d58b.tar.xz
openlmi-providers-81550f470d8224582867054a221445626393d58b.zip
power: use get_system_creation_class_name function in the provider
-rw-r--r--src/power/Linux_AssociatedPowerManagementServiceProvider.c4
-rw-r--r--src/power/Linux_ElementCapabilitiesProvider.c3
-rw-r--r--src/power/Linux_HostedServiceProvider.c3
-rw-r--r--src/power/Linux_PowerManagementServiceProvider.c2
4 files changed, 5 insertions, 7 deletions
diff --git a/src/power/Linux_AssociatedPowerManagementServiceProvider.c b/src/power/Linux_AssociatedPowerManagementServiceProvider.c
index 31adfc1..d6d6454 100644
--- a/src/power/Linux_AssociatedPowerManagementServiceProvider.c
+++ b/src/power/Linux_AssociatedPowerManagementServiceProvider.c
@@ -1,7 +1,7 @@
#include "Linux_AssociatedPowerManagementService.h"
#include "Linux_PowerManagementService.h"
-#include "Linux_ComputerSystem.h"
+#include "CIM_ComputerSystem.h"
#include "power.h"
@@ -65,7 +65,7 @@ static CMPIStatus Linux_AssociatedPowerManagementServiceEnumInstances(
Linux_PowerManagementServiceRef_Set_Name(&powerManagementServiceRef, get_system_name());
Linux_PowerManagementServiceRef_Set_SystemName(&powerManagementServiceRef, get_system_name());
Linux_PowerManagementServiceRef_Set_CreationClassName(&powerManagementServiceRef, "Linux_PowerManagementService");
- Linux_PowerManagementServiceRef_Set_SystemCreationClassName(&powerManagementServiceRef, "Linux_ComputerSystem");
+ Linux_PowerManagementServiceRef_Set_SystemCreationClassName(&powerManagementServiceRef, get_system_creation_class_name());
Linux_AssociatedPowerManagementService_Set_ServiceProvided(&w, &powerManagementServiceRef);
int count;
diff --git a/src/power/Linux_ElementCapabilitiesProvider.c b/src/power/Linux_ElementCapabilitiesProvider.c
index 62c42e6..ee09969 100644
--- a/src/power/Linux_ElementCapabilitiesProvider.c
+++ b/src/power/Linux_ElementCapabilitiesProvider.c
@@ -1,6 +1,5 @@
#include <konkret/konkret.h>
#include "Linux_ElementCapabilities.h"
-#include <Linux_ComputerSystem.h>
#include "globals.h"
static const CMPIBroker* _cb;
@@ -44,7 +43,7 @@ static CMPIStatus Linux_ElementCapabilitiesEnumInstances(
Linux_PowerManagementServiceRef_Set_Name(&powerManagementServiceRef, get_system_name());
Linux_PowerManagementServiceRef_Set_SystemName(&powerManagementServiceRef, get_system_name());
Linux_PowerManagementServiceRef_Set_CreationClassName(&powerManagementServiceRef, "Linux_PowerManagementService");
- Linux_PowerManagementServiceRef_Set_SystemCreationClassName(&powerManagementServiceRef, "Linux_ComputerSystem");
+ Linux_PowerManagementServiceRef_Set_SystemCreationClassName(&powerManagementServiceRef, get_system_creation_class_name());
Linux_ElementCapabilities_Set_ManagedElement(&w, &powerManagementServiceRef);
diff --git a/src/power/Linux_HostedServiceProvider.c b/src/power/Linux_HostedServiceProvider.c
index 8a65fe9..7b50150 100644
--- a/src/power/Linux_HostedServiceProvider.c
+++ b/src/power/Linux_HostedServiceProvider.c
@@ -2,7 +2,6 @@
#include <cmpimacs.h>
#include <konkret/konkret.h>
#include "Linux_HostedService.h"
-#include "Linux_ComputerSystem.h"
#include "globals.h"
@@ -56,7 +55,7 @@ static CMPIStatus Linux_HostedServiceEnumInstances(
Linux_PowerManagementServiceRef_Set_Name(&powerManagementServiceRef, get_system_name());
Linux_PowerManagementServiceRef_Set_SystemName(&powerManagementServiceRef, get_system_name());
Linux_PowerManagementServiceRef_Set_CreationClassName(&powerManagementServiceRef, "Linux_PowerManagementService");
- Linux_PowerManagementServiceRef_Set_SystemCreationClassName(&powerManagementServiceRef, "Linux_ComputerSystem");
+ Linux_PowerManagementServiceRef_Set_SystemCreationClassName(&powerManagementServiceRef, get_system_creation_class_name());
Linux_HostedService_Set_Dependent(&w, &powerManagementServiceRef);
KReturnInstance(cr, w);
diff --git a/src/power/Linux_PowerManagementServiceProvider.c b/src/power/Linux_PowerManagementServiceProvider.c
index ca328a9..053c602 100644
--- a/src/power/Linux_PowerManagementServiceProvider.c
+++ b/src/power/Linux_PowerManagementServiceProvider.c
@@ -49,7 +49,7 @@ static CMPIStatus Linux_PowerManagementServiceEnumInstances(
Linux_PowerManagementService_Init(&w, _cb, KNameSpace(cop));
Linux_PowerManagementService_Set_CreationClassName(&w, "Linux_PowerManagementService");
Linux_PowerManagementService_Set_Name(&w, get_system_name());
- Linux_PowerManagementService_Set_SystemCreationClassName(&w, "Linux_ComputerSystem");
+ Linux_PowerManagementService_Set_SystemCreationClassName(&w, get_system_creation_class_name());
Linux_PowerManagementService_Set_SystemName(&w, get_system_name());
/* EnabledState is an integer enumeration that indicates the enabled