mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-12 11:40:39 +03:00
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.
26 lines
580 B
C
26 lines
580 B
C
/* subscribe.c -- subscription handling for CoAP
|
|
* see draft-ietf-coap-observe-16
|
|
*
|
|
* Copyright (C) 2010--2019 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 subscribe.c
|
|
* @brief Subscription handling functions
|
|
*/
|
|
|
|
#include "coap3/coap_internal.h"
|
|
|
|
#if COAP_SERVER_SUPPORT
|
|
void
|
|
coap_subscription_init(coap_subscription_t *s) {
|
|
assert(s);
|
|
memset(s, 0, sizeof(coap_subscription_t));
|
|
}
|
|
#endif /* COAP_SERVER_SUPPORT */
|