Loading...
Searching...
No Matches
common.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017-2018 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#include "net/cord/config.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
31extern char cord_common_ep[];
32
37
41static inline const char *cord_common_get_ep(void)
42{
43 return (const char *)cord_common_ep;
44}
45
58
59#ifdef __cplusplus
60}
61#endif
62
static const char * cord_common_get_ep(void)
Get the local endpoint identifier.
Definition common.h:41
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:226
(Default) configuration values for CoRE RD endpoints and lookup clients