diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index 8a5e6756f..46a0682b2 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -227,8 +227,18 @@ typedef struct ar_headers_s { | |||
227 | } ar_headers_t; | 227 | } ar_headers_t; |
228 | extern ar_headers_t *get_ar_headers(FILE *in_file); | 228 | extern ar_headers_t *get_ar_headers(FILE *in_file); |
229 | extern int seek_ared_file(FILE *in_file, ar_headers_t *headers, const char *tar_gz_file); | 229 | extern int seek_ared_file(FILE *in_file, ar_headers_t *headers, const char *tar_gz_file); |
230 | extern int deb_extract(const char *package_filename, const int function, char *target_dir); | 230 | |
231 | extern int untar(FILE *src_tar_file, int untar_function, char *base_path); | 231 | typedef enum extract_function_e { |
232 | extract_contents = 1, | ||
233 | extract_control = 2, | ||
234 | extract_info = 4, | ||
235 | extract_extract = 8, | ||
236 | extract_verbose_extract = 16, | ||
237 | extract_list = 32 | ||
238 | } extract_function_t; | ||
239 | extern int deb_extract(const char *package_filename, int function, char *target_dir); | ||
240 | extern int untar(FILE *src_tar_file, int function, char *base_path); | ||
241 | |||
232 | extern int unzip(FILE *l_in_file, FILE *l_out_file); | 242 | extern int unzip(FILE *l_in_file, FILE *l_out_file); |
233 | extern void gz_close(int gunzip_pid); | 243 | extern void gz_close(int gunzip_pid); |
234 | extern int gz_open(FILE *compressed_file, int *pid); | 244 | extern int gz_open(FILE *compressed_file, int *pid); |