[coap] change AddResource() to return void (#4942)

This commit is contained in:
Jonathan Hui
2020-05-11 14:07:25 -07:00
parent ccaefa3e39
commit af207d18d7
24 changed files with 53 additions and 62 deletions
+1 -4
View File
@@ -850,11 +850,8 @@ otError otCoapStop(otInstance *aInstance);
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[in] aResource A pointer to the resource.
*
* @retval OT_ERROR_NONE Successfully added @p aResource.
* @retval OT_ERROR_ALREADY The @p aResource was already added.
*
*/
otError otCoapAddResource(otInstance *aInstance, otCoapResource *aResource);
void otCoapAddResource(otInstance *aInstance, otCoapResource *aResource);
/**
* This function removes a resource from the CoAP server.
+1 -4
View File
@@ -257,11 +257,8 @@ otError otCoapSecureSendRequest(otInstance * aInstance,
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[in] aResource A pointer to the resource.
*
* @retval OT_ERROR_NONE Successfully added @p aResource.
* @retval OT_ERROR_ALREADY The @p aResource was already added.
*
*/
otError otCoapSecureAddResource(otInstance *aInstance, otCoapResource *aResource);
void otCoapSecureAddResource(otInstance *aInstance, otCoapResource *aResource);
/**
* This function removes a resource from the CoAP Secure server.