]> git.ipfire.org Git - people/arne_f/kernel.git/blame - tools/perf/ui/progress.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[people/arne_f/kernel.git] / tools / perf / ui / progress.h
CommitLineData
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 7void ui_progress__finish(void);
48000a1a 8
4d3001fd
ACM
9struct ui_progress {
10 const char *title;
11 u64 curr, next, step, total;
12};
48000a1a 13
4d3001fd
ACM
14void ui_progress__init(struct ui_progress *p, u64 total, const char *title);
15void ui_progress__update(struct ui_progress *p, u64 adv);
16
4779a2e9 17struct ui_progress_ops {
4d3001fd 18 void (*update)(struct ui_progress *p);
a5580f3e 19 void (*finish)(void);
688f2f5b
NK
20};
21
4779a2e9 22extern struct ui_progress_ops *ui_progress__ops;
688f2f5b 23
34cea7f7 24#endif