net.h: added missing prototypes

The prototypes for coap_attach_endpoint() and coap_detach_endpoint()
were missing from this header file.
This commit is contained in:
Olaf Bergmann committed 2016-04-08 15:14:20 +02:00
1 parent 9a538f43f4
commit c031e99dfc
1 file changed
+15
+15
View File
@@ -126,6 +126,21 @@ typedef struct coap_context_t {
} coap_context_t;
/**
* Attach given @p endpoint to CoAP context @p ctx.
*
* @param ctx The CoAP context where @p endpoint will be attached.
* @param endpoint The CoAP endpoint to attach.
*/
void coap_attach_endpoint(coap_context_t *ctx, coap_endpoint_t *endpoint);
/**
* Detach @p endpoint from its CoAP context.
*
* @param endpoint The CoAP endpoint to detach.
*/
void coap_detach_endpoint(coap_endpoint_t *endpoint);
/**
* Registers a new message handler that is called whenever a response was
* received that matches an ongoing transaction.