46 |
struct uar_archive *uar, struct uar_file *file, const char *uar_name, |
struct uar_archive *uar, struct uar_file *file, const char *uar_name, |
47 |
const char *fs_name, enum uar_error_level level, const char *message); |
const char *fs_name, enum uar_error_level level, const char *message); |
48 |
|
|
49 |
|
typedef bool (*uar_extract_callback_t) ( |
50 |
|
struct uar_archive *uar, struct uar_file *file, const char *uar_name, |
51 |
|
const char *fs_name, enum uar_error_level level, const char *message); |
52 |
|
|
53 |
void uar_set_create_callback (struct uar_archive *uar, |
void uar_set_create_callback (struct uar_archive *uar, |
54 |
uar_create_callback_t callback); |
uar_create_callback_t callback); |
55 |
|
void uar_set_extract_callback (struct uar_archive *uar, |
56 |
|
uar_extract_callback_t callback); |
57 |
|
bool uar_stream_extract (struct uar_archive *uar, const char *dest); |
58 |
|
|
59 |
struct uar_archive *uar_create (void); |
struct uar_archive *uar_create (void); |
|
struct uar_archive *uar_open (const char *filename); |
|
60 |
struct uar_archive *uar_stream_open (const char *filename); |
struct uar_archive *uar_stream_open (const char *filename); |
61 |
struct uar_archive *uar_stream_create (void); |
struct uar_archive *uar_stream_create (void); |
62 |
void uar_close (struct uar_archive *uar); |
void uar_close (struct uar_archive *uar); |
71 |
const char *uar_strerror (const struct uar_archive *restrict uar); |
const char *uar_strerror (const struct uar_archive *restrict uar); |
72 |
uint64_t uar_get_file_count (const struct uar_archive *restrict uar); |
uint64_t uar_get_file_count (const struct uar_archive *restrict uar); |
73 |
|
|
74 |
struct uar_file *uar_add_file (struct uar_archive *restrict uar, |
bool uar_stream_iterate (struct uar_archive *uar, |
75 |
const char *name, const char *path, |
bool (*callback) (struct uar_file *file, void *data), |
76 |
struct stat *stinfo); |
void *data); |
|
struct uar_file * |
|
|
uar_add_dir (struct uar_archive *uar, const char *name, const char *path, |
|
|
bool (*callback) (struct uar_file *file, const char *fullname, |
|
|
const char *fullpath)); |
|
|
bool uar_extract (struct uar_archive *uar, const char *cwd, |
|
|
bool (*callback) (struct uar_file *file)); |
|
|
bool uar_write (struct uar_archive *uar, const char *filename); |
|
|
bool uar_iterate (struct uar_archive *uar, |
|
|
bool (*callback) (struct uar_file *file, void *data), |
|
|
void *data); |
|
77 |
|
|
78 |
struct uar_file *uar_file_create (const char *name, uint64_t namelen, |
struct uar_file *uar_file_create (const char *name, uint64_t namelen, |
79 |
uint64_t size, uint32_t offset); |
uint64_t size, uint32_t offset); |