t6030: grab commit object name as we go
[tgit.git] / progress.h
blob4ee851acfb286ded87c1ef8d40803c1d7d415db5
1 #ifndef __progress_h__
2 #define __progress_h__
4 struct progress {
5 const char *prefix;
6 unsigned total;
7 unsigned last_percent;
8 unsigned delay;
9 unsigned delayed_percent_treshold;
10 const char *delayed_title;
13 int display_progress(struct progress *progress, unsigned n);
14 void start_progress(struct progress *progress, const char *title,
15 const char *prefix, unsigned total);
16 void start_progress_delay(struct progress *progress, const char *title,
17 const char *prefix, unsigned total,
18 unsigned percent_treshold, unsigned delay);
19 void stop_progress(struct progress *progress);
21 #endif