mirror of
https://github.com/espressif/openthread.git
synced 2026-08-15 15:17:46 +00:00
[coap] change AddResource() to return void (#4942)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user