diff options
author | Nicolas Pitre <nico@cam.org> | 2007-04-20 18:10:07 (GMT) |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-23 05:18:05 (GMT) |
commit | 13aaf148258808437c485d3ef54c7ae7668384d7 (patch) | |
tree | 17f2ec24d48906b44948b3091129688ea402f9f7 /progress.h | |
parent | 96a02f8f6d2192d3686cd1c719044082c89e8391 (diff) | |
download | git-13aaf148258808437c485d3ef54c7ae7668384d7.zip git-13aaf148258808437c485d3ef54c7ae7668384d7.tar.gz git-13aaf148258808437c485d3ef54c7ae7668384d7.tar.bz2 |
make progress "title" part of the common progress interface
If the progress bar ends up in a box, better provide a title for it too.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'progress.h')
-rw-r--r-- | progress.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2,13 +2,14 @@ #define __progress_h__ struct progress { - const char *msg; + const char *prefix; unsigned total; unsigned last_percent; }; int display_progress(struct progress *progress, unsigned n); -void start_progress(struct progress *progress, const char *msg, unsigned total); +void start_progress(struct progress *progress, const char *title, + const char *prefix, unsigned total); void stop_progress(struct progress *progress); #endif |