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
22
extern
"C"
{
23
#endif
24
29
#define COAP_WELL_KNOWN_CORE_PATH \
30
((const char * const[]) { ".well-known"
, "core", NULL })
31
32
int
coap_well_known_core_get
(
struct
coap_resource
*resource,
33
struct
coap_packet
*request,
34
struct
coap_packet
*response,
35
uint8_t
*
data
,
uint16_t
len);
36
42
struct
coap_core_metadata
{
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_ */
coap_well_known_core_get
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_t
__UINT8_TYPE__ uint8_t
Definition:
stdint.h:58
uint16_t
__UINT16_TYPE__ uint16_t
Definition:
stdint.h:59
coap_core_metadata
Definition:
coap_link_format.h:42
coap_core_metadata::user_data
void * user_data
Definition:
coap_link_format.h:44
coap_core_metadata::attributes
const char *const * attributes
Definition:
coap_link_format.h:43
coap_packet
Representation of a CoAP Packet.
Definition:
coap.h:227
coap_resource
Description of CoAP resource.
Definition:
coap.h:204
data
static fdata_t data[2]
Definition:
test_fifo_contexts.c:15
include
net
coap_link_format.h
Generated on Sun Oct 9 2022 09:21:56 for Zephyr API Documentation by
1.9.4