libcoap  4.1.2
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
21  assert(s);
22  memset(s, 0, sizeof(coap_subscription_t));
23 }
#define assert(...)
Definition: mem.c:17
Subscriber information.
Definition: subscribe.h:54
void coap_subscription_init(coap_subscription_t *s)
Definition: subscribe.c:20