diff options
Diffstat (limited to 'include/unarchive.h')
-rw-r--r-- | include/unarchive.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/unarchive.h b/include/unarchive.h index a834816ba..aa7ecec55 100644 --- a/include/unarchive.h +++ b/include/unarchive.h | |||
@@ -143,19 +143,24 @@ typedef struct inflate_unzip_result { | |||
143 | } inflate_unzip_result; | 143 | } inflate_unzip_result; |
144 | 144 | ||
145 | IF_DESKTOP(long long) int inflate_unzip(inflate_unzip_result *res, off_t compr_size, int src_fd, int dst_fd) FAST_FUNC; | 145 | IF_DESKTOP(long long) int inflate_unzip(inflate_unzip_result *res, off_t compr_size, int src_fd, int dst_fd) FAST_FUNC; |
146 | /* xz unpacker takes .xz stream from offset 0 */ | ||
147 | IF_DESKTOP(long long) int unpack_xz_stream(int src_fd, int dst_fd) FAST_FUNC; | ||
146 | /* lzma unpacker takes .lzma stream from offset 0 */ | 148 | /* lzma unpacker takes .lzma stream from offset 0 */ |
147 | IF_DESKTOP(long long) int unpack_lzma_stream(int src_fd, int dst_fd) FAST_FUNC; | 149 | IF_DESKTOP(long long) int unpack_lzma_stream(int src_fd, int dst_fd) FAST_FUNC; |
148 | /* the rest wants 2 first bytes already skipped by the caller */ | 150 | /* the rest wants 2 first bytes already skipped by the caller */ |
149 | IF_DESKTOP(long long) int unpack_bz2_stream(int src_fd, int dst_fd) FAST_FUNC; | 151 | IF_DESKTOP(long long) int unpack_bz2_stream(int src_fd, int dst_fd) FAST_FUNC; |
150 | IF_DESKTOP(long long) int unpack_gz_stream(int src_fd, int dst_fd) FAST_FUNC; | 152 | IF_DESKTOP(long long) int unpack_gz_stream(int src_fd, int dst_fd) FAST_FUNC; |
151 | IF_DESKTOP(long long) int unpack_gz_stream_with_info(int src_fd, int dst_fd, unpack_info_t *info) FAST_FUNC; | 153 | IF_DESKTOP(long long) int unpack_gz_stream_with_info(int src_fd, int dst_fd, unpack_info_t *info) FAST_FUNC; |
152 | IF_DESKTOP(long long) int unpack_Z_stream(int fd_in, int fd_out) FAST_FUNC; | 154 | IF_DESKTOP(long long) int unpack_Z_stream(int src_fd, int dst_fd) FAST_FUNC; |
153 | /* wrapper which checks first two bytes to be "BZ" */ | 155 | /* wrapper which checks first two bytes to be "BZ" */ |
154 | IF_DESKTOP(long long) int unpack_bz2_stream_prime(int src_fd, int dst_fd) FAST_FUNC; | 156 | IF_DESKTOP(long long) int unpack_bz2_stream_prime(int src_fd, int dst_fd) FAST_FUNC; |
155 | 157 | ||
158 | char* append_ext(char *filename, const char *expected_ext) FAST_FUNC; | ||
156 | int bbunpack(char **argv, | 159 | int bbunpack(char **argv, |
157 | char* (*make_new_name)(char *filename), | 160 | IF_DESKTOP(long long) int FAST_FUNC (*unpacker)(unpack_info_t *info), |
158 | IF_DESKTOP(long long) int (*unpacker)(unpack_info_t *info)) FAST_FUNC; | 161 | char* FAST_FUNC (*make_new_name)(char *filename, const char *expected_ext), |
162 | const char *expected_ext | ||
163 | ) FAST_FUNC; | ||
159 | 164 | ||
160 | #if BB_MMU | 165 | #if BB_MMU |
161 | void open_transformer(int fd, | 166 | void open_transformer(int fd, |