common.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017,2018 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
21 #ifndef NET_CORD_COMMON_H
22 #define NET_CORD_COMMON_H
23 
24 #include "net/cord/config.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
35 extern char cord_common_ep[];
36 
40 void cord_common_init(void);
41 
45 static inline const char *cord_common_get_ep(void)
46 {
47  return (const char *)cord_common_ep;
48 }
49 
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif /* NET_CORD_COMMON_H */
68 
cord_common_init
void cord_common_init(void)
Generate unique endpoint identifier (ep)
cord_common_get_ep
static const char * cord_common_get_ep(void)
Get the local endpoint identifier.
Definition: common.h:45
cord_common_ep
char cord_common_ep[]
Export the local endpoint identifier.
cord_common_add_qstring
int cord_common_add_qstring(coap_pkt_t *pkt)
Add selected query string options to a gcoap request.
coap_pkt_t
CoAP PDU parsing context structure.
Definition: nanocoap.h:185
config.h
(Default) configuration values for CoRE RD endpoints and lookup clients