Dan Smith wrote:
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1196711744 28800
# Node ID 143c73b947bd26659f5a8ef94e471a0a85e526f5
# Parent 7fd4f296b8cc328a7492a24c731d8722bc485452
Add VirtualSystemMigrationCapabilities
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
+
+static CMPIStatus set_method_properties(const CMPIBroker *broker,
+ CMPIInstance *inst)
+{
+ CMPIArray *array;
+ CMPIStatus s;
+ uint16_t val;
+
+ array = CMNewArray(broker, 4, CMPI_INTEGER, &s);
+ if (s.rc != CMPI_RC_OK)
+ return s;
+
+ val = SVPC_MIG_MVSTH;
+ CMSetArrayElementAt(array, 0, (CMPIValue *)&val, CMPI_uint16);
+
+ CMSetProperty(inst, "AsynchronousMethodsSupported",
+ (CMPIValue *)&array, CMPI_ARRAY);
+
+ CMSetStatus(&s, CMPI_RC_OK);
+
+ return s;
+}
Just curious, why do you make an array of four elements but only put one
item in it? Or am I just misunderstanding what's going on there?
--
-Jay