diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index c0178801f..7581cd4c4 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1587,15 +1587,21 @@ typedef struct bb_progress_t { | |||
1587 | off_t lastsize; | 1587 | off_t lastsize; |
1588 | unsigned lastupdate_sec; | 1588 | unsigned lastupdate_sec; |
1589 | unsigned start_sec; | 1589 | unsigned start_sec; |
1590 | smallint inited; | 1590 | const char *curfile; |
1591 | } bb_progress_t; | 1591 | } bb_progress_t; |
1592 | 1592 | ||
1593 | void bb_progress_init(bb_progress_t *p) FAST_FUNC; | 1593 | #define is_bb_progress_inited(p) ((p)->curfile != NULL) |
1594 | void bb_progress_update(bb_progress_t *p, const char *curfile, | 1594 | #define bb_progress_free(p) do { \ |
1595 | if (ENABLE_UNICODE_SUPPORT) free((char*)((p)->curfile)); \ | ||
1596 | (p)->curfile = NULL; \ | ||
1597 | } while (0) | ||
1598 | void bb_progress_init(bb_progress_t *p, const char *curfile) FAST_FUNC; | ||
1599 | void bb_progress_update(bb_progress_t *p, | ||
1595 | uoff_t beg_range, | 1600 | uoff_t beg_range, |
1596 | uoff_t transferred, | 1601 | uoff_t transferred, |
1597 | uoff_t totalsize) FAST_FUNC; | 1602 | uoff_t totalsize) FAST_FUNC; |
1598 | 1603 | ||
1604 | |||
1599 | extern const char *applet_name; | 1605 | extern const char *applet_name; |
1600 | 1606 | ||
1601 | /* Some older linkers don't perform string merging, we used to have common strings | 1607 | /* Some older linkers don't perform string merging, we used to have common strings |