aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMagnus Damm <magnus.damm@gmail.com>2009-11-08 16:34:43 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-08 16:34:43 +0100
commitf5914992f316f8a628505067e108e7ba5a9590ba (patch)
treee7e34807bf4b5fab00303064c0aab5df1bd8b543 /include
parentf5c2f72917e5f75634665f67a6105e1e82ece875 (diff)
downloadbusybox-w32-f5914992f316f8a628505067e108e7ba5a9590ba.tar.gz
busybox-w32-f5914992f316f8a628505067e108e7ba5a9590ba.tar.bz2
busybox-w32-f5914992f316f8a628505067e108e7ba5a9590ba.zip
wget: factor out progress bar code
Signed-off-by: Magnus Damm <magnus.damm@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index d973d14e2..0f8973d9e 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1451,6 +1451,16 @@ int print_flags_separated(const int *masks, const char *labels,
1451 int flags, const char *separator) FAST_FUNC; 1451 int flags, const char *separator) FAST_FUNC;
1452int print_flags(const masks_labels_t *ml, int flags) FAST_FUNC; 1452int print_flags(const masks_labels_t *ml, int flags) FAST_FUNC;
1453 1453
1454typedef struct bb_progress_t {
1455 off_t lastsize;
1456 unsigned lastupdate_sec;
1457 unsigned start_sec;
1458} bb_progress_t;
1459
1460void bb_progress_init(bb_progress_t *p) FAST_FUNC;
1461void bb_progress_update(bb_progress_t *p, const char *curfile,
1462 off_t beg_range, off_t transferred,
1463 off_t totalsize) FAST_FUNC;
1454 1464
1455extern const char *applet_name; 1465extern const char *applet_name;
1456/* "BusyBox vN.N.N (timestamp or extra_version)" */ 1466/* "BusyBox vN.N.N (timestamp or extra_version)" */