blob: 6392b633710c84dcff3a238a26f4d4b359053059 [file] [log] [blame]
Junio C Hamanoe0173ad2007-04-28 23:38:52 -07001#ifndef PROGRESS_H
2#define PROGRESS_H
Nicolas Pitre96a02f82007-04-18 14:27:45 -04003
Nicolas Pitredc6a0752007-10-30 14:57:32 -04004struct progress;
Nicolas Pitre96a02f82007-04-18 14:27:45 -04005
Nicolas Pitre218558a2007-11-04 22:15:41 -05006void display_throughput(struct progress *progress, off_t total);
Nicolas Pitre96a02f82007-04-18 14:27:45 -04007int display_progress(struct progress *progress, unsigned n);
Nicolas Pitredc6a0752007-10-30 14:57:32 -04008struct progress *start_progress(const char *title, unsigned total);
Junio C Hamano8aade102017-08-19 10:39:41 -07009struct progress *start_delayed_progress(const char *title, unsigned total);
Nicolas Pitredc6a0752007-10-30 14:57:32 -040010void stop_progress(struct progress **progress);
Nicolas Pitrea984a062007-11-08 15:45:41 -050011void stop_progress_msg(struct progress **progress, const char *msg);
Nicolas Pitre96a02f82007-04-18 14:27:45 -040012
13#endif