ui.h 746 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 int use_browser;
  8. void setup_browser(bool fallback_to_pager);
  9. void exit_browser(bool wait_for_ok);
  10. #ifdef NEWT_SUPPORT
  11. int ui__init(void);
  12. void ui__exit(bool wait_for_ok);
  13. #else
  14. static inline int ui__init(void)
  15. {
  16. return -1;
  17. }
  18. static inline void ui__exit(bool wait_for_ok __maybe_unused) {}
  19. #endif
  20. #ifdef GTK2_SUPPORT
  21. int perf_gtk__init(void);
  22. void perf_gtk__exit(bool wait_for_ok);
  23. #else
  24. static inline int perf_gtk__init(void)
  25. {
  26. return -1;
  27. }
  28. static inline void perf_gtk__exit(bool wait_for_ok __maybe_unused) {}
  29. #endif
  30. void ui__refresh_dimensions(bool force);
  31. #endif /* _PERF_UI_H_ */