0001
0002 #ifndef _PERF_UI_H_
0003 #define _PERF_UI_H_ 1
0004
0005 #include <pthread.h>
0006 #include <stdbool.h>
0007 #include <linux/compiler.h>
0008
0009 extern pthread_mutex_t ui__lock;
0010 extern void *perf_gtk_handle;
0011
0012 extern int use_browser;
0013
0014 void setup_browser(bool fallback_to_pager);
0015 void exit_browser(bool wait_for_ok);
0016
0017 #ifdef HAVE_SLANG_SUPPORT
0018 int ui__init(void);
0019 void ui__exit(bool wait_for_ok);
0020 #else
0021 static inline int ui__init(void)
0022 {
0023 return -1;
0024 }
0025 static inline void ui__exit(bool wait_for_ok __maybe_unused) {}
0026 #endif
0027
0028 void ui__refresh_dimensions(bool force);
0029
0030 struct option;
0031
0032 int stdio__config_color(const struct option *opt, const char *mode, int unset);
0033
0034 #endif