Files
libcoap/src/coap_event.c
T
Jon Shallow 0aeb0d6247 doxygen: Tidy up Modules and Files tab information
doc/module_api_wrap.h: New

Used to split modules into Application and Internal only.

include/coap/*.h:

Module (@defgroup) description put into group application_api or internal_api
as appropriate.

Add in @file information if missing.

src/*.c

Add in @file information.
2021-09-30 16:59:04 +01:00

39 lines
816 B
C

/*
* coap_event.c -- libcoap Event API
*
* Copyright (C) 2016 Olaf Bergmann <bergmann@tzi.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*
* This file is part of the CoAP library libcoap. Please see README for terms
* of use.
*/
/**
* @file coap_event.c
* @brief Event handling
*/
#include "coap3/coap_internal.h"
/*
* This replaces coap_set_event_handler() so that handler registration is
* consistent in the naming.
*/
void
coap_register_event_handler(coap_context_t *context,
coap_event_handler_t hnd) {
context->handle_event = hnd;
}
void
coap_set_event_handler(coap_context_t *context,
coap_event_handler_t hnd) {
context->handle_event = hnd;
}
void
coap_clear_event_handler(coap_context_t *context) {
context->handle_event = NULL;
}