2007-04-29 06:38:52 +00:00
|
|
|
#ifndef PROGRESS_H
|
|
|
|
#define PROGRESS_H
|
2007-04-18 18:27:45 +00:00
|
|
|
|
2007-10-30 18:57:32 +00:00
|
|
|
struct progress;
|
2007-04-18 18:27:45 +00:00
|
|
|
|
2017-11-13 20:15:58 +00:00
|
|
|
void display_throughput(struct progress *progress, uint64_t total);
|
|
|
|
int display_progress(struct progress *progress, uint64_t n);
|
|
|
|
struct progress *start_progress(const char *title, uint64_t total);
|
|
|
|
struct progress *start_delayed_progress(const char *title, uint64_t total);
|
2007-10-30 18:57:32 +00:00
|
|
|
void stop_progress(struct progress **progress);
|
2007-11-08 20:45:41 +00:00
|
|
|
void stop_progress_msg(struct progress **progress, const char *msg);
|
2007-04-18 18:27:45 +00:00
|
|
|
|
|
|
|
#endif
|