diff options
Diffstat (limited to 'progress.h')
-rw-r--r-- | progress.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/progress.h b/progress.h new file mode 100644 index 0000000000..5fa4948117 --- /dev/null +++ b/progress.h @@ -0,0 +1,14 @@ +#ifndef __progress_h__ +#define __progress_h__ + +struct progress { + const char *msg; + unsigned total; + unsigned last_percent; +}; + +int display_progress(struct progress *progress, unsigned n); +void start_progress(struct progress *progress, const char *msg, unsigned total); +void stop_progress(struct progress *progress); + +#endif |