12 |
enum uar_error |
enum uar_error |
13 |
{ |
{ |
14 |
UAR_SUCCESS, |
UAR_SUCCESS, |
15 |
|
UAR_INVALID_ARCHIVE, |
16 |
|
UAR_UNSUPPORTED_VERSION, |
17 |
UAR_INVALID_MAGIC, |
UAR_INVALID_MAGIC, |
18 |
UAR_INVALID_FILE, |
UAR_INVALID_FILE, |
19 |
UAR_IO_ERROR, |
UAR_IO_ERROR, |
22 |
UAR_INVALID_OPERATION, |
UAR_INVALID_OPERATION, |
23 |
UAR_INVALID_PATH, |
UAR_INVALID_PATH, |
24 |
UAR_SYSTEM_ERROR, |
UAR_SYSTEM_ERROR, |
25 |
UAR_SYSCALL_ERROR, |
UAR_SYSCALL_ERROR |
26 |
}; |
}; |
27 |
|
|
28 |
enum uar_file_type |
enum uar_file_type |
51 |
|
|
52 |
struct uar_archive *uar_create (void); |
struct uar_archive *uar_create (void); |
53 |
struct uar_archive *uar_open (const char *filename); |
struct uar_archive *uar_open (const char *filename); |
54 |
struct uar_archive *uar_create_stream (void); |
struct uar_archive *uar_stream_open (const char *filename); |
55 |
|
struct uar_archive *uar_stream_create (void); |
56 |
void uar_close (struct uar_archive *uar); |
void uar_close (struct uar_archive *uar); |
57 |
|
|
58 |
struct uar_file *uar_stream_add_file (struct uar_archive *uar, |
struct uar_file *uar_stream_add_file (struct uar_archive *uar, |
103 |
void uar_file_set_mode (struct uar_file *file, mode_t mode); |
void uar_file_set_mode (struct uar_file *file, mode_t mode); |
104 |
uint64_t uar_file_get_namelen (const struct uar_file *file); |
uint64_t uar_file_get_namelen (const struct uar_file *file); |
105 |
time_t uar_file_get_mtime (const struct uar_file *file); |
time_t uar_file_get_mtime (const struct uar_file *file); |
106 |
|
uid_t uar_file_get_uid (const struct uar_file *file); |
107 |
|
gid_t uar_file_get_gid (const struct uar_file *file); |
108 |
const char *uar_get_error_file (const struct uar_archive *uar); |
const char *uar_get_error_file (const struct uar_archive *uar); |
109 |
|
|
110 |
#ifdef UAR_PRINT_VERBOSE_IMPL_INFO |
#ifdef UAR_PRINT_VERBOSE_IMPL_INFO |