<html><body>
<p>+1<br>
<br>
Sharad Mishra<br>
Open Virtualization<br>
Linux Technology Center<br>
IBM<br>
<br>
<img width="16" height="16" src="cid:1__=07BBF29ADFF0EA4A8f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for Chip Vincent ---12/29/2010 02:55:57 PM---# HG changeset patch"><font color="#424282">Chip Vincent ---12/29/2010 02:55:57 PM---# HG changeset patch</font><br>
<br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td style="background-image:url(cid:2__=07BBF29ADFF0EA4A8f9e8a93df938@us.ibm.com); background-repeat: no-repeat; " width="40%">
<ul>
<ul>
<ul>
<ul><b><font size="2">Chip Vincent <cvincent@linux.vnet.ibm.com></font></b><font size="2"> </font><br>
<font size="2">Sent by: libvirt-cim-bounces@redhat.com</font>
<p><font size="2">12/29/2010 02:54 PM</font>
<table border="1">
<tr valign="top"><td width="168" bgcolor="#FFFFFF"><div align="center"><font size="2">Please respond to<br>
List for discussion and development of libvirt CIM      <libvirt-cim@redhat.com></font></div></td></tr>
</table>
</ul>
</ul>
</ul>
</ul>
</td><td width="60%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=07BBF29ADFF0EA4A8f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<div align="right"><font size="2">To</font></div></td><td width="100%"><img width="1" height="1" src="cid:3__=07BBF29ADFF0EA4A8f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">List for discussion and development of libvirt CIM <libvirt-cim@redhat.com></font></td></tr>

<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=07BBF29ADFF0EA4A8f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<div align="right"><font size="2">cc</font></div></td><td width="100%"><img width="1" height="1" src="cid:3__=07BBF29ADFF0EA4A8f9e8a93df938@us.ibm.com" border="0" alt=""><br>
</td></tr>

<tr valign="top"><td width="1%"><img width="58" height="1" src="cid:3__=07BBF29ADFF0EA4A8f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<div align="right"><font size="2">Subject</font></div></td><td width="100%"><img width="1" height="1" src="cid:3__=07BBF29ADFF0EA4A8f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">[Libvirt-cim] [PATCH] (#2) Update indication providers to the std_indication interface change introduced in libcmpiutil f967d9432f31</font></td></tr>
</table>

<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="58"><img width="1" height="1" src="cid:3__=07BBF29ADFF0EA4A8f9e8a93df938@us.ibm.com" border="0" alt=""></td><td width="336"><img width="1" height="1" src="cid:3__=07BBF29ADFF0EA4A8f9e8a93df938@us.ibm.com" border="0" alt=""></td></tr>
</table>
</td></tr>
</table>
<br>
<tt># HG changeset patch<br>
# User Chip Vincent <cvincent@us.ibm.com><br>
# Date 1293663180 18000<br>
# Node ID 7b2e9efc2778533b14fd7a4ac82b840a3baec275<br>
# Parent  35396e5b805193c024b6d4f065136d7b57a0b03d<br>
Update indication providers to the std_indication interface change <br>
introduced in libcmpiutil f967d9432f31.<br>
<br>
This fix is needed to build libvirt-cim with the latest <br>
libcmpiutil-devel headers. There will be a small patch<br>
coming for std_indication.h shortly to ensure 0 warnings.<br>
<br>
Signed-off-by: Chip Vincent <cvincent@us.ibm.com><br>
<br>
diff -r 35396e5b8051 -r 7b2e9efc2778 libvirt-cim.spec.in<br>
--- a/libvirt-cim.spec.in       Tue Dec 14 13:59:51 2010 -0800<br>
+++ b/libvirt-cim.spec.in       Wed Dec 29 17:53:00 2010 -0500<br>
@@ -10,10 +10,10 @@<br>
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root<br>
 URL: </tt><tt><a href="http://libvirt.org/CIM/">http://libvirt.org/CIM/</a></tt><tt><br>
 Requires: libxml2 >= 2.6.0<br>
-Requires: libvirt >= 0.3.2<br>
+Requires: libvirt >= 0.6.3<br>
 Requires: unzip<br>
 BuildRequires: tog-pegasus-devel<br>
-BuildRequires: libvirt-devel >= 0.3.2<br>
+BuildRequires: libvirt-devel >= 0.5.3<br>
 BuildRequires: e2fsprogs-devel<br>
 BuildRequires: libxml2-devel<br>
 BuildRequires: libcmpiutil-devel<br>
diff -r 35396e5b8051 -r 7b2e9efc2778 src/Virt_ComputerSystemIndication.c<br>
--- a/src/Virt_ComputerSystemIndication.c       Tue Dec 14 13:59:51 2010 <br>
-0800<br>
+++ b/src/Virt_ComputerSystemIndication.c       Wed Dec 29 17:53:00 2010 <br>
-0500<br>
@@ -787,12 +787,13 @@<br>
 <br>
 static CMPIStatus raise_indication(const CMPIBroker *broker,<br>
                                    const CMPIContext *ctx,<br>
+                                   const CMPIObjectPath *ref,<br>
                                    const CMPIInstance *ind)<br>
 {<br>
         CMPIStatus s = {CMPI_RC_OK, NULL};<br>
         CMPIInstance *prev_inst;<br>
         CMPIInstance *src_inst;<br>
-        CMPIObjectPath *ref = NULL;<br>
+        CMPIObjectPath *_ref = NULL;<br>
         struct std_indication_ctx *_ctx = NULL;<br>
         struct ind_args *args = NULL;<br>
         char *prefix = NULL;<br>
@@ -809,7 +810,7 @@<br>
         if (s.rc != CMPI_RC_OK || CMIsNullObject(prev_inst))<br>
                 goto out;<br>
 <br>
-        ref = CMGetObjectPath(prev_inst, &s);<br>
+        _ref = CMGetObjectPath(prev_inst, &s);<br>
         if (s.rc != CMPI_RC_OK) {<br>
                 cu_statusf(broker, &s,<br>
                            CMPI_RC_ERR_FAILED,<br>
@@ -819,10 +820,10 @@<br>
 <br>
         /* FIXME:  This is a Pegasus work around. Pegsus loses the <br>
namespace<br>
                    when an ObjectPath is pulled from an instance */<br>
-        if (STREQ(NAMESPACE(ref), ""))<br>
-                CMSetNameSpace(ref, "root/virt");<br>
+        if (STREQ(NAMESPACE(_ref), ""))<br>
+                CMSetNameSpace(_ref, "root/virt");<br>
 <br>
-        s = get_domain_by_ref(broker, ref, &src_inst);<br>
+        s = get_domain_by_ref(broker, _ref, &src_inst);<br>
         if (s.rc != CMPI_RC_OK || CMIsNullObject(src_inst))<br>
                 goto out;<br>
 <br>
@@ -847,8 +848,8 @@<br>
                 goto out;<br>
         }<br>
 <br>
-        args->ns = strdup(NAMESPACE(ref));<br>
-        args->classname = strdup(CLASSNAME(ref));<br>
+        args->ns = strdup(NAMESPACE(_ref));<br>
+        args->classname = strdup(CLASSNAME(_ref));<br>
         args->_ctx = _ctx;<br>
 <br>
         prefix = class_prefix_name(args->classname);<br>
diff -r 35396e5b8051 -r 7b2e9efc2778 <br>
src/Virt_ResourceAllocationSettingDataIndication.c<br>
--- a/src/Virt_ResourceAllocationSettingDataIndication.c        Tue Dec <br>
14 13:59:51 2010 -0800<br>
+++ b/src/Virt_ResourceAllocationSettingDataIndication.c        Wed Dec <br>
29 17:53:00 2010 -0500<br>
@@ -68,12 +68,13 @@<br>
 <br>
 static CMPIStatus raise_indication(const CMPIBroker *broker,<br>
                                    const CMPIContext *ctx,<br>
+                                   const CMPIObjectPath *ref,<br>
                                    const CMPIInstance *ind)<br>
 {<br>
         struct std_indication_ctx *_ctx = NULL;<br>
         CMPIStatus s = {CMPI_RC_OK, NULL};<br>
         struct ind_args *args = NULL;<br>
-        CMPIObjectPath *ref = NULL;<br>
+        CMPIObjectPath *_ref = NULL;<br>
 <br>
         _ctx = malloc(sizeof(struct std_indication_ctx));<br>
         if (_ctx == NULL) {<br>
@@ -96,8 +97,8 @@<br>
                 goto out;<br>
         }<br>
 <br>
-        ref = CMGetObjectPath(ind, &s);<br>
-        if (ref == NULL) {<br>
+        _ref = CMGetObjectPath(ind, &s);<br>
+        if (_ref == NULL) {<br>
                 cu_statusf(broker, &s,<br>
                            CMPI_RC_ERR_FAILED,<br>
                            "Got a null object path");<br>
@@ -108,14 +109,14 @@<br>
                    when an ObjectPath is pulled from an instance */<br>
 <br>
 <br>
-        CMSetNameSpace(ref, "root/virt");<br>
-        args->ns = strdup(NAMESPACE(ref));<br>
-        args->classname = strdup(CLASSNAME(ref));<br>
+        CMSetNameSpace(_ref, "root/virt");<br>
+        args->ns = strdup(NAMESPACE(_ref));<br>
+        args->classname = strdup(CLASSNAME(_ref));<br>
         args->_ctx = _ctx;<br>
 <br>
         /* This is a workaround for Pegasus, it loses its objectpath by<br>
            CMGetObjectPath. So set it back. */<br>
-        ind->ft->setObjectPath((CMPIInstance *)ind, ref);<br>
+        ind->ft->setObjectPath((CMPIInstance *)ind, _ref);<br>
 <br>
         s = stdi_deliver(broker, ctx, args, (CMPIInstance *)ind);<br>
         if (s.rc == CMPI_RC_OK) {<br>
<br>
-- <br>
Chip Vincent<br>
Open Virtualization, Linux Technology Center<br>
IBM Systems & Technology Group<br>
phone: 919-254-4482, T/L 444-4482<br>
email: cvincent@us.ibm.com<br>
<br>
_______________________________________________<br>
Libvirt-cim mailing list<br>
Libvirt-cim@redhat.com<br>
</tt><tt><a href="https://www.redhat.com/mailman/listinfo/libvirt-cim">https://www.redhat.com/mailman/listinfo/libvirt-cim</a></tt><tt><br>
</tt><br>
</body></html>