diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2012-11-13 08:30:35 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-11-14 14:53:03 -0500 |
commit | 59ed16b315681a08cf8aa13ee949e9405801f442 (patch) | |
tree | 8041412b0f1dbdcb261aef0da8ca9370420155ac /tools/perf/ui/ui.h | |
parent | a5580f3ecb295a514f9522daf0ef7158f73ec2d6 (diff) |
perf ui: Always compile browser setup code
We now have proper fallback logic, so always build it regardless of TUI
or GTK setting.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1352813436-14173-5-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/ui.h')
-rw-r--r-- | tools/perf/ui/ui.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/perf/ui/ui.h b/tools/perf/ui/ui.h index 7b67045479f6..d86359c99907 100644 --- a/tools/perf/ui/ui.h +++ b/tools/perf/ui/ui.h | |||
@@ -3,9 +3,37 @@ | |||
3 | 3 | ||
4 | #include <pthread.h> | 4 | #include <pthread.h> |
5 | #include <stdbool.h> | 5 | #include <stdbool.h> |
6 | #include <linux/compiler.h> | ||
6 | 7 | ||
7 | extern pthread_mutex_t ui__lock; | 8 | extern pthread_mutex_t ui__lock; |
8 | 9 | ||
10 | extern int use_browser; | ||
11 | |||
12 | void setup_browser(bool fallback_to_pager); | ||
13 | void exit_browser(bool wait_for_ok); | ||
14 | |||
15 | #ifdef NEWT_SUPPORT | ||
16 | int ui__init(void); | ||
17 | void ui__exit(bool wait_for_ok); | ||
18 | #else | ||
19 | static inline int ui__init(void) | ||
20 | { | ||
21 | return -1; | ||
22 | } | ||
23 | static inline void ui__exit(bool wait_for_ok __maybe_unused) {} | ||
24 | #endif | ||
25 | |||
26 | #ifdef GTK2_SUPPORT | ||
27 | int perf_gtk__init(void); | ||
28 | void perf_gtk__exit(bool wait_for_ok); | ||
29 | #else | ||
30 | static inline int perf_gtk__init(void) | ||
31 | { | ||
32 | return -1; | ||
33 | } | ||
34 | static inline void perf_gtk__exit(bool wait_for_ok __maybe_unused) {} | ||
35 | #endif | ||
36 | |||
9 | void ui__refresh_dimensions(bool force); | 37 | void ui__refresh_dimensions(bool force); |
10 | 38 | ||
11 | #endif /* _PERF_UI_H_ */ | 39 | #endif /* _PERF_UI_H_ */ |