mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 00:51:44 +00:00
d944c4eebc
Combine all definitions into a common tools/include/linux/types.h and kill the wild growth elsewhere. Move DECLARE_BITMAP to its proper bitmap.h header. Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Rusty Russell <rusty@rustcorp.com.au> Link: http://lkml.kernel.org/n/tip-azczs7qcv6h9xek9od10hiv2@git.kernel.org Signed-off-by: Jiri Olsa <jolsa@kernel.org>
24 lines
482 B
C
24 lines
482 B
C
#ifndef _PERF_UI_PROGRESS_H_
|
|
#define _PERF_UI_PROGRESS_H_ 1
|
|
|
|
#include <linux/types.h>
|
|
|
|
void ui_progress__finish(void);
|
|
|
|
struct ui_progress {
|
|
const char *title;
|
|
u64 curr, next, step, total;
|
|
};
|
|
|
|
void ui_progress__init(struct ui_progress *p, u64 total, const char *title);
|
|
void ui_progress__update(struct ui_progress *p, u64 adv);
|
|
|
|
struct ui_progress_ops {
|
|
void (*update)(struct ui_progress *p);
|
|
void (*finish)(void);
|
|
};
|
|
|
|
extern struct ui_progress_ops *ui_progress__ops;
|
|
|
|
#endif
|