+static CMPIStatus _enum_rasds(const CMPIBroker *broker,
+ const CMPIObjectPath *reference,
+ const virDomainPtr dom,
+ const uint16_t type,
const char **properties,
struct inst_list *list)
{
+ CMPIStatus s;
+
+ if (type == CIM_RES_TYPE_ALL) {
+ s = _get_rasds(broker, reference, dom,
+ CIM_RES_TYPE_PROC,
+ properties, list);
+ s = _get_rasds(broker, reference, dom,
+ CIM_RES_TYPE_MEM,
+ properties, list);
+ s = _get_rasds(broker, reference, dom,
+ CIM_RES_TYPE_NET,
+ properties, list);
+ s = _get_rasds(broker, reference, dom,
+ CIM_RES_TYPE_DISK,
+ properties, list);
+ }
Probably not worth worrying about, but wondering if this could be
condensed some..
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com