diff options
Diffstat (limited to 'tools/perf/util/cache.h')
| -rw-r--r-- | tools/perf/util/cache.h | 14 | 
1 files changed, 14 insertions, 0 deletions
| diff --git a/tools/perf/util/cache.h b/tools/perf/util/cache.h index 918eb376abe3..4b9aab7f0405 100644 --- a/tools/perf/util/cache.h +++ b/tools/perf/util/cache.h | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | #ifndef __PERF_CACHE_H | 1 | #ifndef __PERF_CACHE_H | 
| 2 | #define __PERF_CACHE_H | 2 | #define __PERF_CACHE_H | 
| 3 | 3 | ||
| 4 | #include <stdbool.h> | ||
| 4 | #include "util.h" | 5 | #include "util.h" | 
| 5 | #include "strbuf.h" | 6 | #include "strbuf.h" | 
| 6 | #include "../perf.h" | 7 | #include "../perf.h" | 
| @@ -69,6 +70,19 @@ extern const char *pager_program; | |||
| 69 | extern int pager_in_use(void); | 70 | extern int pager_in_use(void); | 
| 70 | extern int pager_use_color; | 71 | extern int pager_use_color; | 
| 71 | 72 | ||
| 73 | extern bool use_browser; | ||
| 74 | |||
| 75 | #ifdef NO_NEWT_SUPPORT | ||
| 76 | static inline void setup_browser(void) | ||
| 77 | { | ||
| 78 | setup_pager(); | ||
| 79 | } | ||
| 80 | static inline void exit_browser(bool wait_for_ok __used) {} | ||
| 81 | #else | ||
| 82 | void setup_browser(void); | ||
| 83 | void exit_browser(bool wait_for_ok); | ||
| 84 | #endif | ||
| 85 | |||
| 72 | extern const char *editor_program; | 86 | extern const char *editor_program; | 
| 73 | extern const char *excludes_file; | 87 | extern const char *excludes_file; | 
| 74 | 88 | ||
