repo.or.cz
/
git
/
gitweb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
make progress "title" part of the common progress interface
[git/gitweb.git]
/
progress.h
blob
1f2661e81094ce44a11223a2cb1880b302e88b7a
1
#ifndef __progress_h__
2
#define __progress_h__
3
4
struct
progress
{
5
const char
*
prefix
;
6
unsigned
total
;
7
unsigned
last_percent
;
8
};
9
10
int
display_progress
(
struct
progress
*
progress
,
unsigned
n
);
11
void
start_progress
(
struct
progress
*
progress
,
const char
*
title
,
12
const char
*
prefix
,
unsigned
total
);
13
void
stop_progress
(
struct
progress
*
progress
);
14
15
#endif