2010-08-09 06:56:47 +08:00
|
|
|
#ifndef _PERF_UI_PROGRESS_H_
|
|
|
|
#define _PERF_UI_PROGRESS_H_ 1
|
|
|
|
|
2011-10-25 23:29:11 +08:00
|
|
|
#include <../types.h>
|
2010-08-09 06:56:47 +08:00
|
|
|
|
2013-10-24 01:08:48 +08:00
|
|
|
struct ui_progress_ops {
|
2012-11-13 21:30:32 +08:00
|
|
|
void (*update)(u64, u64, const char *);
|
2012-11-13 21:30:34 +08:00
|
|
|
void (*finish)(void);
|
2012-11-13 21:30:32 +08:00
|
|
|
};
|
|
|
|
|
2013-10-24 01:08:48 +08:00
|
|
|
extern struct ui_progress_ops *ui_progress__ops;
|
2012-11-13 21:30:32 +08:00
|
|
|
|
2011-10-25 23:29:11 +08:00
|
|
|
void ui_progress__update(u64 curr, u64 total, const char *title);
|
2012-11-13 21:30:34 +08:00
|
|
|
void ui_progress__finish(void);
|
2010-08-09 06:56:47 +08:00
|
|
|
|
|
|
|
#endif
|