]> git.ipfire.org Git - thirdparty/git.git/blame - progress.h
common progress display support
[thirdparty/git.git] / progress.h
CommitLineData
96a02f8f
NP
1#ifndef __progress_h__
2#define __progress_h__
3
4struct progress {
5 const char *msg;
6 unsigned total;
7 unsigned last_percent;
8};
9
10int display_progress(struct progress *progress, unsigned n);
11void start_progress(struct progress *progress, const char *msg, unsigned total);
12void stop_progress(struct progress *progress);
13
14#endif