2007-04-28 23:38:52 -07:00
|
|
|
#ifndef PROGRESS_H
|
|
|
|
#define PROGRESS_H
|
2007-04-18 14:27:45 -04:00
|
|
|
|
2007-10-30 14:57:32 -04:00
|
|
|
struct progress;
|
2007-04-18 14:27:45 -04:00
|
|
|
|
2007-11-04 22:15:41 -05:00
|
|
|
void display_throughput(struct progress *progress, off_t total);
|
2007-04-18 14:27:45 -04:00
|
|
|
int display_progress(struct progress *progress, unsigned n);
|
2007-10-30 14:57:32 -04: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-08 15:45:41 -05:00
|
|
|
void stop_progress_msg(struct progress **progress, const char *msg);
|
2007-04-18 14:27:45 -04:00
|
|
|
|
|
|
|
#endif
|