2007-04-29 08:38:52 +02:00
|
|
|
#ifndef PROGRESS_H
|
|
|
|
#define PROGRESS_H
|
2007-04-18 20:27:45 +02:00
|
|
|
|
2007-10-30 19:57:32 +01:00
|
|
|
struct progress;
|
2007-04-18 20:27:45 +02:00
|
|
|
|
2007-10-30 19:57:34 +01:00
|
|
|
void display_throughput(struct progress *progress, unsigned long n);
|
2007-04-18 20:27:45 +02:00
|
|
|
int display_progress(struct progress *progress, unsigned n);
|
2007-10-30 19:57:32 +01: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-04-18 20:27:45 +02:00
|
|
|
|
|
|
|
#endif
|