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>
This commit is contained in:
committed by
Junio C Hamano
parent
96a02f8f6d
commit
13aaf14825
@ -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
|
||||
|
||||
Reference in New Issue
Block a user