mirror of
https://github.com/espressif/openthread.git
synced 2026-09-21 08:27:33 +00:00
Fix CoAP API function name mismatch (#1317)
Refractor in implementation: * otCoapGetCurrentOption => otCoapHeaderGetCurrentOption * otCoapGetNextOption => otCoapHeaderGetNextOption
This commit is contained in:
@@ -1896,12 +1896,12 @@ const uint8_t *otCoapHeaderGetToken(const otCoapHeader *aHeader)
|
||||
return static_cast<const Coap::Header *>(aHeader)->GetToken();
|
||||
}
|
||||
|
||||
const otCoapOption *otCoapGetCurrentOption(const otCoapHeader *aHeader)
|
||||
const otCoapOption *otCoapHeaderGetCurrentOption(const otCoapHeader *aHeader)
|
||||
{
|
||||
return static_cast<const otCoapOption *>(static_cast<const Coap::Header *>(aHeader)->GetCurrentOption());
|
||||
}
|
||||
|
||||
const otCoapOption *otCoapGetNextOption(otCoapHeader *aHeader)
|
||||
const otCoapOption *otCoapHeaderGetNextOption(otCoapHeader *aHeader)
|
||||
{
|
||||
return static_cast<const otCoapOption *>(static_cast<Coap::Header *>(aHeader)->GetNextOption());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user