diff options
Diffstat (limited to 'tools/perf/util/cache.h')
| -rw-r--r-- | tools/perf/util/cache.h | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/tools/perf/util/cache.h b/tools/perf/util/cache.h index 8dd224df3e54..cff18c617d13 100644 --- a/tools/perf/util/cache.h +++ b/tools/perf/util/cache.h | |||
| @@ -33,7 +33,7 @@ extern int pager_use_color; | |||
| 33 | 33 | ||
| 34 | extern int use_browser; | 34 | extern int use_browser; |
| 35 | 35 | ||
| 36 | #ifdef NO_NEWT_SUPPORT | 36 | #if defined(NO_NEWT_SUPPORT) && defined(NO_GTK2_SUPPORT) |
| 37 | static inline void setup_browser(bool fallback_to_pager) | 37 | static inline void setup_browser(bool fallback_to_pager) |
| 38 | { | 38 | { |
| 39 | if (fallback_to_pager) | 39 | if (fallback_to_pager) |
| @@ -43,19 +43,29 @@ static inline void exit_browser(bool wait_for_ok __used) {} | |||
| 43 | #else | 43 | #else |
| 44 | void setup_browser(bool fallback_to_pager); | 44 | void setup_browser(bool fallback_to_pager); |
| 45 | void exit_browser(bool wait_for_ok); | 45 | void exit_browser(bool wait_for_ok); |
| 46 | |||
| 47 | #ifdef NO_NEWT_SUPPORT | ||
| 48 | static inline int ui__init(void) | ||
| 49 | { | ||
| 50 | return -1; | ||
| 51 | } | ||
| 52 | static inline void ui__exit(bool wait_for_ok __used) {} | ||
| 53 | #else | ||
| 54 | int ui__init(void); | ||
| 55 | void ui__exit(bool wait_for_ok); | ||
| 46 | #endif | 56 | #endif |
| 47 | 57 | ||
| 48 | #ifdef NO_GTK2_SUPPORT | 58 | #ifdef NO_GTK2_SUPPORT |
| 49 | static inline void perf_gtk_setup_browser(int argc __used, const char *argv[] __used, bool fallback_to_pager) | 59 | static inline int perf_gtk__init(void) |
| 50 | { | 60 | { |
| 51 | if (fallback_to_pager) | 61 | return -1; |
| 52 | setup_pager(); | ||
| 53 | } | 62 | } |
| 54 | static inline void perf_gtk_exit_browser(bool wait_for_ok __used) {} | 63 | static inline void perf_gtk__exit(bool wait_for_ok __used) {} |
| 55 | #else | 64 | #else |
| 56 | void perf_gtk_setup_browser(int argc, const char *argv[], bool fallback_to_pager); | 65 | int perf_gtk__init(void); |
| 57 | void perf_gtk_exit_browser(bool wait_for_ok); | 66 | void perf_gtk__exit(bool wait_for_ok); |
| 58 | #endif | 67 | #endif |
| 68 | #endif /* NO_NEWT_SUPPORT && NO_GTK2_SUPPORT */ | ||
| 59 | 69 | ||
| 60 | char *alias_lookup(const char *alias); | 70 | char *alias_lookup(const char *alias); |
| 61 | int split_cmdline(char *cmdline, const char ***argv); | 71 | int split_cmdline(char *cmdline, const char ***argv); |
