diff options
author | Glenn L McGrath | 2001-04-12 10:19:08 +0000 |
---|---|---|
committer | Glenn L McGrath | 2001-04-12 10:19:08 +0000 |
commit | 359c1068719c295b25b2d8b81a6aded5aeb6e23d (patch) | |
tree | 680864ee0a5e6782c4fdfa9906ff902a44411524 /include | |
parent | 46079a1d7792dc3848667ddc875bd2467be1ddc1 (diff) | |
download | busybox-359c1068719c295b25b2d8b81a6aded5aeb6e23d.zip busybox-359c1068719c295b25b2d8b81a6aded5aeb6e23d.tar.gz |
Fix dpkg-deb, enum's are cool
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 8a5e675..46a0682 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -227,8 +227,18 @@ typedef struct ar_headers_s { } ar_headers_t; extern ar_headers_t *get_ar_headers(FILE *in_file); extern int seek_ared_file(FILE *in_file, ar_headers_t *headers, const char *tar_gz_file); -extern int deb_extract(const char *package_filename, const int function, char *target_dir); -extern int untar(FILE *src_tar_file, int untar_function, char *base_path); + +typedef enum extract_function_e { + extract_contents = 1, + extract_control = 2, + extract_info = 4, + extract_extract = 8, + extract_verbose_extract = 16, + extract_list = 32 +} extract_function_t; +extern int deb_extract(const char *package_filename, int function, char *target_dir); +extern int untar(FILE *src_tar_file, int function, char *base_path); + extern int unzip(FILE *l_in_file, FILE *l_out_file); extern void gz_close(int gunzip_pid); extern int gz_open(FILE *compressed_file, int *pid); |