mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
16 lines
356 B
C
16 lines
356 B
C
#ifndef __progress_h__
|
|
#define __progress_h__
|
|
|
|
struct progress {
|
|
const char *prefix;
|
|
unsigned total;
|
|
unsigned last_percent;
|
|
};
|
|
|
|
int display_progress(struct progress *progress, unsigned n);
|
|
void start_progress(struct progress *progress, const char *title,
|
|
const char *prefix, unsigned total);
|
|
void stop_progress(struct progress *progress);
|
|
|
|
#endif
|