diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-10-23 13:08:48 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-10-23 13:41:23 -0400 |
commit | 4779a2e99af80e133ee1c70c7093dc6cc13429a1 (patch) | |
tree | fe6d3d244a365886036d08c6a568904de9e91c5a /tools/perf/ui/progress.c | |
parent | 74af377bc25dd9ebcb0be12836abb6b401b5dd08 (diff) |
perf ui: Rename ui_progress to ui_progress_ops
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>
Diffstat (limited to 'tools/perf/ui/progress.c')
-rw-r--r-- | tools/perf/ui/progress.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/perf/ui/progress.c b/tools/perf/ui/progress.c index 3ec695607a4d..d753821b6e0b 100644 --- a/tools/perf/ui/progress.c +++ b/tools/perf/ui/progress.c | |||
@@ -1,26 +1,26 @@ | |||
1 | #include "../cache.h" | 1 | #include "../cache.h" |
2 | #include "progress.h" | 2 | #include "progress.h" |
3 | 3 | ||
4 | static void nop_progress_update(u64 curr __maybe_unused, | 4 | static void null_progress__update(u64 curr __maybe_unused, |
5 | u64 total __maybe_unused, | 5 | u64 total __maybe_unused, |
6 | const char *title __maybe_unused) | 6 | const char *title __maybe_unused) |
7 | { | 7 | { |
8 | } | 8 | } |
9 | 9 | ||
10 | static struct ui_progress default_progress_fns = | 10 | static struct ui_progress_ops null_progress__ops = |
11 | { | 11 | { |
12 | .update = nop_progress_update, | 12 | .update = null_progress__update, |
13 | }; | 13 | }; |
14 | 14 | ||
15 | struct ui_progress *progress_fns = &default_progress_fns; | 15 | struct ui_progress_ops *ui_progress__ops = &null_progress__ops; |
16 | 16 | ||
17 | void ui_progress__update(u64 curr, u64 total, const char *title) | 17 | void ui_progress__update(u64 curr, u64 total, const char *title) |
18 | { | 18 | { |
19 | return progress_fns->update(curr, total, title); | 19 | return ui_progress__ops->update(curr, total, title); |
20 | } | 20 | } |
21 | 21 | ||
22 | void ui_progress__finish(void) | 22 | void ui_progress__finish(void) |
23 | { | 23 | { |
24 | if (progress_fns->finish) | 24 | if (ui_progress__ops->finish) |
25 | progress_fns->finish(); | 25 | ui_progress__ops->finish(); |
26 | } | 26 | } |