1 /*
2  * Copyright (c) 2021 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef LWM2M_RW_LINK_FORMAT_H_
8 #define LWM2M_RW_LINK_FORMAT_H_
9 
10 #include "lwm2m_object.h"
11 
12 enum link_format_mode {
13 	LINK_FORMAT_MODE_DISCOVERY,
14 	LINK_FORMAT_MODE_BOOTSTRAP_DISCOVERY,
15 	LINK_FORMAT_MODE_REGISTER,
16 };
17 
18 struct link_format_out_formatter_data {
19 	uint8_t request_level;
20 	uint8_t mode;
21 	bool is_first : 1;
22 };
23 
24 extern const struct lwm2m_writer link_format_writer;
25 
26 int do_discover_op_link_format(struct lwm2m_message *msg, bool is_bootstrap);
27 int do_register_op_link_format(struct lwm2m_message *msg);
28 
29 #endif /* LWM2M_RW_LINK_FORMAT_H_ */
30