1 /*
2  * Copyright (c) 2021 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef LWM2M_RW_SENML_JSON_H_
8 #define LWM2M_RW_SENML_JSON_H_
9 
10 #include "lwm2m_object.h"
11 
12 extern const struct lwm2m_writer senml_json_writer;
13 extern const struct lwm2m_reader senml_json_reader;
14 
15 /* General Read single Path operation */
16 int do_read_op_senml_json(struct lwm2m_message *msg);
17 /* General Write single Path operation */
18 int do_write_op_senml_json(struct lwm2m_message *msg);
19 
20 /* Send operation builder */
21 int do_send_op_senml_json(struct lwm2m_message *msg, sys_slist_t *lwm2m_path_list);
22 /* API for call composite READ from engine */
23 int do_composite_read_op_senml_json(struct lwm2m_message *msg);
24 /* API for call composite READ for parsed path list from engine  */
25 int do_composite_read_op_for_parsed_list_senml_json(struct lwm2m_message *msg,
26 						    sys_slist_t *path_list);
27 /* API for call composite READ path list from engine */
28 int do_composite_observe_parse_path_senml_json(struct lwm2m_message *msg,
29 					       sys_slist_t *lwm2m_path_list,
30 					       sys_slist_t *lwm2m_path_free_list);
31 
32 #endif /* LWM2M_RW_SENML_JSON_H_ */
33