[Libvirt-cim] [PATCH] Update SAE to use the proper association attributes

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Mon May 18 23:43:25 UTC 2009


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1242689960 25200
# Node ID 61b3f36a8a0294c916b778774e58319fbf24b4b5
# Parent  853db606f335086710612450a93bfd67c1293922
Update SAE to use the proper association attributes

Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>

diff -r 853db606f335 -r 61b3f36a8a02 src/Virt_ServiceAffectsElement.c
--- a/src/Virt_ServiceAffectsElement.c	Mon May 18 16:39:18 2009 -0700
+++ b/src/Virt_ServiceAffectsElement.c	Mon May 18 16:39:20 2009 -0700
@@ -136,7 +136,7 @@
 
 LIBVIRT_CIM_DEFAULT_MAKEREF()
 
-static char* antecedent[] = {  
+static char* affected_ele[] = {  
         "Xen_ComputerSystem",
         "KVM_ComputerSystem",
         "LXC_ComputerSystem",
@@ -149,7 +149,7 @@
         NULL
 };
 
-static char* dependent[] = {
+static char* affecting_ele[] = {
         "Xen_ConsoleRedirectionService",
         "KVM_ConsoleRedirectionService",
         "LXC_ConsoleRedirectionService",
@@ -164,11 +164,11 @@
 };
 
 static struct std_assoc _cs_to_service = {
-        .source_class = (char**)&antecedent,
-        .source_prop = "Antecedent",
+        .source_class = (char**)&affected_ele,
+        .source_prop = "AffectedElement",
 
-        .target_class = (char**)&dependent,
-        .target_prop = "Dependent",
+        .target_class = (char**)&affecting_ele,
+        .target_prop = "AffectingElement",
 
         .assoc_class = (char**)&assoc_classname,
 
@@ -177,11 +177,11 @@
 };
 
 static struct std_assoc _service_to_cs = {
-        .source_class = (char**)&dependent,
-        .source_prop = "Dependent",
+        .source_class = (char**)&affecting_ele,
+        .source_prop = "AffectingElement",
         
-        .target_class = (char**)&antecedent,
-        .target_prop = "Antecedent",
+        .target_class = (char**)&affected_ele,
+        .target_prop = "AffectedElement",
 
         .assoc_class = (char**)&assoc_classname,
         




More information about the Libvirt-cim mailing list