ui.h 655 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _PERF_UI_H_
  2. #define _PERF_UI_H_ 1
  3. #include <pthread.h>
  4. #include <stdbool.h>
  5. #include <linux/compiler.h>
  6. extern pthread_mutex_t ui__lock;
  7. extern void *perf_gtk_handle;
  8. extern int use_browser;
  9. void setup_browser(bool fallback_to_pager);
  10. void exit_browser(bool wait_for_ok);
  11. #ifdef HAVE_SLANG_SUPPORT
  12. int ui__init(void);
  13. void ui__exit(bool wait_for_ok);
  14. #else
  15. static inline int ui__init(void)
  16. {
  17. return -1;
  18. }
  19. static inline void ui__exit(bool wait_for_ok __maybe_unused) {}
  20. #endif
  21. void ui__refresh_dimensions(bool force);
  22. struct option;
  23. int stdio__config_color(const struct option *opt, const char *mode, int unset);
  24. #endif /* _PERF_UI_H_ */