# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1249595936 25200
# Node ID fc589363fb55e780942d8431f9c3559d766dcb69
# Parent 274a3daaed7a8f64d7e070ef77a59bd42951922b
Add initial support for CreateResourceInPool() method
This is just the stub. Additional support to follow.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 274a3daaed7a -r fc589363fb55 src/Virt_ResourcePoolConfigurationService.c
--- a/src/Virt_ResourcePoolConfigurationService.c Tue Jun 16 14:25:50 2009 -0700
+++ b/src/Virt_ResourcePoolConfigurationService.c Thu Aug 06 14:58:56 2009 -0700
@@ -664,6 +664,25 @@
return s;
}
+static CMPIStatus create_resource_in_pool(CMPIMethodMI *self,
+ const CMPIContext *context,
+ const CMPIResult *results,
+ const CMPIObjectPath *reference,
+ const CMPIArgs *argsin,
+ CMPIArgs *argsout)
+{
+ uint32_t rc = CIM_SVPC_RETURN_FAILED;
+ CMPIStatus s = {CMPI_RC_OK, NULL};
+
+ CU_DEBUG("CreateResourceInPool");
+
+ if (s.rc == CMPI_RC_OK)
+ rc = CIM_SVPC_RETURN_COMPLETED;
+ CMReturnData(results, &rc, CMPI_uint32);
+
+ return s;
+}
+
static CMPIStatus dummy_handler(CMPIMethodMI *self,
const CMPIContext *context,
const CMPIResult *results,
@@ -710,12 +729,22 @@
}
};
+static struct method_handler CreateResourceInPool = {
+ .name = "CreateResourceInPool",
+ .handler = create_resource_in_pool,
+ .args = {{"Settings", CMPI_instance, true},
+ {"Pool", CMPI_ref, true},
+ ARG_END
+ }
+};
+
static struct method_handler *my_handlers[] = {
&CreateResourcePool,
&CreateChildResourcePool,
&AddResourcesToResourcePool,
&RemoveResourcesFromResourcePool,
&DeleteResourcePool,
+ &CreateResourceInPool,
NULL,
};