Pass message info in CoAP response handler. (#1059)

This commit is contained in:
Robert Lubos
2016-12-09 09:00:50 -08:00
committed by Jonathan Hui
parent 4ddb76d366
commit d095cf884e
11 changed files with 93 additions and 59 deletions
+6 -5
View File
@@ -129,10 +129,11 @@ typedef struct otCoapHeader
/**
* This function pointer is called when a CoAP response is received or on the request timeout.
*
* @param[in] aContext A pointer to application-specific context.
* @param[in[ aHeader A pointer to the received CoAP header. NULL if no response was received.
* @param[in] aMessage A pointer to the message buffer containing the response. NULL if no response was received.
* @param[in] aResult A result of the CoAP transaction.
* @param[in] aContext A pointer to application-specific context.
* @param[in[ aHeader A pointer to the received CoAP header. NULL if no response was received.
* @param[in] aMessage A pointer to the message buffer containing the response. NULL if no response was received.
* @param[in] aMessageInfo A pointer to the message info for @p aMessage. NULL if no response was received.
* @param[in] aResult A result of the CoAP transaction.
*
* @retval kThreadError_None A response was received successfully.
* @retval kThreadError_Abort A CoAP transaction was reseted by peer.
@@ -140,7 +141,7 @@ typedef struct otCoapHeader
*
*/
typedef void (*otCoapResponseHandler)(void *aContext, otCoapHeader *aHeader, otMessage aMessage,
ThreadError aResult);
const otMessageInfo *aMessageInfo, ThreadError aResult);
/**
* This function pointer is called when a CoAP request with a given Uri-Path is received.