|
static size_t | file_archive_size (file_archive_file_data_t *data) |
|
static const uint8_t * | file_archive_data (file_archive_file_data_t *data) |
|
static void | file_archive_free (file_archive_file_data_t *data) |
|
static file_archive_file_data_t * | file_archive_open (const char *path) |
|
static int | file_archive_get_file_list_cb (const char *path, const char *valid_exts, const uint8_t *cdata, unsigned cmode, uint32_t csize, uint32_t size, uint32_t checksum, struct archive_extract_userdata *userdata) |
|
static int | file_archive_extract_cb (const char *name, const char *valid_exts, const uint8_t *cdata, unsigned cmode, uint32_t csize, uint32_t size, uint32_t checksum, struct archive_extract_userdata *userdata) |
|
static int | file_archive_parse_file_init (file_archive_transfer_t *state, const char *file) |
|
static int | file_archive_decompress_data_to_file (file_archive_file_handle_t *handle, int ret, const char *path, const char *valid_exts, const uint8_t *cdata, uint32_t csize, uint32_t size, uint32_t checksum) |
|
void | file_archive_parse_file_iterate_stop (file_archive_transfer_t *state) |
|
int | file_archive_parse_file_iterate (file_archive_transfer_t *state, bool *returnerr, const char *file, const char *valid_exts, file_archive_file_cb file_cb, struct archive_extract_userdata *userdata) |
|
static bool | file_archive_walk (const char *file, const char *valid_exts, file_archive_file_cb file_cb, struct archive_extract_userdata *userdata) |
|
int | file_archive_parse_file_progress (file_archive_transfer_t *state) |
|
bool | file_archive_extract_file (char *archive_path, size_t archive_path_size, const char *valid_exts, const char *extraction_directory, char *out_path, size_t len) |
|
struct string_list * | file_archive_get_file_list (const char *path, const char *valid_exts) |
|
bool | file_archive_perform_mode (const char *path, const char *valid_exts, const uint8_t *cdata, unsigned cmode, uint32_t csize, uint32_t size, uint32_t crc32, struct archive_extract_userdata *userdata) |
|
static struct string_list * | file_archive_filename_split (const char *path) |
|
int | file_archive_compressed_read (const char *path, void **buf, const char *optional_filename, int64_t *length) |
|
const struct file_archive_file_backend * | file_archive_get_zlib_file_backend (void) |
|
const struct file_archive_file_backend * | file_archive_get_7z_file_backend (void) |
|
const struct file_archive_file_backend * | file_archive_get_file_backend (const char *path) |
|
uint32_t | file_archive_get_file_crc32 (const char *path) |
|
bool file_archive_extract_file |
( |
char * |
archive_path, |
|
|
size_t |
archive_path_size, |
|
|
const char * |
valid_exts, |
|
|
const char * |
extraction_directory, |
|
|
char * |
out_path, |
|
|
size_t |
len |
|
) |
| |
file_archive_extract_file: : filename path to archive. : size of archive. : valid extensions for the file. : the directory to extract temporary file to.
Extract file from archive. If no file inside the archive is specified, the first file found will be used.
Returns : true (1) on success, otherwise false (0).