# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1218724102 25200
# Node ID 86d7161daef682ba869fbae74133cfd811f1d306
# Parent 9c6a7cfd8c0bd78bef65b60fad37b0873582d09d
Update VirtualSystemManagementCapabilities to show Add/Remove resources
as supported for synchronous calls.
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 9c6a7cfd8c0b -r 86d7161daef6 src/Virt_VirtualSystemManagementCapabilities.c
--- a/src/Virt_VirtualSystemManagementCapabilities.c Fri Aug 08 15:21:28 2008 -0700
+++ b/src/Virt_VirtualSystemManagementCapabilities.c Thu Aug 14 07:28:22 2008 -0700
@@ -58,21 +58,27 @@
CMSetProperty(inst, "InstanceID",
(CMPIValue *)"ManagementCapabilities", CMPI_chars);
- array = CMNewArray(broker, 4, CMPI_uint16, &s);
+ array = CMNewArray(broker, 6, CMPI_uint16, &s);
if ((s.rc != CMPI_RC_OK) || CMIsNullObject(array))
goto out;
-
- element = (uint16_t)DEFINE_SYSTEM;
+
+ element = (uint16_t)ADD_RESOURCES;
CMSetArrayElementAt(array, 0, &element, CMPI_uint16);
- element = (uint16_t)DESTROY_SYSTEM;
+ element = (uint16_t)DEFINE_SYSTEM;
CMSetArrayElementAt(array, 1, &element, CMPI_uint16);
- element = (uint16_t)MOD_RESOURCE_SETTINGS;
+ element = (uint16_t)DESTROY_SYSTEM;
CMSetArrayElementAt(array, 2, &element, CMPI_uint16);
+ element = (uint16_t)MOD_RESOURCE_SETTINGS;
+ CMSetArrayElementAt(array, 3, &element, CMPI_uint16);
+
element = (uint16_t)MOD_SYS_SETTINGS;
- CMSetArrayElementAt(array, 3, &element, CMPI_uint16);
+ CMSetArrayElementAt(array, 4, &element, CMPI_uint16);
+
+ element = (uint16_t)RM_RESOURCES;
+ CMSetArrayElementAt(array, 5, &element, CMPI_uint16);
CMSetProperty(inst, "SynchronousMethodsSupported",
(CMPIValue *)&array, CMPI_uint16A);
Show replies by date
Dan Smith wrote:
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1218724102 25200
# Node ID 86d7161daef682ba869fbae74133cfd811f1d306
# Parent 9c6a7cfd8c0bd78bef65b60fad37b0873582d09d
Update VirtualSystemManagementCapabilities to show Add/Remove resources
as supported for synchronous calls.
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
+1
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com