zephyr/subsys/net/lib/lwm2m/lwm2m_pull_context.h
Gerard Marull-Paretas 5113c1418d subsystems: migrate includes to <zephyr/...>
In order to bring consistency in-tree, migrate all subsystems code to
the new prefix <zephyr/...>. Note that the conversion has been scripted,
refer to zephyrproject-rtos#45388 for more details.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-05-09 12:07:35 +02:00

29 lines
750 B
C

/*
* Copyright (c) 2017 Linaro Limited
* Copyright (c) 2018-2019 Foundries.io
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <zephyr/net/lwm2m.h>
#include <zephyr/sys_clock.h>
#define LWM2M_PACKAGE_URI_LEN CONFIG_LWM2M_SWMGMT_PACKAGE_URI_LEN
struct requesting_object {
uint8_t obj_inst_id;
bool is_firmware_uri;
void (*result_cb)(uint16_t obj_inst_id, int error_code);
lwm2m_engine_set_data_cb_t write_cb;
int (*verify_cb)(void);
};
/*
* The pull context is also used in the LWM2M's Software Management object.
* This means that the transfer needs to know if it's used for firmware or
* something else.
*/
int lwm2m_pull_context_start_transfer(char *uri, struct requesting_object req, k_timeout_t timeout);