diff options
Diffstat (limited to 'tools/perf/ui/ui.h')
-rw-r--r-- | tools/perf/ui/ui.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/tools/perf/ui/ui.h b/tools/perf/ui/ui.h index 70cb0d4eb8aa..ab88383f8be8 100644 --- a/tools/perf/ui/ui.h +++ b/tools/perf/ui/ui.h | |||
@@ -6,13 +6,14 @@ | |||
6 | #include <linux/compiler.h> | 6 | #include <linux/compiler.h> |
7 | 7 | ||
8 | extern pthread_mutex_t ui__lock; | 8 | extern pthread_mutex_t ui__lock; |
9 | extern void *perf_gtk_handle; | ||
9 | 10 | ||
10 | extern int use_browser; | 11 | extern int use_browser; |
11 | 12 | ||
12 | void setup_browser(bool fallback_to_pager); | 13 | void setup_browser(bool fallback_to_pager); |
13 | void exit_browser(bool wait_for_ok); | 14 | void exit_browser(bool wait_for_ok); |
14 | 15 | ||
15 | #ifdef SLANG_SUPPORT | 16 | #ifdef HAVE_SLANG_SUPPORT |
16 | int ui__init(void); | 17 | int ui__init(void); |
17 | void ui__exit(bool wait_for_ok); | 18 | void ui__exit(bool wait_for_ok); |
18 | #else | 19 | #else |
@@ -23,17 +24,6 @@ static inline int ui__init(void) | |||
23 | static inline void ui__exit(bool wait_for_ok __maybe_unused) {} | 24 | static inline void ui__exit(bool wait_for_ok __maybe_unused) {} |
24 | #endif | 25 | #endif |
25 | 26 | ||
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 | |||
37 | void ui__refresh_dimensions(bool force); | 27 | void ui__refresh_dimensions(bool force); |
38 | 28 | ||
39 | #endif /* _PERF_UI_H_ */ | 29 | #endif /* _PERF_UI_H_ */ |