30 |
UF_LINK |
UF_LINK |
31 |
}; |
}; |
32 |
|
|
33 |
|
enum uar_error_level |
34 |
|
{ |
35 |
|
UAR_ELEVEL_NONE, |
36 |
|
UAR_ELEVEL_ERROR, |
37 |
|
UAR_ELEVEL_WARNING, |
38 |
|
}; |
39 |
|
|
40 |
typedef bool (*uar_callback_t) (struct uar_archive *uar, struct uar_file *file, |
typedef bool (*uar_callback_t) (struct uar_archive *uar, struct uar_file *file, |
41 |
const char *uar_name, const char *fs_name); |
const char *uar_name, const char *fs_name); |
42 |
|
|
43 |
|
typedef bool (*uar_create_callback_t) ( |
44 |
|
struct uar_archive *uar, struct uar_file *file, const char *uar_name, |
45 |
|
const char *fs_name, enum uar_error_level level, const char *message); |
46 |
|
|
47 |
|
void uar_set_create_callback (struct uar_archive *uar, |
48 |
|
uar_create_callback_t callback); |
49 |
|
|
50 |
struct uar_archive *uar_create (void); |
struct uar_archive *uar_create (void); |
51 |
struct uar_archive *uar_open (const char *filename); |
struct uar_archive *uar_open (const char *filename); |
52 |
struct uar_archive *uar_create_stream (void); |
struct uar_archive *uar_create_stream (void); |
86 |
|
|
87 |
struct uar_file *uar_stream_add_entry (struct uar_archive *uar, |
struct uar_file *uar_stream_add_entry (struct uar_archive *uar, |
88 |
const char *uar_name, |
const char *uar_name, |
89 |
const char *fs_name, struct stat *stinfo, |
const char *fs_name, |
90 |
uar_callback_t callback); |
struct stat *stinfo); |
91 |
struct uar_file *uar_stream_add_dir (struct uar_archive *uar, |
struct uar_file *uar_stream_add_dir (struct uar_archive *uar, |
92 |
const char *uar_dirname, |
const char *uar_dirname, |
93 |
const char *fs_dirname, |
const char *fs_dirname, |
94 |
struct stat *stinfo, |
struct stat *stinfo); |
|
uar_callback_t callback); |
|
95 |
|
|
96 |
const char *uar_file_get_name (const struct uar_file *file); |
const char *uar_file_get_name (const struct uar_file *file); |
97 |
enum uar_file_type uar_file_get_type (const struct uar_file *file); |
enum uar_file_type uar_file_get_type (const struct uar_file *file); |