x86/xen: resume timer irqs early
[linux/fpc-iii.git] / tools / perf / ui / ui.h
blob70cb0d4eb8aa390c008a4d84c575662c2515280d
1 #ifndef _PERF_UI_H_
2 #define _PERF_UI_H_ 1
4 #include <pthread.h>
5 #include <stdbool.h>
6 #include <linux/compiler.h>
8 extern pthread_mutex_t ui__lock;
10 extern int use_browser;
12 void setup_browser(bool fallback_to_pager);
13 void exit_browser(bool wait_for_ok);
15 #ifdef SLANG_SUPPORT
16 int ui__init(void);
17 void ui__exit(bool wait_for_ok);
18 #else
19 static inline int ui__init(void)
21 return -1;
23 static inline void ui__exit(bool wait_for_ok __maybe_unused) {}
24 #endif
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)
32 return -1;
34 static inline void perf_gtk__exit(bool wait_for_ok __maybe_unused) {}
35 #endif
37 void ui__refresh_dimensions(bool force);
39 #endif /* _PERF_UI_H_ */