2007-04-29 14:38:52 +08:00
|
|
|
#ifndef PROGRESS_H
|
|
|
|
#define PROGRESS_H
|
2007-04-19 02:27:45 +08:00
|
|
|
|
2007-10-31 02:57:32 +08:00
|
|
|
struct progress;
|
2007-04-19 02:27:45 +08:00
|
|
|
|
2007-11-05 11:15:41 +08:00
|
|
|
void display_throughput(struct progress *progress, off_t total);
|
2007-04-19 02:27:45 +08:00
|
|
|
int display_progress(struct progress *progress, unsigned n);
|
2007-10-31 02:57:32 +08:00
|
|
|
struct progress *start_progress(const char *title, unsigned total);
|
|
|
|
struct progress *start_progress_delay(const char *title, unsigned total,
|
|
|
|
unsigned percent_treshold, unsigned delay);
|
|
|
|
void stop_progress(struct progress **progress);
|
2007-11-09 04:45:41 +08:00
|
|
|
void stop_progress_msg(struct progress **progress, const char *msg);
|
2007-04-19 02:27:45 +08:00
|
|
|
|
|
|
|
#endif
|