aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/ui/util.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-08-12 12:37:51 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-08-19 19:44:18 -0300
commit4c1c952e37c7511a52f617ceddbc10c855d45d7b (patch)
tree8f2ffa7d5b787b23cf88ea84309d7961e79d9c01 /tools/perf/util/ui/util.c
parentb50e003db13848dd74572ffd221047683313981d (diff)
downloadkernel_goldelico_gta04-4c1c952e37c7511a52f617ceddbc10c855d45d7b.zip
kernel_goldelico_gta04-4c1c952e37c7511a52f617ceddbc10c855d45d7b.tar.gz
kernel_goldelico_gta04-4c1c952e37c7511a52f617ceddbc10c855d45d7b.tar.bz2
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>
Diffstat (limited to 'tools/perf/util/ui/util.c')
-rw-r--r--tools/perf/util/ui/util.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/perf/util/ui/util.c b/tools/perf/util/ui/util.c
index 04600e2..9706d9d 100644
--- a/tools/perf/util/ui/util.c
+++ b/tools/perf/util/ui/util.c
@@ -11,8 +11,6 @@
#include "helpline.h"
#include "util.h"
-newtComponent newt_form__new(void);
-
static void newt_form__set_exit_keys(newtComponent self)
{
newtFormAddHotKey(self, NEWT_KEY_LEFT);
@@ -22,7 +20,7 @@ static void newt_form__set_exit_keys(newtComponent self)
newtFormAddHotKey(self, CTRL('c'));
}
-newtComponent newt_form__new(void)
+static newtComponent newt_form__new(void)
{
newtComponent self = newtForm(NULL, NULL, 0);
if (self)