diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/unarchive.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/include/unarchive.h b/include/unarchive.h index 9f1331338..fa7233743 100644 --- a/include/unarchive.h +++ b/include/unarchive.h | |||
@@ -50,9 +50,6 @@ typedef struct archive_handle_s { | |||
50 | /* Count the number of bytes processed */ | 50 | /* Count the number of bytes processed */ |
51 | off_t offset; | 51 | off_t offset; |
52 | 52 | ||
53 | /* Function that reads data: read or read_bz */ | ||
54 | ssize_t (*read)(int fd, void *buf, size_t count); | ||
55 | |||
56 | /* Function that skips data: read_by_char or read_by_skip */ | 53 | /* Function that skips data: read_by_char or read_by_skip */ |
57 | void (*seek)(const struct archive_handle_s *archive_handle, const unsigned int amount); | 54 | void (*seek)(const struct archive_handle_s *archive_handle, const unsigned int amount); |
58 | 55 | ||
@@ -83,7 +80,6 @@ extern void header_list(const file_header_t *file_header); | |||
83 | extern void header_verbose_list(const file_header_t *file_header); | 80 | extern void header_verbose_list(const file_header_t *file_header); |
84 | 81 | ||
85 | extern void check_header_gzip(int src_fd); | 82 | extern void check_header_gzip(int src_fd); |
86 | extern void check_trailer_gzip(int src_fd); | ||
87 | 83 | ||
88 | extern char get_header_ar(archive_handle_t *archive_handle); | 84 | extern char get_header_ar(archive_handle_t *archive_handle); |
89 | extern char get_header_cpio(archive_handle_t *archive_handle); | 85 | extern char get_header_cpio(archive_handle_t *archive_handle); |
@@ -103,14 +99,12 @@ extern void data_align(archive_handle_t *archive_handle, const unsigned short bo | |||
103 | extern void archive_copy_file(const archive_handle_t *archive_handle, const int dst_fd); | 99 | extern void archive_copy_file(const archive_handle_t *archive_handle, const int dst_fd); |
104 | extern const llist_t *find_list_entry(const llist_t *list, const char *filename); | 100 | extern const llist_t *find_list_entry(const llist_t *list, const char *filename); |
105 | 101 | ||
106 | extern ssize_t read_bz2(int fd, void *buf, size_t count); | 102 | extern int uncompressStream(int src_fd, int dst_fd); |
107 | extern void BZ2_bzReadOpen(int fd, void *unused, int nUnused); | 103 | extern void inflate_init(unsigned int bufsize); |
108 | extern void BZ2_bzReadClose(void); | 104 | extern int inflate_unzip(int in, int out); |
109 | extern unsigned char uncompressStream(int src_fd, int dst_fd); | 105 | extern int inflate_gunzip(int in, int out); |
106 | |||
107 | extern int open_transformer(int src_fd, int (*transformer)(int src_fd, int dst_fd)); | ||
110 | 108 | ||
111 | extern ssize_t read_gz(int fd, void *buf, size_t count); | ||
112 | extern void GZ_gzReadOpen(int fd, void *unused, int nUnused); | ||
113 | extern void GZ_gzReadClose(void); | ||
114 | extern int inflate(int in, int out); | ||
115 | 109 | ||
116 | #endif | 110 | #endif |