# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1198182617 -3600
# Node ID 4de9b4472c5357a0bd51a26b96e19079e7e7913b
# Parent 3a6249849fabbdd217fd0ce0d2f697443c8b27ce
ComputerSystem: OpenWbem support
- rename provider from ComputerSystemProvider to ComputerSystem
- update registration file with new providername
- add "Provider" qualifier to mof
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r 3a6249849fab -r 4de9b4472c53 schema/ComputerSystem.mof
--- a/schema/ComputerSystem.mof Thu Dec 20 21:30:15 2007 +0100
+++ b/schema/ComputerSystem.mof Thu Dec 20 21:30:17 2007 +0100
@@ -2,7 +2,8 @@
[Description (
"A class derived from CIM_ComputerSystem to represent "
- "the Xen virtual machines/domains running on the system.")
+ "the Xen virtual machines/domains running on the system."),
+ Provider("cmpi::Virt_ComputerSystem")
]
class Xen_ComputerSystem : CIM_ComputerSystem
{
@@ -14,7 +15,8 @@ class Xen_ComputerSystem : CIM_ComputerS
[Description (
"A class derived from CIM_ComputerSystem to represent "
- "the KVM virtual machines running on the system.")
+ "the KVM virtual machines running on the system."),
+ Provider("cmpi::Virt_ComputerSystem")
]
class KVM_ComputerSystem : CIM_ComputerSystem
{
diff -r 3a6249849fab -r 4de9b4472c53 schema/ComputerSystem.registration
--- a/schema/ComputerSystem.registration Thu Dec 20 21:30:15 2007 +0100
+++ b/schema/ComputerSystem.registration Thu Dec 20 21:30:17 2007 +0100
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes
-Xen_ComputerSystem root/virt Virt_ComputerSystemProvider Virt_ComputerSystem instance
method
-KVM_ComputerSystem root/virt Virt_ComputerSystemProvider Virt_ComputerSystem instance
+Xen_ComputerSystem root/virt Virt_ComputerSystem Virt_ComputerSystem instance method
+KVM_ComputerSystem root/virt Virt_ComputerSystem Virt_ComputerSystem instance
diff -r 3a6249849fab -r 4de9b4472c53 src/Virt_ComputerSystem.c
--- a/src/Virt_ComputerSystem.c Thu Dec 20 21:30:15 2007 +0100
+++ b/src/Virt_ComputerSystem.c Thu Dec 20 21:30:17 2007 +0100
@@ -680,7 +680,10 @@ static CMPIStatus state_change(CMPIMetho
return s;
}
-STD_InstanceMIStub(, Virt_ComputerSystemProvider, _BROKER, libvirt_cim_init());
+STD_InstanceMIStub(,
+ Virt_ComputerSystem,
+ _BROKER,
+ libvirt_cim_init());
static struct method_handler RequestStateChange = {
.name = "RequestStateChange",
@@ -697,7 +700,7 @@ static struct method_handler *my_handler
};
STDIM_MethodMIStub(,
- Virt_ComputerSystemProvider,
+ Virt_ComputerSystem,
_BROKER,
libvirt_cim_init(),
my_handlers);