ui.h 558 B

1234567891011121314151617181920212223242526272829
  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. #endif /* _PERF_UI_H_ */