git-send-email: Add --thread option
[git/aroben.git] / progress.h
bloba7c17ca7c4bdad953508d03c20e73022b03bd25a
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;
11 int need_lf;
14 int display_progress(struct progress *progress, unsigned n);
15 void start_progress(struct progress *progress, const char *title,
16 const char *prefix, unsigned total);
17 void start_progress_delay(struct progress *progress, const char *title,
18 const char *prefix, unsigned total,
19 unsigned percent_treshold, unsigned delay);
20 void stop_progress(struct progress *progress);
22 #endif