# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1237328307 25200
# Node ID 727ee79a93e91a79b01335733853fb2f9d0c4624
# Parent 434041f12428edfba01127b483ba56b3328e1d79
Setting SynchMethods of RPCC accordingly.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 434041f12428 -r 727ee79a93e9 src/Virt_ResourcePoolConfigurationCapabilities.c
--- a/src/Virt_ResourcePoolConfigurationCapabilities.c Tue Mar 17 18:13:23 2009 -0700
+++ b/src/Virt_ResourcePoolConfigurationCapabilities.c Tue Mar 17 15:18:27 2009 -0700
@@ -54,6 +54,8 @@
CMPIStatus s = {CMPI_RC_OK, NULL};
CMPIInstance *inst = NULL;
virConnectPtr conn = NULL;
+ CMPIArray *array;
+ uint32_t val;
conn = connect_by_classname(_BROKER, CLASSNAME(reference), &s);
if (conn == NULL) {
@@ -76,7 +78,18 @@
CMSetProperty(inst, "InstanceID",
(CMPIValue *)"RPCC", CMPI_chars);
- /* No method currently supported */
+ array = CMNewArray(_BROKER, 2, CMPI_uint32, &s);
+ if (s.rc != CMPI_RC_OK)
+ return s;
+
+ val = CreateChildResourcePool;
+ CMSetArrayElementAt(array, 0, (CMPIValue *)&val, CMPI_uint32);
+
+ val = DeleteResourcePool;
+ CMSetArrayElementAt(array, 1, (CMPIValue *)&val, CMPI_uint32);
+
+ CMSetProperty(inst, "SynchronousMethodsSupported",
+ (CMPIValue *)&array, CMPI_uint32A);
if (is_get_inst) {
s = cu_validate_ref(_BROKER, reference, inst);
_______________________________________________
Libvirt-cim mailing list
Libvirt-cim(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-cim
--
Richard Maciel, MSc
IBM Linux Technology Center
rmaciel(a)linux.vnet.ibm.com