BSB Developer Docs
Loading...
Searching...
No Matches
update_task_i.h
1#pragma once
2
3#include "update_task.h"
4#include "../../session/session_config.h"
5
6#include <furi_hal.h>
7#include <storage/storage.h>
8#include <toolbox/update_lib/update_config.h>
9
10#define UPDATE_EXECUTOR_TASK_NOERR 0
11#define UPDATE_EXECUTOR_TASK_FAILED -1
12
15 UpdateConfig* config;
16 UpdaterSessionConfig session_config;
17 FuriThread* thread;
18 Storage* storage;
19 File* file;
20 UpdateExecutorTaskProgressCallback status_change_callback;
21 void* status_change_callback_context;
22};
23
24void update_executor_task_set_progress(
25 UpdateExecutorTask* update_task,
26 UpdateExecutorTaskStage stage,
27 uint8_t progress);
28bool update_executor_task_parse_manifest(UpdateExecutorTask* update_task);
29bool update_executor_task_open_file(UpdateExecutorTask* update_task, const FuriString* filename);
30
31int32_t update_executor_task_worker_general(void* context);
32
33#define CHECK_RESULT(x) \
34 if(!(x)) { \
35 break; \
36 }
APIs for working with storages, directories and files.
Structure that hold file index and returned api errors.
Definition filesystem_api_internal.h:18
Definition storage_i.h:20
Definition update_config.c:21
Definition update_task_i.h:13
Definition update_task.h:52
Definition session_config.h:9