# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1196416923 -3600
# Node ID 3c73119b6c8db2a2021749c01f7e72ed7f364d0b
# Parent 4c6aa1b13c0b8297ff8637c97b3d8c1bf7b8dac8
VSSDC: Adoption of changes to std_assoc struct in std_association
This is the follow up patch to the API changes made in
std_association. The struct std_assoc does now take lists
for source, target and assoc classnames.
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r 4c6aa1b13c0b -r 3c73119b6c8d src/Virt_VSSDComponent.c
--- a/src/Virt_VSSDComponent.c Fri Nov 30 10:47:49 2007 +0100
+++ b/src/Virt_VSSDComponent.c Fri Nov 30 11:02:03 2007 +0100
@@ -173,23 +173,46 @@ static CMPIInstance *make_ref(const CMPI
return refinst;
}
+char* group_component[] = {
+ "Xen_VirtualSystemSettingData",
+ "KVM_VirtualSystemSettingData",
+ NULL
+};
+
+char* part_component[] = {
+ "Xen_ResourceAllocationSettingData",
+ "KVM_ResourceAllocationSettingData",
+ NULL
+};
+
+char* assoc_classname[] = {
+ "Xen_VirtualSystemSettingDataComponent",
+ "KVM_VirtualSystemSettingDataComponent",
+ NULL
+};
+
+
static struct std_assoc forward = {
- .source_class = "CIM_VirtualSystemSettingData",
+ .source_class = (char**)&group_component,
.source_prop = "GroupComponent",
- .target_class = "CIM_ResourceAllocationSettingData",
+ .target_class = (char**)&part_component,
.target_prop = "PartComponent",
+
+ .assoc_class = (char**)&assoc_classname,
.handler = vssd_to_rasd,
.make_ref = make_ref
};
static struct std_assoc backward = {
- .source_class = "CIM_ResourceAllocationSettingData",
+ .source_class = (char**)&part_component,
.source_prop = "PartComponent",
- .target_class = "CIM_VirtualSystemSettingData",
+ .target_class = (char**)&group_component,
.target_prop = "GroupComponent",
+
+ .assoc_class = (char**)&assoc_classname,
.handler = rasd_to_vssd,
.make_ref = make_ref