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/gtk/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/gtk/progress.c')
-rw-r--r-- | tools/perf/ui/gtk/progress.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/perf/ui/gtk/progress.c b/tools/perf/ui/gtk/progress.c index 482bcf3df9b7..195c7f94f98e 100644 --- a/tools/perf/ui/gtk/progress.c +++ b/tools/perf/ui/gtk/progress.c | |||
@@ -7,7 +7,7 @@ | |||
7 | static GtkWidget *dialog; | 7 | static GtkWidget *dialog; |
8 | static GtkWidget *progress; | 8 | static GtkWidget *progress; |
9 | 9 | ||
10 | static void gtk_progress_update(u64 curr, u64 total, const char *title) | 10 | static void gtk_ui_progress__update(u64 curr, u64 total, const char *title) |
11 | { | 11 | { |
12 | double fraction = total ? 1.0 * curr / total : 0.0; | 12 | double fraction = total ? 1.0 * curr / total : 0.0; |
13 | char buf[1024]; | 13 | char buf[1024]; |
@@ -40,7 +40,7 @@ static void gtk_progress_update(u64 curr, u64 total, const char *title) | |||
40 | gtk_main_iteration(); | 40 | gtk_main_iteration(); |
41 | } | 41 | } |
42 | 42 | ||
43 | static void gtk_progress_finish(void) | 43 | static void gtk_ui_progress__finish(void) |
44 | { | 44 | { |
45 | /* this will also destroy all of its children */ | 45 | /* this will also destroy all of its children */ |
46 | gtk_widget_destroy(dialog); | 46 | gtk_widget_destroy(dialog); |
@@ -48,12 +48,12 @@ static void gtk_progress_finish(void) | |||
48 | dialog = NULL; | 48 | dialog = NULL; |
49 | } | 49 | } |
50 | 50 | ||
51 | static struct ui_progress gtk_progress_fns = { | 51 | static struct ui_progress_ops gtk_ui_progress__ops = { |
52 | .update = gtk_progress_update, | 52 | .update = gtk_ui_progress__update, |
53 | .finish = gtk_progress_finish, | 53 | .finish = gtk_ui_progress__finish, |
54 | }; | 54 | }; |
55 | 55 | ||
56 | void perf_gtk__init_progress(void) | 56 | void gtk_ui_progress__init(void) |
57 | { | 57 | { |
58 | progress_fns = >k_progress_fns; | 58 | ui_progress__ops = >k_ui_progress__ops; |
59 | } | 59 | } |