diff options
author | Nicolas Pitre <nico@cam.org> | 2007-04-20 14:10:07 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-22 22:18:05 -0700 |
commit | 13aaf148258808437c485d3ef54c7ae7668384d7 (patch) | |
tree | 17f2ec24d48906b44948b3091129688ea402f9f7 /progress.h | |
parent | 96a02f8f6d2192d3686cd1c719044082c89e8391 (diff) | |
download | git-13aaf148258808437c485d3ef54c7ae7668384d7.tar.gz git-13aaf148258808437c485d3ef54c7ae7668384d7.tar.xz |
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
diff --git a/progress.h b/progress.h index 5fa494811..1f2661e81 100644 --- a/progress.h +++ b/progress.h @@ -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 |