23 #ifndef LIBRETRO_SDK_ARCHIVE_FILE_H__ 24 #define LIBRETRO_SDK_ARCHIVE_FILE_H__ 136 const char *optional_outfile);
142 const char *valid_exts,
152 const char *valid_exts,
174 const char *valid_exts,
const char *extraction_dir,
175 char *out_path,
size_t len);
uint32_t real_checksum
Definition: archive_file.h:57
uint8_t * data
Definition: archive_file.h:56
GLuint const GLchar * name
Definition: glext.h:6671
int file_archive_parse_file_progress(file_archive_transfer_t *state)
Definition: archive_file.c:498
int(* archive_parse_file_init)(file_archive_transfer_t *state, const char *file)
Definition: archive_file.h:137
char * extracted_file_path
Definition: archive_file.h:108
char * subdir
Definition: archive_file.h:93
void * stream
Definition: archive_file.h:68
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
bool found
Definition: archive_file.h:87
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:8418
Definition: archive_file.h:53
const struct file_archive_file_backend zlib_backend
Definition: archive_file_zlib.c:374
GLsizei const GLchar ** path
Definition: glext.h:7901
char * target_dir
Definition: archive_file.h:94
void file_archive_parse_file_iterate_stop(file_archive_transfer_t *state)
Definition: archive_file.c:370
GLenum GLsizei len
Definition: glext.h:7389
GLsizeiptr size
Definition: glext.h:6559
int32_t archive_size
Definition: archive_file.h:66
Definition: archive_file.h:47
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)
Definition: archive_file.c:379
Definition: archive_file.c:49
Definition: archive_file.h:127
Definition: archive_file.h:78
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
char archive_name[PATH_MAX_LENGTH]
Definition: archive_file.h:116
bool file_archive_extract_file(char *archive_path, size_t archive_path_size, const char *valid_exts, const char *extraction_dir, char *out_path, size_t len)
Definition: archive_file.c:524
Definition: archive_file.h:49
#define PATH_MAX_LENGTH
Definition: retro_miscellaneous.h:83
const char * ident
Definition: archive_file.h:145
typedef bool(RETRO_CALLCONV *retro_replace_image_index_t)(unsigned index
const struct file_archive_file_backend * backend
Definition: archive_file.h:72
struct string_list * list
Definition: archive_file.h:112
const uint8_t * data
Definition: archive_file.h:71
struct file_archive_transfer file_archive_transfer_t
Definition: archive_file.h:81
void ** buf
Definition: archive_file.h:85
char * needle
Definition: archive_file.h:84
bool list_only
Definition: archive_file.h:114
char archive_path[PATH_MAX_LENGTH]
Definition: archive_file.h:106
const struct file_archive_file_backend * backend
Definition: archive_file.h:58
int file_archive_compressed_read(const char *path, void **buf, const char *optional_filename, int64_t *length)
Definition: archive_file.c:734
const uint8_t * footer
Definition: archive_file.h:69
struct string_list * file_archive_get_file_list(const char *path, const char *valid_exts)
Definition: archive_file.c:593
bool file_archive_perform_mode(const char *name, const char *valid_exts, const uint8_t *cdata, unsigned cmode, uint32_t csize, uint32_t size, uint32_t crc32, struct archive_extract_userdata *userdata)
Definition: archive_file.c:638
void(* stream_free)(void *)
Definition: archive_file.h:130
const char * extraction_directory
Definition: archive_file.h:109
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33
Definition: archive_file.h:104
Definition: archive_file.h:63
struct file_archive_handle file_archive_file_handle_t
file_archive_file_data_t * handle
Definition: archive_file.h:67
const struct file_archive_file_backend * file_archive_get_zlib_file_backend(void)
Definition: archive_file.c:782
signed int int32_t
Definition: stdint.h:123
const uint8_t * directory
Definition: archive_file.h:70
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
char * callback_error
Definition: archive_file.h:98
void * context
Definition: archive_file.h:115
uint32_t(* stream_crc_calculate)(uint32_t, const uint8_t *, size_t)
Definition: archive_file.h:134
char * target_file
Definition: archive_file.h:95
file_archive_transfer_type
Definition: archive_file.h:44
Definition: archive_file.h:46
int(* archive_parse_file_iterate_step)(file_archive_transfer_t *state, const char *valid_exts, struct archive_extract_userdata *userdata, file_archive_file_cb file_cb)
Definition: archive_file.h:140
Definition: archive_file.h:77
Definition: archive_file.h:90
struct archive_extract_userdata * userdata
Definition: archive_file.h:101
enum file_archive_transfer_type type
Definition: archive_file.h:65
struct string_list * ext
Definition: archive_file.h:111
size_t archive_path_size
Definition: archive_file.h:110
uint32_t crc
Definition: archive_file.h:117
bool(* stream_decompress_data_to_file_init)(file_archive_file_handle_t *, const uint8_t *, uint32_t, uint32_t)
Definition: archive_file.h:131
size_t size
Definition: archive_file.h:86
const struct file_archive_file_backend * file_archive_get_7z_file_backend(void)
Definition: archive_file.c:791
void * stream
Definition: archive_file.h:55
file_archive_transfer_t archive
Definition: archive_file.h:100
signed __int64 int64_t
Definition: stdint.h:135
decompress_state_t * dec
Definition: archive_file.h:119
unsigned long crc32(unsigned long crc, const unsigned char *buf, unsigned int len)
Definition: libz-crc32.c:70
int(* stream_decompress_data_to_file_iterate)(void *)
Definition: archive_file.h:133
uint32_t file_archive_get_file_crc32(const char *path)
Definition: archive_file.c:840
Definition: archive_file.h:48
file_archive_compression_mode
Definition: archive_file.h:75
Definition: archive_file.h:50
bool found_file
Definition: archive_file.h:113
const struct file_archive_file_backend * file_archive_get_file_backend(const char *path)
Definition: archive_file.c:800
char * first_extracted_file_path
Definition: archive_file.h:107
char * valid_ext
Definition: archive_file.h:96
Definition: civetweb.c:1024
int(* file_archive_file_cb)(const char *name, const char *valid_exts, const uint8_t *cdata, unsigned cmode, uint32_t csize, uint32_t size, uint32_t crc32, struct archive_extract_userdata *userdata)
Definition: archive_file.h:123
char * opt_file
Definition: archive_file.h:83
GLenum GLuint GLenum GLsizei length
Definition: glext.h:6233
char * source_file
Definition: archive_file.h:92
unsigned char uint8_t
Definition: stdint.h:124
unsigned int uint32_t
Definition: stdint.h:126
const struct file_archive_file_backend sevenzip_backend
Definition: archive_file_7z.c:506
struct decomp_state_t decomp_state
Definition: archive_file.h:118
int(* compressed_file_read)(const char *path, const char *needle, void **buf, const char *optional_outfile)
Definition: archive_file.h:135
Definition: string_list.h:47