version 1.5, 2004/01/27 13:48:11
|
version 1.6, 2004/02/26 16:41:53
|
|
|
return neRef; | return neRef; |
} | } |
| |
static CMPIStatus refSetNameSpace(CMPIObjectPath* eRef, char* ns) { |
static CMPIStatus refSetNameSpace(CMPIObjectPath* eRef, const char *ns) { |
CIMObjectPath* ref=(CIMObjectPath*)eRef->hdl; | CIMObjectPath* ref=(CIMObjectPath*)eRef->hdl; |
ref->setNameSpace(String(ns)); | ref->setNameSpace(String(ns)); |
CMReturn(CMPI_RC_OK); | CMReturn(CMPI_RC_OK); |
|
|
return eNs; | return eNs; |
} | } |
| |
static CMPIStatus refSetHostname(CMPIObjectPath* eRef, char* hn) { |
static CMPIStatus refSetHostname(CMPIObjectPath* eRef, const char *hn) { |
CIMObjectPath* ref=(CIMObjectPath*)eRef->hdl; | CIMObjectPath* ref=(CIMObjectPath*)eRef->hdl; |
ref->setHost(String(hn)); | ref->setHost(String(hn)); |
CMReturn(CMPI_RC_OK); | CMReturn(CMPI_RC_OK); |
|
|
return eHn; | return eHn; |
} | } |
| |
static CMPIStatus refSetClassName(CMPIObjectPath*,char*) { |
static CMPIStatus refSetClassName(CMPIObjectPath* eRef, const char *cn) { |
|
CIMObjectPath* ref=(CIMObjectPath*)eRef->hdl; |
|
ref->setClassName(String(cn)); |
CMReturn(CMPI_RC_OK); | CMReturn(CMPI_RC_OK); |
} | } |
| |
|
|
return -1; | return -1; |
} | } |
| |
static CMPIStatus refAddKey(CMPIObjectPath* eRef, char* name, |
static CMPIStatus refAddKey(CMPIObjectPath* eRef, const char *name, |
CMPIValue* data, CMPIType type) { | CMPIValue* data, CMPIType type) { |
CIMObjectPath* ref=(CIMObjectPath*)eRef->hdl; | CIMObjectPath* ref=(CIMObjectPath*)eRef->hdl; |
Array<CIMKeyBinding> keyBindings=ref->getKeyBindings(); | Array<CIMKeyBinding> keyBindings=ref->getKeyBindings(); |
|
|
CMReturn(CMPI_RC_OK); | CMReturn(CMPI_RC_OK); |
} | } |
| |
static CMPIData refGetKey(CMPIObjectPath* eRef, char* name, CMPIStatus* rc) { |
static CMPIData refGetKey(CMPIObjectPath* eRef, const char *name, CMPIStatus* rc) { |
CIMObjectPath* ref=(CIMObjectPath*)eRef->hdl; | CIMObjectPath* ref=(CIMObjectPath*)eRef->hdl; |
const CIMName eName(name); | const CIMName eName(name); |
const Array<CIMKeyBinding> &akb=ref->getKeyBindings(); | const Array<CIMKeyBinding> &akb=ref->getKeyBindings(); |