+1
Sharad Mishra
System x Enablement
Linux Technology Center
IBM
Kaitlin Rupert
<kaitlin(a)linux.vn
et.ibm.com> To
Sent by: libvirt-cim(a)redhat.com
libvirt-cim-bounc cc
es(a)redhat.com
Subject
[Libvirt-cim] [PATCH 1 of 3]
06/29/2009 05:05 Reorganize code CSIndication - be
PM sure to declare filters earlier in
the file
Please respond to
List for
discussion and
development of
libvirt CIM
<libvirt-cim@redh
at.com>
# HG changeset patch
# User Kaitlin Rupert <karupert(a)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(a)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(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-cim