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
9#pragma once
10
22
23#include "net/cord/config.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
34extern char cord_common_ep[];
35
40
44static inline const char *cord_common_get_ep(void)
45{
46 return (const char *)cord_common_ep;
47}
48
61
62#ifdef __cplusplus
63}
64#endif
65
static const char * cord_common_get_ep(void)
Get the local endpoint identifier.
Definition common.h:44
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:221
(Default) configuration values for CoRE RD endpoints and lookup clients