[Libvirt-cim] [PATCH] (#2) Add CMSetObjectPath macro

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Mon Jul 21 16:25:19 UTC 2008


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1216656146 25200
# Node ID 6e310fe7bde3d3a43740b1d2a155c8503b25bcc7
# Parent  ec88dc805bcdc63d30b866e3e527208fa684e274
(#2) Add CMSetObjectPath macro.

This is a work around.  SFCB currently doesn't implement CMSetObjectPath, so the VSMS provider seg faults.

Updates:
  -Place CMSetObjectPath define in misc_util.h

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

diff -r ec88dc805bcd -r 6e310fe7bde3 libxkutil/misc_util.h
--- a/libxkutil/misc_util.h	Wed Jul 09 13:48:14 2008 -0700
+++ b/libxkutil/misc_util.h	Mon Jul 21 09:02:26 2008 -0700
@@ -33,6 +33,12 @@
 
 #include <libcmpiutil/libcmpiutil.h>
 #include <libcmpiutil/std_association.h>
+
+#undef CMSetObjectPath
+#define CMSetObjectPath(i,p) do { \
+        if (i->ft->setObjectPath != NULL)  \
+          i->ft->setObjectPath(i, p); \
+        } while (0);
 
 /* Check if the provider is reponsible for the given class:
  * e.g. Xen is running on the system and KVM_... is asked for,




More information about the Libvirt-cim mailing list