1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2aca7a94dSNamhyung Kim #ifndef _PERF_UI_H_ 3aca7a94dSNamhyung Kim #define _PERF_UI_H_ 1 4aca7a94dSNamhyung Kim 582aff6ccSIan Rogers #include "../util/mutex.h" 6aca7a94dSNamhyung Kim #include <stdbool.h> 759ed16b3SNamhyung Kim #include <linux/compiler.h> 8aca7a94dSNamhyung Kim 982aff6ccSIan Rogers extern struct mutex ui__lock; 10fc67297bSNamhyung Kim extern void *perf_gtk_handle; 11aca7a94dSNamhyung Kim 1259ed16b3SNamhyung Kim extern int use_browser; 1359ed16b3SNamhyung Kim 1459ed16b3SNamhyung Kim void setup_browser(bool fallback_to_pager); 1559ed16b3SNamhyung Kim void exit_browser(bool wait_for_ok); 1659ed16b3SNamhyung Kim 1789fe808aSIngo Molnar #ifdef HAVE_SLANG_SUPPORT 1859ed16b3SNamhyung Kim int ui__init(void); 1959ed16b3SNamhyung Kim void ui__exit(bool wait_for_ok); 2059ed16b3SNamhyung Kim #else ui__init(void)2159ed16b3SNamhyung Kimstatic inline int ui__init(void) 2259ed16b3SNamhyung Kim { 2359ed16b3SNamhyung Kim return -1; 2459ed16b3SNamhyung Kim } ui__exit(bool wait_for_ok __maybe_unused)2559ed16b3SNamhyung Kimstatic inline void ui__exit(bool wait_for_ok __maybe_unused) {} 2659ed16b3SNamhyung Kim #endif 2759ed16b3SNamhyung Kim 28aca7a94dSNamhyung Kim void ui__refresh_dimensions(bool force); 29aca7a94dSNamhyung Kim 30c09615f2SArnaldo Carvalho de Melo struct option; 31c09615f2SArnaldo Carvalho de Melo 32c09615f2SArnaldo Carvalho de Melo int stdio__config_color(const struct option *opt, const char *mode, int unset); 33c09615f2SArnaldo Carvalho de Melo 34*cd8ef949SIan Rogers void pthread__block_sigwinch(void); 35*cd8ef949SIan Rogers void pthread__unblock_sigwinch(void); 36*cd8ef949SIan Rogers 37aca7a94dSNamhyung Kim #endif /* _PERF_UI_H_ */ 38