[Libvirt-cim] [PATCH 15 of 27] Hack up ElementConformsToProfile to work with the new prototype

Dan Smith danms at us.ibm.com
Mon Nov 19 18:26:07 UTC 2007


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1195499129 28800
# Node ID b58e0f79b99e8c9eaedb7a9c2b4dbd194afc2a8d
# Parent  efeaecd744af8a062b02b5b6614fd80bc7a7cc48
Hack up ElementConformsToProfile to work with the new prototype
...I'll fix it later when I figure out how we're going to do all of the
per-class stuff in profiles.

Signed-off-by: Dan Smith <danms at us.ibm.com>

diff -r efeaecd744af -r b58e0f79b99e src/Virt_ElementConformsToProfile.c
--- a/src/Virt_ElementConformsToProfile.c	Mon Nov 19 11:04:35 2007 -0800
+++ b/src/Virt_ElementConformsToProfile.c	Mon Nov 19 11:05:29 2007 -0800
@@ -58,7 +58,7 @@ static CMPIStatus elem_instances(const C
         CMPIData data ;
         char *classname;
 
-        classname = get_typed_class(profile->provider_name);
+        classname = get_typed_class("Xen", profile->provider_name);
         if (classname == NULL) {
                 CMSetStatusWithChars(_BROKER, &s,
                                      CMPI_RC_ERR_FAILED, 
@@ -176,6 +176,7 @@ static CMPIInstance *make_ref(const CMPI
         CMPIInstance *assoc_inst;
 
         assoc_inst = get_typed_instance(_BROKER,
+                                        "Xen",
                                         "ElementConformsToProfile",
                                         NAMESPACE(source_op));
                 




More information about the Libvirt-cim mailing list