18 TarOpenModeRead =
'r',
19 TarOpenModeWrite =
'w',
21 TarOpenModeReadHeatshrink =
'h',
31TarOpenMode tar_archive_get_mode_for_path(
const char* path);
49bool tar_archive_open(
TarArchive* archive,
const char* path, TarOpenMode mode);
57typedef void (*TarArchiveNameConverter)(
FuriString*);
69bool tar_archive_unpack_to(
71 const char* destination,
72 TarArchiveNameConverter converter);
83bool tar_archive_add_file(
85 const char* fs_file_path,
86 const char* archive_fname,
87 const int32_t file_size);
97bool tar_archive_add_dir(
TarArchive* archive,
const char* fs_full_path,
const char* path_prefix);
105int32_t tar_archive_get_entries_count(
TarArchive* archive);
115bool tar_archive_get_read_progress(
TarArchive* archive, int32_t* processed, int32_t* total);
125bool tar_archive_unpack_file(
127 const char* archive_fname,
128 const char* destination);
136typedef bool (*tar_unpack_file_cb)(
const char* name,
bool is_directory,
void* context);
143void tar_archive_set_file_callback(
TarArchive* archive, tar_unpack_file_cb callback,
void* context);
154bool tar_archive_dir_add_element(
TarArchive* archive,
const char* dirpath);
164bool tar_archive_file_add_header(
TarArchive* archive,
const char* path,
const int32_t data_len);
174bool tar_archive_file_add_data_block(
176 const uint8_t* data_block,
177 const int32_t block_len);
185bool tar_archive_file_finalize(
TarArchive* archive);
196bool tar_archive_store_data(
200 const int32_t data_len);
208bool tar_archive_finalize(
TarArchive* archive);
APIs for working with storages, directories and files.
Definition storage_i.h:23
Definition tar_archive.c:31