From 052fbe3f86eaab1940f25824705d809cd9af59e5 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Wed, 7 Jan 2009 21:45:11 +0200 Subject: various: make fancy progress bar and update todo --- src/archive.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/archive.c') 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 { -- cgit v1.2.3-60-g2f50