diff options
author | Glenn L McGrath | 2001-04-16 04:52:19 +0000 |
---|---|---|
committer | Glenn L McGrath | 2001-04-16 04:52:19 +0000 |
commit | 33431ebb9ace3fba76138198596f8155c2e14354 (patch) | |
tree | 514459eccbc4927b00c0493badb7f12575c9147d /libbb/libbb.h | |
parent | 3136904ff69b3f67096dbaf2afd9ac77256c4bae (diff) | |
download | busybox-33431ebb9ace3fba76138198596f8155c2e14354.zip busybox-33431ebb9ace3fba76138198596f8155c2e14354.tar.gz |
dpkg improvements, use full package struct, avoid extracting to tmp dir, rename variable.
deb_extract, untar and dpkg_deb modified to make the above possible
Diffstat (limited to 'libbb/libbb.h')
-rw-r--r-- | libbb/libbb.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libbb/libbb.h b/libbb/libbb.h index 569ed93..4b06ad1 100644 --- a/libbb/libbb.h +++ b/libbb/libbb.h @@ -236,10 +236,13 @@ typedef enum extract_function_e { extract_verbose_extract = 16, extract_list = 32, extract_fsys_tarfile = 64, - extract_field = 128 + extract_field = 128, + extract_contents_to_file = 256 } extract_function_t; -extern int deb_extract(const char *package_filename, int function, char *target_dir); -extern char *untar(FILE *src_tar_file, FILE *output, const int untar_function, const char *argument); +extern char *deb_extract(const char *package_filename, const int function, + const char *argument, const char *argument2); +extern char *untar(FILE *src_tar_file, FILE *output, const int untar_function, + const char *argument, const char *file_prefix); extern char *read_text_file_to_buffer(FILE *src_file); extern char *read_package_field(const char *package_buffer); |