[Libvirt-cim] [PATCH 2 of 2] ECTP: Updated std_assoc structs to reflect changes in mof

Heidi Eckhart heidieck at linux.vnet.ibm.com
Wed Nov 14 11:19:47 UTC 2007


# HG changeset patch
# User Heidi Eckhart <heidieck at linux.vnet.ibm.com>
# Date 1195042730 -3600
# Node ID c5e23709746cbe95546cf99283ac1143f7684490
# Parent  3f68d001fb46af7273a427f54f143e31f3277ecf
ECTP: Updated std_assoc structs to reflect changes in mof
Signed-off-by: Heidi Eckhart <heidieck at linux.vnet.ibm.com>

diff -r 3f68d001fb46 -r c5e23709746c src/Virt_ElementConformsToProfile.c
--- a/src/Virt_ElementConformsToProfile.c	Wed Nov 14 13:06:06 2007 +0100
+++ b/src/Virt_ElementConformsToProfile.c	Wed Nov 14 13:18:50 2007 +0100
@@ -192,35 +192,63 @@ static CMPIInstance *make_ref(const CMPI
         return assoc_inst;
 }
 
-struct std_assoc forward = {
-        .source_class = "CIM_RegisteredProfile",
+struct std_assoc xen_prof_to_me = {
+        .source_class = "Xen_RegisteredProfile",
         .source_prop = "ConformantStandard",
 
         .target_class = "CIM_ManagedElement",
         .target_prop = "ManagedElement",
 
-        .assoc_class = NULL,
+        .assoc_class = "Xen_ElementConformsToProfile",
 
         .handler = prof_to_elem,
         .make_ref = make_ref
 };
 
-struct std_assoc backward = {
+struct std_assoc kvm_prof_to_me = {
+        .source_class = "KVM_RegisteredProfile",
+        .source_prop = "ConformantStandard",
+
+        .target_class = "CIM_ManagedElement",
+        .target_prop = "ManagedElement",
+
+        .assoc_class = "KVM_ElementConformsToProfile",
+
+        .handler = prof_to_elem,
+        .make_ref = make_ref
+};
+
+struct std_assoc xen_me_to_prof = {
         .source_class = "CIM_ManagedElement",
         .source_prop = "ManagedElement",
 
-        .target_class = "CIM_RegisteredProfile",
+        .target_class = "Xen_RegisteredProfile",
         .target_prop = "ConformantStandard",
 
-        .assoc_class = NULL,
+        .assoc_class = "Xen_ElementConformsToProfile",
 
         .handler = elem_to_prof,
         .make_ref = make_ref
 };
 
+struct std_assoc kvm_me_to_prof = {
+        .source_class = "CIM_ManagedElement",
+        .source_prop = "ManagedElement",
+
+        .target_class = "KVM_RegisteredProfile",
+        .target_prop = "ConformantStandard",
+
+        .assoc_class = "KVM_ElementConformsToProfile",
+
+        .handler = elem_to_prof,
+        .make_ref = make_ref
+};
+
 struct std_assoc *assoc_handlers[] = {
-        &forward,
-        &backward,
+        &xen_prof_to_me,
+        &kvm_prof_to_me,
+        &xen_me_to_prof,
+        &kvm_me_to_prof,
         NULL
 };
 




More information about the Libvirt-cim mailing list