diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-01-07 21:45:11 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-01-07 21:45:11 +0200 |
commit | 052fbe3f86eaab1940f25824705d809cd9af59e5 (patch) | |
tree | 248d8da56e8660db2aa09a17bd52d25e0256cf29 /src/archive.c | |
parent | c7ffc96a16c6963fe0a07be7ee75e8f1f7426882 (diff) | |
download | apk-tools-052fbe3f86eaab1940f25824705d809cd9af59e5.tar.gz apk-tools-052fbe3f86eaab1940f25824705d809cd9af59e5.tar.bz2 apk-tools-052fbe3f86eaab1940f25824705d809cd9af59e5.tar.xz apk-tools-052fbe3f86eaab1940f25824705d809cd9af59e5.zip |
various: make fancy progress bar and update todo
Diffstat (limited to 'src/archive.c')
-rw-r--r-- | src/archive.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/archive.c b/src/archive.c index 7e78659..765b786 100644 --- a/src/archive.c +++ b/src/archive.c @@ -191,7 +191,8 @@ int apk_parse_tar_gz(struct apk_bstream *bs, apk_archive_entry_parser parser, int apk_archive_entry_extract(const struct apk_file_info *ae, struct apk_istream *is, - const char *fn) + const char *fn, apk_progress_cb cb, + void *cb_ctx) { int r = -1, fd; @@ -214,7 +215,8 @@ int apk_archive_entry_extract(const struct apk_file_info *ae, r = -1; break; } - if (apk_istream_splice(is, fd, ae->size) == ae->size) + if (apk_istream_splice(is, fd, ae->size, cb, cb_ctx) + == ae->size) r = 0; close(fd); } else { |