make progress "title" part of the common progress interface
[git/dscho.git] / progress.h
blob1f2661e81094ce44a11223a2cb1880b302e88b7a
1 #ifndef __progress_h__
2 #define __progress_h__
4 struct progress {
5 const char *prefix;
6 unsigned total;
7 unsigned last_percent;
8 };
10 int display_progress(struct progress *progress, unsigned n);
11 void start_progress(struct progress *progress, const char *title,
12 const char *prefix, unsigned total);
13 void stop_progress(struct progress *progress);
15 #endif