version 1.28.4.14, 2009/11/12 15:16:19
|
version 1.28.4.15, 2009/12/10 11:32:45
|
|
|
| |
| |
// Check if the namespace is at all different from the one already set | // Check if the namespace is at all different from the one already set |
Uint64 prevNamespaceL; |
Uint32 prevNamespaceL; |
const char* prevNamespace = ref->getNameSpace_l(prevNamespaceL); | const char* prevNamespace = ref->getNameSpace_l(prevNamespaceL); |
Uint64 nsL=strlen(ns); |
Uint32 nsL=strlen(ns); |
| |
if (prevNamespace && | if (prevNamespace && |
System::strncasecmp(prevNamespace,prevNamespaceL,ns,nsL)) | System::strncasecmp(prevNamespace,prevNamespaceL,ns,nsL)) |
|
|
CMSetStatus(rc, CMPI_RC_ERR_INVALID_HANDLE); | CMSetStatus(rc, CMPI_RC_ERR_INVALID_HANDLE); |
return NULL; | return NULL; |
} | } |
Uint64 len=0; |
Uint32 len=0; |
const char *ns = ref->getNameSpace_l(len); | const char *ns = ref->getNameSpace_l(len); |
CMPIString *eNs = string2CMPIString(ns,len); | CMPIString *eNs = string2CMPIString(ns,len); |
CMSetStatus(rc, CMPI_RC_OK); | CMSetStatus(rc, CMPI_RC_OK); |
|
|
CMSetStatus(rc, CMPI_RC_ERR_INVALID_HANDLE); | CMSetStatus(rc, CMPI_RC_ERR_INVALID_HANDLE); |
return NULL; | return NULL; |
} | } |
Uint64 len=0; |
Uint32 len=0; |
const char *hn = ref->getHostName_l(len); | const char *hn = ref->getHostName_l(len); |
CMPIString *eHn = string2CMPIString(hn,len); | CMPIString *eHn = string2CMPIString(hn,len); |
CMSetStatus(rc, CMPI_RC_OK); | CMSetStatus(rc, CMPI_RC_OK); |
|
|
} | } |
| |
// Check if the classname is at all different from the one already set | // Check if the classname is at all different from the one already set |
Uint64 prevClsL; |
Uint32 prevClsL; |
const char* prevCls = ref->getClassName_l(prevClsL); | const char* prevCls = ref->getClassName_l(prevClsL); |
Uint64 cnL=strlen(cn); |
Uint32 cnL=strlen(cn); |
| |
if (prevCls && System::strncasecmp(prevCls,prevClsL,cn,cnL)) | if (prevCls && System::strncasecmp(prevCls,prevClsL,cn,cnL)) |
{ | { |
|
|
CMSetStatus(rc, CMPI_RC_ERR_INVALID_HANDLE); | CMSetStatus(rc, CMPI_RC_ERR_INVALID_HANDLE); |
return NULL; | return NULL; |
} | } |
Uint64 len=0; |
Uint32 len=0; |
const char* cn = ref->getClassName_l(len); | const char* cn = ref->getClassName_l(len); |
CMPIString* eCn = string2CMPIString(cn,len); | CMPIString* eCn = string2CMPIString(cn,len); |
CMSetStatus(rc, CMPI_RC_OK); | CMSetStatus(rc, CMPI_RC_OK); |