[Libvirt-cim] [PATCH 1 of 3] Reorganize code CSIndication - be sure to declare filters earlier in the file

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Tue Jun 30 00:05:20 UTC 2009


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1246320303 25200
# Node ID 3bf5c713feb1b2bf6094c829e7f423480a05904c
# Parent  6ed64506d55ef019359c6d7420ce927fd49855ac
Reorganize code CSIndication - be sure to declare filters earlier in the file

This is necessary for the raise_indication() function (see second patch). The
raise_indication() function needs access to the filters list.

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

diff -r 6ed64506d55e -r 3bf5c713feb1 src/Virt_ComputerSystemIndication.c
--- a/src/Virt_ComputerSystemIndication.c	Mon Jun 29 17:04:49 2009 -0700
+++ b/src/Virt_ComputerSystemIndication.c	Mon Jun 29 17:05:03 2009 -0700
@@ -628,15 +628,6 @@
         return(CMPIStatus){CMPI_RC_OK, NULL};
 }
 
-static struct std_indication_handler csi = {
-        .raise_fn = NULL,
-        .trigger_fn = trigger_indication,
-        .activate_fn = ActivateFilter,
-        .deactivate_fn = DeActivateFilter,
-        .enable_fn = EnableIndications,
-        .disable_fn = DisableIndications,
-};
-
 DECLARE_FILTER(xen_created, "Xen_ComputerSystemCreatedIndication");
 DECLARE_FILTER(xen_deleted, "Xen_ComputerSystemDeletedIndication");
 DECLARE_FILTER(xen_modified, "Xen_ComputerSystemModifiedIndication");
@@ -660,6 +651,14 @@
         NULL,
 };
 
+static struct std_indication_handler csi = {
+        .raise_fn = NULL,
+        .trigger_fn = trigger_indication,
+        .activate_fn = ActivateFilter,
+        .deactivate_fn = DeActivateFilter,
+        .enable_fn = EnableIndications,
+        .disable_fn = DisableIndications,
+};
 
 DEFAULT_IND_CLEANUP();
 DEFAULT_AF();




More information about the Libvirt-cim mailing list