mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-02 16:05:50 +03:00
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:
1 parent
9a538f43f4
commit
c031e99dfc
1 file changed
+15
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user