+1

Sharad Mishra
System x Enablement
Linux Technology Center
IBM

Inactive hide details for Kaitlin Rupert ---06/29/2009 05:01:03 PM---# HG changeset patchKaitlin Rupert ---06/29/2009 05:01:03 PM---# HG changeset patch

          Kaitlin Rupert <kaitlin@linux.vnet.ibm.com>
          Sent by: libvirt-cim-bounces@redhat.com

          06/29/2009 05:05 PM
          Please respond to
          List for discussion and development of libvirt CIM <libvirt-cim@redhat.com>


To

libvirt-cim@redhat.com

cc


Subject

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

# HG changeset patch
# User Kaitlin Rupert <karupert@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@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();

_______________________________________________
Libvirt-cim mailing list
Libvirt-cim@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-cim