progress.hon commit gitweb: Fix error in git_patchset_body for deletion in merge commit (5f85505)
   1#ifndef PROGRESS_H
   2#define PROGRESS_H
   3
   4struct progress {
   5        const char *prefix;
   6        unsigned total;
   7        unsigned last_percent;
   8        unsigned delay;
   9        unsigned delayed_percent_treshold;
  10        const char *delayed_title;
  11};
  12
  13int display_progress(struct progress *progress, unsigned n);
  14void start_progress(struct progress *progress, const char *title,
  15                    const char *prefix, unsigned total);
  16void start_progress_delay(struct progress *progress, const char *title,
  17                          const char *prefix, unsigned total,
  18                          unsigned percent_treshold, unsigned delay);
  19void stop_progress(struct progress *progress);
  20
  21#endif