diff options
author | Scott Wood <scottwood@freescale.com> | 2014-04-07 23:49:35 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-04-07 23:49:35 (GMT) |
commit | 62b8c978ee6b8d135d9e7953221de58000dba986 (patch) | |
tree | 683b04b2e627f6710c22c151b23c8cc9a165315e /tools/perf/ui/progress.h | |
parent | 78fd82238d0e5716578c326404184a27ba67fd6e (diff) | |
download | linux-fsl-qoriq-62b8c978ee6b8d135d9e7953221de58000dba986.tar.xz |
Rewind v3.13-rc3+ (78fd82238d0e5716) to v3.12
Diffstat (limited to 'tools/perf/ui/progress.h')
-rw-r--r-- | tools/perf/ui/progress.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/tools/perf/ui/progress.h b/tools/perf/ui/progress.h index 29ec8ef..257cc22 100644 --- a/tools/perf/ui/progress.h +++ b/tools/perf/ui/progress.h @@ -3,21 +3,16 @@ #include <../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 (*update)(u64, u64, const char *); void (*finish)(void); }; -extern struct ui_progress_ops *ui_progress__ops; +extern struct ui_progress *progress_fns; + +void ui_progress__init(void); + +void ui_progress__update(u64 curr, u64 total, const char *title); +void ui_progress__finish(void); #endif |