perf ui browser: Add routines to compactly specify exit keys
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 12 Aug 2010 15:37:51 +0000 (12:37 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 19 Aug 2010 22:44:18 +0000 (19:44 -0300)
commit4c1c952e37c7511a52f617ceddbc10c855d45d7b
tree8f2ffa7d5b787b23cf88ea84309d7961e79d9c01
parentb50e003db13848dd74572ffd221047683313981d
perf ui browser: Add routines to compactly specify exit keys

This makes the usual idiom for specifying a series of key codes to exit
ui_browser__run() for specialized processing (search, annotate, etc) or
plain exiting the browser more compact.

It also abstracts away some more libnewt operations. At some point we'll
also replace NEWT_KEY_foo with something that can be mapped to NEWT or,
say, gtk.

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>
tools/perf/util/ui/browser.c
tools/perf/util/ui/browser.h
tools/perf/util/ui/browsers/annotate.c
tools/perf/util/ui/browsers/hists.c
tools/perf/util/ui/browsers/map.c
tools/perf/util/ui/util.c