version 1.3.2.5, 2004/04/19 15:48:30
|
version 1.3.2.6, 2004/04/22 19:06:19
|
|
|
static CMPIData instGetPropertyAt(CMPIInstance* eInst, CMPICount pos, CMPIString** name, | static CMPIData instGetPropertyAt(CMPIInstance* eInst, CMPICount pos, CMPIString** name, |
CMPIStatus* rc) { | CMPIStatus* rc) { |
CIMInstance* inst=(CIMInstance*)eInst->hdl; | CIMInstance* inst=(CIMInstance*)eInst->hdl; |
CMPIData data={0,0,{0}}; |
CMPIData data={0,CMPI_nullValue,{0}}; |
| |
if (pos>inst->getPropertyCount()) { | if (pos>inst->getPropertyCount()) { |
if (rc) CMSetStatus(rc,CMPI_RC_ERR_NOT_FOUND); | if (rc) CMSetStatus(rc,CMPI_RC_ERR_NOT_FOUND); |
|
|
if (rc) CMSetStatus(rc,CMPI_RC_OK); | if (rc) CMSetStatus(rc,CMPI_RC_OK); |
return instGetPropertyAt(eInst,pos,NULL,rc); | return instGetPropertyAt(eInst,pos,NULL,rc); |
} | } |
CMPIData data={0,0,{0}}; |
CMPIData data={0,CMPI_nullValue,{0}}; |
if (rc) CMSetStatus(rc,CMPI_RC_ERR_NOT_FOUND); | if (rc) CMSetStatus(rc,CMPI_RC_ERR_NOT_FOUND); |
return data; | return data; |
} | } |