Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / tools / perf / ui / ui.h
blob4b6fb6c7a542c5c5afadd48c0ebb571c0ad420e0
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;
9 extern void *perf_gtk_handle;
11 extern int use_browser;
13 void setup_browser(bool fallback_to_pager);
14 void exit_browser(bool wait_for_ok);
16 #ifdef HAVE_SLANG_SUPPORT
17 int ui__init(void);
18 void ui__exit(bool wait_for_ok);
19 #else
20 static inline int ui__init(void)
22 return -1;
24 static inline void ui__exit(bool wait_for_ok __maybe_unused) {}
25 #endif
27 void ui__refresh_dimensions(bool force);
29 struct option;
31 int stdio__config_color(const struct option *opt, const char *mode, int unset);
33 #endif /* _PERF_UI_H_ */