[Libvirt-cim] [PATCH 1 of 5] RASD: rename rasds_for_domain to enum_rasds and make it configurable
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Fri Mar 7 18:13:08 UTC 2008
> +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 at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list