summaryrefslogtreecommitdiff
path: root/progress.h
blob: 1f2661e81094ce44a11223a2cb1880b302e88b7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef __progress_h__
#define __progress_h__
 
struct progress {
	const char *prefix;
	unsigned total;
	unsigned last_percent;
};
 
int display_progress(struct progress *progress, unsigned n);
void start_progress(struct progress *progress, const char *title,
		    const char *prefix, unsigned total);
void stop_progress(struct progress *progress);
 
#endif