# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1196419221 -3600
# Node ID 7e7c29393d458e982d894dcfbd379feb40f27d32
# Parent b04cad2f19903e872d08c0af80a1d5e9905f7534
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 b04cad2f1990 -r 7e7c29393d45 src/Virt_VSSDComponent.c
--- a/src/Virt_VSSDComponent.c Fri Nov 30 11:40:21 2007 +0100
+++ b/src/Virt_VSSDComponent.c Fri Nov 30 11:40:21 2007 +0100
@@ -173,23 +173,52 @@ static CMPIInstance *make_ref(const CMPI
return refinst;
}
+char* group_component[] = {
+ "Xen_VirtualSystemSettingData",
+ "KVM_VirtualSystemSettingData",
+ NULL
+};
+
+char* part_component[] = {
+ "Xen_DiskResourceAllocationSettingData",
+ "Xen_MemResourceAllocationSettingData",
+ "Xen_NetResourceAllocationSettingData",
+ "Xen_ProcResourceAllocationSettingData",
+ "KVM_DiskResourceAllocationSettingData",
+ "KVM_MemResourceAllocationSettingData",
+ "KVM_NetResourceAllocationSettingData",
+ "KVM_ProcResourceAllocationSettingData",
+ 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