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-03-08 13:03:18 +01:00
1 parent 6521a5d516
commit 5825e63da4
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.