version 1.4, 2003/11/21 18:37:30
|
version 1.4.6.3, 2004/03/14 22:27:02
|
|
|
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#define CMPI_VER_86 1 |
#include "CMPI_Version.h" |
| |
#include "CMPI_ObjectPath.h" | #include "CMPI_ObjectPath.h" |
| |
|
|
ref->getClassName()); | ref->getClassName()); |
Array<CIMKeyBinding> kb=ref->getKeyBindings(); | Array<CIMKeyBinding> kb=ref->getKeyBindings(); |
nRef->setKeyBindings(kb); | nRef->setKeyBindings(kb); |
CMPIObjectPath* neRef=(CMPIObjectPath*)new CMPI_Object(nRef,CMPI_ObjectPath_Ftab); |
CMPI_Object* obj=new CMPI_Object(nRef); |
|
obj->unlink(); |
|
CMPIObjectPath* neRef=(CMPIObjectPath*)obj; |
if (rc) CMSetStatus(rc,CMPI_RC_OK); | if (rc) CMSetStatus(rc,CMPI_RC_OK); |
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(); |