mirror of
https://github.com/espressif/openthread.git
synced 2026-11-09 07:50:55 +00:00
[api] add return code to otCoapHeaderSetPayloadMarker (#3004)
This commit is contained in:
@@ -371,7 +371,7 @@ otError otCoapHeaderAppendUriQueryOption(otCoapHeader *aHeader, const char *aUri
|
||||
* @retval OT_ERROR_NO_BUFS Header Payload Marker exceeds the buffer size.
|
||||
*
|
||||
*/
|
||||
void otCoapHeaderSetPayloadMarker(otCoapHeader *aHeader);
|
||||
otError otCoapHeaderSetPayloadMarker(otCoapHeader *aHeader);
|
||||
|
||||
/**
|
||||
* This function sets the Message ID value.
|
||||
|
||||
@@ -93,9 +93,9 @@ otError otCoapHeaderAppendUriQueryOption(otCoapHeader *aHeader, const char *aUri
|
||||
return static_cast<Coap::Header *>(aHeader)->AppendUriQueryOption(aUriQuery);
|
||||
}
|
||||
|
||||
void otCoapHeaderSetPayloadMarker(otCoapHeader *aHeader)
|
||||
otError otCoapHeaderSetPayloadMarker(otCoapHeader *aHeader)
|
||||
{
|
||||
static_cast<Coap::Header *>(aHeader)->SetPayloadMarker();
|
||||
return static_cast<Coap::Header *>(aHeader)->SetPayloadMarker();
|
||||
}
|
||||
|
||||
void otCoapHeaderSetMessageId(otCoapHeader *aHeader, uint16_t aMessageId)
|
||||
|
||||
Reference in New Issue
Block a user