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