libcoap
4.2.0
subscribe.c
Go to the documentation of this file.
1
/* subscribe.c -- subscription handling for CoAP
2
* see draft-ietf-coap-observe-16
3
*
4
* Copyright (C) 2010--2013,2015 Olaf Bergmann <bergmann@tzi.org>
5
*
6
* This file is part of the CoAP library libcoap. Please see
7
* README for terms of use.
8
*/
9
10
#include "coap_config.h"
11
#include "
coap.h
"
12
13
#if defined(HAVE_ASSERT_H) && !defined(assert)
14
# include <assert.h>
15
#endif
16
17
#include "
subscribe.h
"
18
19
void
20
coap_subscription_init
(
coap_subscription_t
*s) {
21
assert
(s);
22
memset(s, 0,
sizeof
(
coap_subscription_t
));
23
}
assert
#define assert(...)
Definition:
mem.c:18
coap_subscription_t
Subscriber information.
Definition:
subscribe.h:56
subscribe.h
coap.h
coap_subscription_init
void coap_subscription_init(coap_subscription_t *s)
Definition:
subscribe.c:20
src
subscribe.c
Generated on Sat Mar 2 2019 11:59:52 for libcoap by
1.8.13