]> git.ipfire.org Git - thirdparty/git.git/blame - progress.h
double free in builtin-update-index.c
[thirdparty/git.git] / progress.h
CommitLineData
e0173ad9
JH
1#ifndef PROGRESS_H
2#define PROGRESS_H
96a02f8f
NP
3
4struct progress {
13aaf148 5 const char *prefix;
96a02f8f
NP
6 unsigned total;
7 unsigned last_percent;
180a9f22
NP
8 unsigned delay;
9 unsigned delayed_percent_treshold;
10 const char *delayed_title;
421f9d16 11 int need_lf;
96a02f8f
NP
12};
13
14int display_progress(struct progress *progress, unsigned n);
13aaf148
NP
15void start_progress(struct progress *progress, const char *title,
16 const char *prefix, unsigned total);
180a9f22
NP
17void start_progress_delay(struct progress *progress, const char *title,
18 const char *prefix, unsigned total,
19 unsigned percent_treshold, unsigned delay);
96a02f8f
NP
20void stop_progress(struct progress *progress);
21
22#endif