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

Sharad Mishra snmishra at us.ibm.com
Tue Jun 30 22:09:21 UTC 2009


+1

Sharad Mishra
System x Enablement
Linux Technology Center
IBM


                                                                           
             Kaitlin Rupert                                                
             <kaitlin at linux.vn                                             
             et.ibm.com>                                                To 
             Sent by:                  libvirt-cim at redhat.com              
             libvirt-cim-bounc                                          cc 
             es at 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 at redh                                             
                  at.com>                                                  
                                                                           
                                                                           




# 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();

_______________________________________________
Libvirt-cim mailing list
Libvirt-cim at redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-cim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20090630/7f5af816/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20090630/7f5af816/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic21905.gif
Type: image/gif
Size: 1255 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20090630/7f5af816/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20090630/7f5af816/attachment-0002.gif>


More information about the Libvirt-cim mailing list