diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-08-10 14:44:20 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-08-10 14:44:20 -0400 |
commit | 59e8fe32fc0cc9dff6b0c269d099a49e004dc45e (patch) | |
tree | 55133961ebcbf9ea5b5ab674360207876c189349 /tools/perf/util/ui/browser.h | |
parent | f1e9214cc99644101d957c5c660946c6f2f86d7c (diff) |
perf ui browser: Add ui_browser__show counterpart: __hide
So that the common tasks of providing a helpline at __run entry and
destroying the window and releasing resourses at exit can be abstracted
away, reducing a bit more the coupling with libnewt.
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/ui/browser.h')
-rw-r--r-- | tools/perf/util/ui/browser.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/ui/browser.h b/tools/perf/util/ui/browser.h index 856e34361729..0b9f829214f7 100644 --- a/tools/perf/util/ui/browser.h +++ b/tools/perf/util/ui/browser.h | |||
@@ -30,7 +30,9 @@ bool ui_browser__is_current_entry(struct ui_browser *self, unsigned row); | |||
30 | void ui_browser__refresh_dimensions(struct ui_browser *self); | 30 | void ui_browser__refresh_dimensions(struct ui_browser *self); |
31 | void ui_browser__reset_index(struct ui_browser *self); | 31 | void ui_browser__reset_index(struct ui_browser *self); |
32 | 32 | ||
33 | int ui_browser__show(struct ui_browser *self, const char *title); | 33 | int ui_browser__show(struct ui_browser *self, const char *title, |
34 | const char *helpline, ...); | ||
35 | void ui_browser__hide(struct ui_browser *self); | ||
34 | int ui_browser__refresh(struct ui_browser *self); | 36 | int ui_browser__refresh(struct ui_browser *self); |
35 | int ui_browser__run(struct ui_browser *self, struct newtExitStruct *es); | 37 | int ui_browser__run(struct ui_browser *self, struct newtExitStruct *es); |
36 | 38 | ||