]>
Commit | Line | Data |
---|---|---|
96a02f8f NP |
1 | #ifndef __progress_h__ |
2 | #define __progress_h__ | |
3 | ||
4 | struct progress { | |
5 | const char *msg; | |
6 | unsigned total; | |
7 | unsigned last_percent; | |
8 | }; | |
9 | ||
10 | int display_progress(struct progress *progress, unsigned n); | |
11 | void start_progress(struct progress *progress, const char *msg, unsigned total); | |
12 | void stop_progress(struct progress *progress); | |
13 | ||
14 | #endif |