Commit | Line | Data |
---|---|---|
34cea7f7 ACM |
1 | #ifndef _PERF_UI_PROGRESS_H_ |
2 | #define _PERF_UI_PROGRESS_H_ 1 | |
3 | ||
d944c4ee | 4 | #include <linux/types.h> |
34cea7f7 | 5 | |
4d3001fd | 6 | void ui_progress__finish(void); |
48000a1a | 7 | |
4d3001fd ACM |
8 | struct ui_progress { |
9 | const char *title; | |
10 | u64 curr, next, step, total; | |
11 | }; | |
48000a1a | 12 | |
4d3001fd ACM |
13 | void ui_progress__init(struct ui_progress *p, u64 total, const char *title); |
14 | void ui_progress__update(struct ui_progress *p, u64 adv); | |
15 | ||
4779a2e9 | 16 | struct ui_progress_ops { |
4d3001fd | 17 | void (*update)(struct ui_progress *p); |
a5580f3e | 18 | void (*finish)(void); |
688f2f5b NK |
19 | }; |
20 | ||
4779a2e9 | 21 | extern struct ui_progress_ops *ui_progress__ops; |
688f2f5b | 22 | |
34cea7f7 | 23 | #endif |