Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-04-20 22:10:07 +0400
committerJunio C Hamano <junkio@cox.net>2007-04-23 09:18:05 +0400
commit13aaf148258808437c485d3ef54c7ae7668384d7 (patch)
tree17f2ec24d48906b44948b3091129688ea402f9f7 /progress.h
parent96a02f8f6d2192d3686cd1c719044082c89e8391 (diff)
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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/progress.h b/progress.h
index 5fa4948117..1f2661e810 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