🌐 AI搜索 & 代理 主页
blob: 611e4c4d42d8d1164add09f926ad5b2ce088db5e [file] [log] [blame]
Junio C Hamanoe0173ad2007-04-29 06:38:521#ifndef PROGRESS_H
2#define PROGRESS_H
Nicolas Pitre96a02f82007-04-18 18:27:453
Nicolas Pitredc6a0752007-10-30 18:57:324struct progress;
Nicolas Pitre96a02f82007-04-18 18:27:455
Nicolas Pitre218558a2007-11-05 03:15:416void display_throughput(struct progress *progress, off_t total);
Nicolas Pitre96a02f82007-04-18 18:27:457int display_progress(struct progress *progress, unsigned n);
Nicolas Pitredc6a0752007-10-30 18:57:328struct progress *start_progress(const char *title, unsigned total);
9struct progress *start_progress_delay(const char *title, unsigned total,
10 unsigned percent_treshold, unsigned delay);
11void stop_progress(struct progress **progress);
Nicolas Pitrea984a062007-11-08 20:45:4112void stop_progress_msg(struct progress **progress, const char *msg);
Nicolas Pitre96a02f82007-04-18 18:27:4513
14#endif