
# HG changeset patch # User Heidi Eckhart <heidieck@linux.vnet.ibm.com> # Date 1198064140 -3600 # Node ID 209814f0021e473055e0355f8078511f3de6beb7 # Parent 560ee76080af4fb553d98c19d1ddf8ff2d6c6f91 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@linux.vnet.ibm.com> diff -r 560ee76080af -r 209814f0021e schema/ComputerSystem.mof --- a/schema/ComputerSystem.mof Wed Dec 19 12:35:38 2007 +0100 +++ b/schema/ComputerSystem.mof Wed Dec 19 12:35:40 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 560ee76080af -r 209814f0021e schema/ComputerSystem.registration --- a/schema/ComputerSystem.registration Wed Dec 19 12:35:38 2007 +0100 +++ b/schema/ComputerSystem.registration Wed Dec 19 12:35:40 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 560ee76080af -r 209814f0021e src/Virt_ComputerSystem.c --- a/src/Virt_ComputerSystem.c Wed Dec 19 12:35:38 2007 +0100 +++ b/src/Virt_ComputerSystem.c Wed Dec 19 12:35:40 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);