(file) Return to CMPI_ObjectPath.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ProviderManager2 / CMPI

Diff for /pegasus/src/Pegasus/ProviderManager2/CMPI/CMPI_ObjectPath.cpp between version 1.4 and 1.4.6.3

version 1.4, 2003/11/21 18:37:30 version 1.4.6.3, 2004/03/14 22:27:02
Line 29 
Line 29 
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #define CMPI_VER_86 1  #include "CMPI_Version.h"
  
 #include "CMPI_ObjectPath.h" #include "CMPI_ObjectPath.h"
  
Line 62 
Line 62 
                                           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);
Line 81 
Line 83 
    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);
Line 95 
Line 97 
    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);
 } }
  
Line 116 
Line 120 
    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();
Line 132 
Line 136 
    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();


Legend:
Removed from v.1.4  
changed lines
  Added in v.1.4.6.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2