diff options
Diffstat (limited to 'include/unarchive.h')
-rw-r--r-- | include/unarchive.h | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/include/unarchive.h b/include/unarchive.h index a6b047794..721f879a4 100644 --- a/include/unarchive.h +++ b/include/unarchive.h | |||
@@ -31,7 +31,7 @@ typedef struct file_header_t { | |||
31 | 31 | ||
32 | typedef struct archive_handle_t { | 32 | typedef struct archive_handle_t { |
33 | /* define if the header and data component should be processed */ | 33 | /* define if the header and data component should be processed */ |
34 | char (*filter)(struct archive_handle_t *); | 34 | char FAST_FUNC (*filter)(struct archive_handle_t *); |
35 | llist_t *accept; | 35 | llist_t *accept; |
36 | /* List of files that have been rejected */ | 36 | /* List of files that have been rejected */ |
37 | llist_t *reject; | 37 | llist_t *reject; |
@@ -42,13 +42,13 @@ typedef struct archive_handle_t { | |||
42 | file_header_t *file_header; | 42 | file_header_t *file_header; |
43 | 43 | ||
44 | /* process the header component, e.g. tar -t */ | 44 | /* process the header component, e.g. tar -t */ |
45 | void (*action_header)(const file_header_t *); | 45 | void FAST_FUNC (*action_header)(const file_header_t *); |
46 | 46 | ||
47 | /* process the data component, e.g. extract to filesystem */ | 47 | /* process the data component, e.g. extract to filesystem */ |
48 | void (*action_data)(struct archive_handle_t *); | 48 | void FAST_FUNC (*action_data)(struct archive_handle_t *); |
49 | 49 | ||
50 | /* How to process any sub archive, e.g. get_header_tar_gz */ | 50 | /* How to process any sub archive, e.g. get_header_tar_gz */ |
51 | char (*action_data_subarchive)(struct archive_handle_t *); | 51 | char FAST_FUNC (*action_data_subarchive)(struct archive_handle_t *); |
52 | 52 | ||
53 | /* Contains the handle to a sub archive */ | 53 | /* Contains the handle to a sub archive */ |
54 | struct archive_handle_t *sub_archive; | 54 | struct archive_handle_t *sub_archive; |
@@ -60,7 +60,7 @@ typedef struct archive_handle_t { | |||
60 | off_t offset; | 60 | off_t offset; |
61 | 61 | ||
62 | /* Function that skips data: read_by_char or read_by_skip */ | 62 | /* Function that skips data: read_by_char or read_by_skip */ |
63 | void (*seek)(const struct archive_handle_t *archive_handle, const unsigned amount); | 63 | void FAST_FUNC (*seek)(const struct archive_handle_t *archive_handle, const unsigned amount); |
64 | 64 | ||
65 | /* Temporary storage */ | 65 | /* Temporary storage */ |
66 | char *buffer; | 66 | char *buffer; |
@@ -71,62 +71,62 @@ typedef struct archive_handle_t { | |||
71 | } archive_handle_t; | 71 | } archive_handle_t; |
72 | 72 | ||
73 | 73 | ||
74 | extern archive_handle_t *init_handle(void); | 74 | extern archive_handle_t *init_handle(void) FAST_FUNC; |
75 | 75 | ||
76 | extern char filter_accept_all(archive_handle_t *archive_handle); | 76 | extern char filter_accept_all(archive_handle_t *archive_handle) FAST_FUNC; |
77 | extern char filter_accept_list(archive_handle_t *archive_handle); | 77 | extern char filter_accept_list(archive_handle_t *archive_handle) FAST_FUNC; |
78 | extern char filter_accept_list_reassign(archive_handle_t *archive_handle); | 78 | extern char filter_accept_list_reassign(archive_handle_t *archive_handle) FAST_FUNC; |
79 | extern char filter_accept_reject_list(archive_handle_t *archive_handle); | 79 | extern char filter_accept_reject_list(archive_handle_t *archive_handle) FAST_FUNC; |
80 | 80 | ||
81 | extern void unpack_ar_archive(archive_handle_t *ar_archive); | 81 | extern void unpack_ar_archive(archive_handle_t *ar_archive) FAST_FUNC; |
82 | 82 | ||
83 | extern void data_skip(archive_handle_t *archive_handle); | 83 | extern void data_skip(archive_handle_t *archive_handle) FAST_FUNC; |
84 | extern void data_extract_all(archive_handle_t *archive_handle); | 84 | extern void data_extract_all(archive_handle_t *archive_handle) FAST_FUNC; |
85 | extern void data_extract_to_stdout(archive_handle_t *archive_handle); | 85 | extern void data_extract_to_stdout(archive_handle_t *archive_handle) FAST_FUNC; |
86 | extern void data_extract_to_buffer(archive_handle_t *archive_handle); | 86 | extern void data_extract_to_buffer(archive_handle_t *archive_handle) FAST_FUNC; |
87 | 87 | ||
88 | extern void header_skip(const file_header_t *file_header); | 88 | extern void header_skip(const file_header_t *file_header) FAST_FUNC; |
89 | extern void header_list(const file_header_t *file_header); | 89 | extern void header_list(const file_header_t *file_header) FAST_FUNC; |
90 | extern void header_verbose_list(const file_header_t *file_header); | 90 | extern void header_verbose_list(const file_header_t *file_header) FAST_FUNC; |
91 | 91 | ||
92 | extern char get_header_ar(archive_handle_t *archive_handle); | 92 | extern char get_header_ar(archive_handle_t *archive_handle) FAST_FUNC; |
93 | extern char get_header_cpio(archive_handle_t *archive_handle); | 93 | extern char get_header_cpio(archive_handle_t *archive_handle) FAST_FUNC; |
94 | extern char get_header_tar(archive_handle_t *archive_handle); | 94 | extern char get_header_tar(archive_handle_t *archive_handle) FAST_FUNC; |
95 | extern char get_header_tar_bz2(archive_handle_t *archive_handle); | 95 | extern char get_header_tar_bz2(archive_handle_t *archive_handle) FAST_FUNC; |
96 | extern char get_header_tar_lzma(archive_handle_t *archive_handle); | 96 | extern char get_header_tar_lzma(archive_handle_t *archive_handle) FAST_FUNC; |
97 | extern char get_header_tar_gz(archive_handle_t *archive_handle); | 97 | extern char get_header_tar_gz(archive_handle_t *archive_handle) FAST_FUNC; |
98 | 98 | ||
99 | extern void seek_by_jump(const archive_handle_t *archive_handle, unsigned amount); | 99 | extern void seek_by_jump(const archive_handle_t *archive_handle, unsigned amount) FAST_FUNC; |
100 | extern void seek_by_read(const archive_handle_t *archive_handle, unsigned amount); | 100 | extern void seek_by_read(const archive_handle_t *archive_handle, unsigned amount) FAST_FUNC; |
101 | 101 | ||
102 | extern ssize_t archive_xread_all_eof(archive_handle_t *archive_handle, unsigned char *buf, size_t count); | 102 | extern ssize_t archive_xread_all_eof(archive_handle_t *archive_handle, unsigned char *buf, size_t count) FAST_FUNC; |
103 | 103 | ||
104 | extern void data_align(archive_handle_t *archive_handle, unsigned boundary); | 104 | extern void data_align(archive_handle_t *archive_handle, unsigned boundary) FAST_FUNC; |
105 | extern const llist_t *find_list_entry(const llist_t *list, const char *filename); | 105 | extern const llist_t *find_list_entry(const llist_t *list, const char *filename) FAST_FUNC; |
106 | extern const llist_t *find_list_entry2(const llist_t *list, const char *filename); | 106 | extern const llist_t *find_list_entry2(const llist_t *list, const char *filename) FAST_FUNC; |
107 | 107 | ||
108 | /* A bit of bunzip2 internals are exposed for compressed help support: */ | 108 | /* A bit of bunzip2 internals are exposed for compressed help support: */ |
109 | typedef struct bunzip_data bunzip_data; | 109 | typedef struct bunzip_data bunzip_data; |
110 | int start_bunzip(bunzip_data **bdp, int in_fd, const unsigned char *inbuf, int len); | 110 | int start_bunzip(bunzip_data **bdp, int in_fd, const unsigned char *inbuf, int len) FAST_FUNC; |
111 | int read_bunzip(bunzip_data *bd, char *outbuf, int len); | 111 | int read_bunzip(bunzip_data *bd, char *outbuf, int len) FAST_FUNC; |
112 | void dealloc_bunzip(bunzip_data *bd); | 112 | void dealloc_bunzip(bunzip_data *bd) FAST_FUNC; |
113 | 113 | ||
114 | typedef struct inflate_unzip_result { | 114 | typedef struct inflate_unzip_result { |
115 | off_t bytes_out; | 115 | off_t bytes_out; |
116 | uint32_t crc; | 116 | uint32_t crc; |
117 | } inflate_unzip_result; | 117 | } inflate_unzip_result; |
118 | 118 | ||
119 | extern USE_DESKTOP(long long) int unpack_bz2_stream(int src_fd, int dst_fd); | 119 | extern USE_DESKTOP(long long) int unpack_bz2_stream(int src_fd, int dst_fd) FAST_FUNC; |
120 | extern USE_DESKTOP(long long) int inflate_unzip(inflate_unzip_result *res, off_t compr_size, int src_fd, int dst_fd); | 120 | extern USE_DESKTOP(long long) int inflate_unzip(inflate_unzip_result *res, off_t compr_size, int src_fd, int dst_fd) FAST_FUNC; |
121 | extern USE_DESKTOP(long long) int unpack_gz_stream(int src_fd, int dst_fd); | 121 | extern USE_DESKTOP(long long) int unpack_gz_stream(int src_fd, int dst_fd) FAST_FUNC; |
122 | extern USE_DESKTOP(long long) int unpack_lzma_stream(int src_fd, int dst_fd); | 122 | extern USE_DESKTOP(long long) int unpack_lzma_stream(int src_fd, int dst_fd) FAST_FUNC; |
123 | 123 | ||
124 | #if BB_MMU | 124 | #if BB_MMU |
125 | extern int open_transformer(int src_fd, | 125 | extern int open_transformer(int src_fd, |
126 | USE_DESKTOP(long long) int (*transformer)(int src_fd, int dst_fd)); | 126 | USE_DESKTOP(long long) int FAST_FUNC (*transformer)(int src_fd, int dst_fd)) FAST_FUNC; |
127 | #define open_transformer(src_fd, transformer, transform_prog) open_transformer(src_fd, transformer) | 127 | #define open_transformer(src_fd, transformer, transform_prog) open_transformer(src_fd, transformer) |
128 | #else | 128 | #else |
129 | extern int open_transformer(int src_fd, const char *transform_prog); | 129 | extern int open_transformer(int src_fd, const char *transform_prog) FAST_FUNC; |
130 | #define open_transformer(src_fd, transformer, transform_prog) open_transformer(src_fd, transform_prog) | 130 | #define open_transformer(src_fd, transformer, transform_prog) open_transformer(src_fd, transform_prog) |
131 | #endif | 131 | #endif |
132 | 132 | ||