zephyr/subsys/net/lib/lwm2m/lwm2m_pull_context.h

24 lines
534 B
C
Raw Normal View History

/*
* Copyright (c) 2017 Linaro Limited
* Copyright (c) 2018-2019 Foundries.io
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <net/lwm2m.h>
#define LWM2M_PACKAGE_URI_LEN 255
struct firmware_pull_context {
char uri[LWM2M_PACKAGE_URI_LEN];
int retry;
struct k_work firmware_work;
struct lwm2m_ctx firmware_ctx;
struct coap_block_context block_ctx;
void (*result_cb)(int error_code);
lwm2m_engine_set_data_cb_t write_cb;
};
int lwm2m_pull_context_start_transfer(struct firmware_pull_context *ctx);