progress.hon commit Teach prune-packed to use the standard progress meter (b5d72f0)
   1#ifndef PROGRESS_H
   2#define PROGRESS_H
   3
   4struct progress {
   5        const char *title;
   6        int last_value;
   7        unsigned total;
   8        unsigned last_percent;
   9        unsigned delay;
  10        unsigned delayed_percent_treshold;
  11};
  12
  13int display_progress(struct progress *progress, unsigned n);
  14void start_progress(struct progress *progress, const char *title,
  15                    unsigned total);
  16void start_progress_delay(struct progress *progress, const char *title,
  17                          unsigned total, unsigned percent_treshold, unsigned delay);
  18void stop_progress(struct progress *progress);
  19
  20#endif