Arnaldo Carvalho de Melo | 5c35d69 | 2011-02-09 11:38:43 -0200 | [diff] [blame] | 1 | #ifndef _PERF_UI_H_ |
| 2 | #define _PERF_UI_H_ 1 |
| 3 | |
| 4 | #include <pthread.h> |
Arnaldo Carvalho de Melo | 71172ed | 2011-10-25 13:45:16 -0200 | [diff] [blame] | 5 | #include <stdbool.h> |
Namhyung Kim | 59ed16b | 2012-11-13 22:30:35 +0900 | [diff] [blame] | 6 | #include <linux/compiler.h> |
Arnaldo Carvalho de Melo | 5c35d69 | 2011-02-09 11:38:43 -0200 | [diff] [blame] | 7 | |
| 8 | extern pthread_mutex_t ui__lock; |
| 9 | |
Namhyung Kim | 59ed16b | 2012-11-13 22:30:35 +0900 | [diff] [blame] | 10 | extern int use_browser; |
| 11 | |
| 12 | void setup_browser(bool fallback_to_pager); |
| 13 | void exit_browser(bool wait_for_ok); |
| 14 | |
Ingo Molnar | 89fe808 | 2013-09-30 12:07:11 +0200 | [diff] [blame^] | 15 | #ifdef HAVE_SLANG_SUPPORT |
Namhyung Kim | 59ed16b | 2012-11-13 22:30:35 +0900 | [diff] [blame] | 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 | |
Ingo Molnar | 89fe808 | 2013-09-30 12:07:11 +0200 | [diff] [blame^] | 26 | #ifdef HAVE_GTK2_SUPPORT |
Namhyung Kim | 59ed16b | 2012-11-13 22:30:35 +0900 | [diff] [blame] | 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 | |
Arnaldo Carvalho de Melo | 71172ed | 2011-10-25 13:45:16 -0200 | [diff] [blame] | 37 | void ui__refresh_dimensions(bool force); |
| 38 | |
Arnaldo Carvalho de Melo | 5c35d69 | 2011-02-09 11:38:43 -0200 | [diff] [blame] | 39 | #endif /* _PERF_UI_H_ */ |