20 |
UAR_SYSTEM_ERROR |
UAR_SYSTEM_ERROR |
21 |
}; |
}; |
22 |
|
|
23 |
|
enum uar_file_type |
24 |
|
{ |
25 |
|
UF_FILE, |
26 |
|
UF_DIR, |
27 |
|
UF_LINK |
28 |
|
}; |
29 |
|
|
30 |
struct uar_archive *uar_open (const char *filename); |
struct uar_archive *uar_open (const char *filename); |
31 |
bool uar_has_error (const struct uar_archive *restrict uar); |
bool uar_has_error (const struct uar_archive *restrict uar); |
32 |
void uar_close (struct uar_archive *uar); |
void uar_close (struct uar_archive *uar); |
36 |
const char *name, const char *path); |
const char *name, const char *path); |
37 |
void uar_file_set_mode (struct uar_file *file, mode_t mode); |
void uar_file_set_mode (struct uar_file *file, mode_t mode); |
38 |
bool uar_write (struct uar_archive *uar, const char *filename); |
bool uar_write (struct uar_archive *uar, const char *filename); |
39 |
struct uar_file *uar_add_dir (struct uar_archive *uar, const char *name, |
struct uar_file * |
40 |
const char *path); |
uar_add_dir (struct uar_archive *uar, const char *name, const char *path, |
41 |
|
bool (*callback) (struct uar_file *file, const char *fullname, |
42 |
|
const char *fullpath)); |
43 |
bool uar_extract (struct uar_archive *uar, const char *cwd, |
bool uar_extract (struct uar_archive *uar, const char *cwd, |
44 |
bool (*callback) (struct uar_file *file)); |
bool (*callback) (struct uar_file *file)); |
45 |
const char *uar_get_file_name (const struct uar_file *file); |
const char *uar_get_file_name (const struct uar_file *file); |
46 |
|
enum uar_file_type uar_get_entry_type (const struct uar_file *file); |
47 |
|
|
48 |
#ifndef NDEBUG |
#ifndef NDEBUG |
49 |
void uar_debug_print (const struct uar_archive *uar, bool print_file_contents); |
void uar_debug_print (const struct uar_archive *uar, bool print_file_contents); |