summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/ui/browser.h
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2012-03-16 17:50:52 +0900
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-03-16 16:32:36 -0300
commitaa49f6ec990baa9d8f1b46a86fc169a8028776d4 (patch)
treea9b2e4bd576e7c9390e07885ece249cfb4125e0d /tools/perf/util/ui/browser.h
parente94d53ebec2fb4795c18ad2e76ec633390b1e794 (diff)
downloadlinux-aa49f6ec990baa9d8f1b46a86fc169a8028776d4.tar.bz2
perf ui browser: Introduce ui_browser__input_window
The ui_browser__input_window() function is to get user's key input. Current implementation can handle maximum 49 characters. Cc: Ingo Molnar <mingo@elte.hu> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1331887855-874-2-git-send-email-namhyung.kim@lge.com Signed-off-by: Namhyung Kim <namhyung.kim@lge.com> 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/ui/browser.h b/tools/perf/util/ui/browser.h
index 84d761b730c1..6ee82f60feaf 100644
--- a/tools/perf/util/ui/browser.h
+++ b/tools/perf/util/ui/browser.h
@@ -49,6 +49,8 @@ int ui_browser__warning(struct ui_browser *browser, int timeout,
const char *format, ...);
int ui_browser__help_window(struct ui_browser *browser, const char *text);
bool ui_browser__dialog_yesno(struct ui_browser *browser, const char *text);
+int ui_browser__input_window(const char *title, const char *text, char *input,
+ const char *exit_msg, int delay_sec);
void ui_browser__argv_seek(struct ui_browser *browser, off_t offset, int whence);
unsigned int ui_browser__argv_refresh(struct ui_browser *browser);