aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/unarchive.h18
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);
83extern void header_verbose_list(const file_header_t *file_header); 80extern void header_verbose_list(const file_header_t *file_header);
84 81
85extern void check_header_gzip(int src_fd); 82extern void check_header_gzip(int src_fd);
86extern void check_trailer_gzip(int src_fd);
87 83
88extern char get_header_ar(archive_handle_t *archive_handle); 84extern char get_header_ar(archive_handle_t *archive_handle);
89extern char get_header_cpio(archive_handle_t *archive_handle); 85extern 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
103extern void archive_copy_file(const archive_handle_t *archive_handle, const int dst_fd); 99extern void archive_copy_file(const archive_handle_t *archive_handle, const int dst_fd);
104extern const llist_t *find_list_entry(const llist_t *list, const char *filename); 100extern const llist_t *find_list_entry(const llist_t *list, const char *filename);
105 101
106extern ssize_t read_bz2(int fd, void *buf, size_t count); 102extern int uncompressStream(int src_fd, int dst_fd);
107extern void BZ2_bzReadOpen(int fd, void *unused, int nUnused); 103extern void inflate_init(unsigned int bufsize);
108extern void BZ2_bzReadClose(void); 104extern int inflate_unzip(int in, int out);
109extern unsigned char uncompressStream(int src_fd, int dst_fd); 105extern int inflate_gunzip(int in, int out);
106
107extern int open_transformer(int src_fd, int (*transformer)(int src_fd, int dst_fd));
110 108
111extern ssize_t read_gz(int fd, void *buf, size_t count);
112extern void GZ_gzReadOpen(int fd, void *unused, int nUnused);
113extern void GZ_gzReadClose(void);
114extern int inflate(int in, int out);
115 109
116#endif 110#endif