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