ui.h 694 B

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