Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
coap_link_format.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
13#ifndef ZEPHYR_INCLUDE_NET_COAP_LINK_FORMAT_H_
14#define ZEPHYR_INCLUDE_NET_COAP_LINK_FORMAT_H_
15
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29#define COAP_WELL_KNOWN_CORE_PATH \
30 ((const char * const[]) { ".well-known", "core", NULL })
31
33 struct coap_packet *request,
34 struct coap_packet *response,
35 uint8_t *data, uint16_t len);
36
43 const char * const *attributes;
44 void *user_data;
45};
46
47#ifdef __cplusplus
48}
49#endif
50
55#endif /* ZEPHYR_INCLUDE_NET_COAP_LINK_FORMAT_H_ */
int coap_well_known_core_get(struct coap_resource *resource, struct coap_packet *request, struct coap_packet *response, uint8_t *data, uint16_t len)
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
__UINT16_TYPE__ uint16_t
Definition: stdint.h:59
Definition: coap_link_format.h:42
void * user_data
Definition: coap_link_format.h:44
const char *const * attributes
Definition: coap_link_format.h:43
Representation of a CoAP Packet.
Definition: coap.h:227
Description of CoAP resource.
Definition: coap.h:204
static fdata_t data[2]
Definition: test_fifo_contexts.c:15