1#ifndef _PERF_UI_H_ 2#define _PERF_UI_H_ 1 3 4#include <pthread.h> 5#include <stdbool.h> 6#include <linux/compiler.h> 7 8extern pthread_mutex_t ui__lock; 9 10extern int use_browser; 11 12void setup_browser(bool fallback_to_pager); 13void exit_browser(bool wait_for_ok); 14 15#ifdef SLANG_SUPPORT 16int ui__init(void); 17void ui__exit(bool wait_for_ok); 18#else 19static inline int ui__init(void) 20{ 21 return -1; 22} 23static inline void ui__exit(bool wait_for_ok __maybe_unused) {} 24#endif 25 26#ifdef GTK2_SUPPORT 27int perf_gtk__init(void); 28void perf_gtk__exit(bool wait_for_ok); 29#else 30static inline int perf_gtk__init(void) 31{ 32 return -1; 33} 34static inline void perf_gtk__exit(bool wait_for_ok __maybe_unused) {} 35#endif 36 37void ui__refresh_dimensions(bool force); 38 39#endif /* _PERF_UI_H_ */ 40