| Arnaldo Carvalho de Melo | 34cea7f | 2010-08-08 19:56:47 -0300 | [diff] [blame] | 1 | #ifndef _PERF_UI_PROGRESS_H_ | 
|  | 2 | #define _PERF_UI_PROGRESS_H_ 1 | 
|  | 3 |  | 
| Arnaldo Carvalho de Melo | ca59bcb | 2011-10-25 13:29:11 -0200 | [diff] [blame] | 4 | #include <../types.h> | 
| Arnaldo Carvalho de Melo | 34cea7f | 2010-08-08 19:56:47 -0300 | [diff] [blame] | 5 |  | 
| Namhyung Kim | 688f2f5 | 2012-11-13 22:30:32 +0900 | [diff] [blame] | 6 | struct ui_progress { | 
|  | 7 | void (*update)(u64, u64, const char *); | 
| Namhyung Kim | a5580f3 | 2012-11-13 22:30:34 +0900 | [diff] [blame] | 8 | void (*finish)(void); | 
| Namhyung Kim | 688f2f5 | 2012-11-13 22:30:32 +0900 | [diff] [blame] | 9 | }; | 
|  | 10 |  | 
|  | 11 | extern struct ui_progress *progress_fns; | 
|  | 12 |  | 
|  | 13 | void ui_progress__init(void); | 
|  | 14 |  | 
| Arnaldo Carvalho de Melo | ca59bcb | 2011-10-25 13:29:11 -0200 | [diff] [blame] | 15 | void ui_progress__update(u64 curr, u64 total, const char *title); | 
| Namhyung Kim | a5580f3 | 2012-11-13 22:30:34 +0900 | [diff] [blame] | 16 | void ui_progress__finish(void); | 
| Arnaldo Carvalho de Melo | 34cea7f | 2010-08-08 19:56:47 -0300 | [diff] [blame] | 17 |  | 
|  | 18 | #endif |