Welcome to mirror list, hosted at ThFree Co, Russian Federation.

progress.h - git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 07b56bdbb5abc70fbd9d4080ccb219716a5297f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef PROGRESS_H
#define PROGRESS_H

struct progress {
	const char *title;
	int last_value;
	unsigned total;
	unsigned last_percent;
	unsigned delay;
	unsigned delayed_percent_treshold;
};

int display_progress(struct progress *progress, unsigned n);
void start_progress(struct progress *progress, const char *title,
		    unsigned total);
void start_progress_delay(struct progress *progress, const char *title,
			  unsigned total, unsigned percent_treshold, unsigned delay);
void stop_progress(struct progress *progress);

#endif