CAResult_t CACreateRemoteEndpoint(const CAURI_t uri, CARemoteEndpoint_t** remoteEndpoint) { OIC_LOG_V(DEBUG, TAG, "CACreateRemoteEndpoint"); CARemoteEndpoint_t* remote = CACreateRemoteEndpointUriInternal(uri); *remoteEndpoint = remote; if (remote == NULL) return CA_STATUS_FAILED; return CA_STATUS_OK; }
CAResult_t CACreateRemoteEndpoint(const CAURI_t uri, const CATransportType_t transportType, CARemoteEndpoint_t **remoteEndpoint) { OIC_LOG(DEBUG, TAG, "CACreateRemoteEndpoint"); if(!g_isInitialized) { return CA_STATUS_NOT_INITIALIZED; } CARemoteEndpoint_t *remote = CACreateRemoteEndpointUriInternal(uri, transportType); if (remote == NULL) { OIC_LOG(DEBUG, TAG, "remote is NULL!"); return CA_STATUS_FAILED; } *remoteEndpoint = remote; return CA_STATUS_OK; }