Loading...
Searching...
No Matches
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
27extern "C" {
28#endif
29
35extern char cord_common_ep[];
36
41
45static 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 */
static const char * cord_common_get_ep(void)
Get the local endpoint identifier.
Definition common.h:45
void cord_common_init(void)
Generate unique endpoint identifier (ep)
int cord_common_add_qstring(coap_pkt_t *pkt)
Add selected query string options to a gcoap request.
char cord_common_ep[]
Export the local endpoint identifier.
CoAP PDU parsing context structure.
Definition nanocoap.h:232
(Default) configuration values for CoRE RD endpoints and lookup clients