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
coap_subscription_init(coap_subscription_t * s)20 coap_subscription_init(coap_subscription_t *s) {
21   assert(s);
22   memset(s, 0, sizeof(coap_subscription_t));
23 }
24