4779a2e99a
Reserving 'struct ui_progress' to the per progress instances, not to the particular set of operations used to implmenet a progress bar in the current UI (GTK, TUI, etc). Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-zjqbfp9gx3yo45s0rp9uv42n@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
17 lines
333 B
C
17 lines
333 B
C
#ifndef _PERF_UI_PROGRESS_H_
|
|
#define _PERF_UI_PROGRESS_H_ 1
|
|
|
|
#include <../types.h>
|
|
|
|
struct ui_progress_ops {
|
|
void (*update)(u64, u64, const char *);
|
|
void (*finish)(void);
|
|
};
|
|
|
|
extern struct ui_progress_ops *ui_progress__ops;
|
|
|
|
void ui_progress__update(u64 curr, u64 total, const char *title);
|
|
void ui_progress__finish(void);
|
|
|
|
#endif
|