From c031e99dfca85086bc4bca73eb18483d88de25f2 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Tue, 8 Mar 2016 13:03:18 +0100 Subject: [PATCH] net.h: added missing prototypes The prototypes for coap_attach_endpoint() and coap_detach_endpoint() were missing from this header file. --- include/coap/net.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/coap/net.h b/include/coap/net.h index 4c8e595f..6170620d 100644 --- a/include/coap/net.h +++ b/include/coap/net.h @@ -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.