barebox/include/progress.h
Sascha Hauer 257da5cac0 add progression bar function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-28 10:43:55 +02:00

16 lines
389 B
C

#ifndef __PROGRSS_H
#define __PROGRSS_H
/* Initialize a progress bar. If max > 0 a one line progress
* bar is printed where 'max' corresponds to 100%. If max == 0
* a multi line progress bar is printed.
*/
void init_progression_bar(int max);
/* update a progress bar to a new value. If now < 0 then a
* spinner is printed.
*/
void show_progress(int now);
#endif /* __PROGRSS_H */