blob: ab88383f8be85d5278dfaba5b6b6b07b11a6b2d2 [file] [log] [blame]
Arnaldo Carvalho de Melo5c35d692011-02-09 11:38:43 -02001#ifndef _PERF_UI_H_
2#define _PERF_UI_H_ 1
3
4#include <pthread.h>
Arnaldo Carvalho de Melo71172ed2011-10-25 13:45:16 -02005#include <stdbool.h>
Namhyung Kim59ed16b2012-11-13 22:30:35 +09006#include <linux/compiler.h>
Arnaldo Carvalho de Melo5c35d692011-02-09 11:38:43 -02007
8extern pthread_mutex_t ui__lock;
Namhyung Kimfc672972013-09-13 15:27:43 +09009extern void *perf_gtk_handle;
Arnaldo Carvalho de Melo5c35d692011-02-09 11:38:43 -020010
Namhyung Kim59ed16b2012-11-13 22:30:35 +090011extern int use_browser;
12
13void setup_browser(bool fallback_to_pager);
14void exit_browser(bool wait_for_ok);
15
Ingo Molnar89fe8082013-09-30 12:07:11 +020016#ifdef HAVE_SLANG_SUPPORT
Namhyung Kim59ed16b2012-11-13 22:30:35 +090017int ui__init(void);
18void ui__exit(bool wait_for_ok);
19#else
20static inline int ui__init(void)
21{
22 return -1;
23}
24static inline void ui__exit(bool wait_for_ok __maybe_unused) {}
25#endif
26
Arnaldo Carvalho de Melo71172ed2011-10-25 13:45:16 -020027void ui__refresh_dimensions(bool force);
28
Arnaldo Carvalho de Melo5c35d692011-02-09 11:38:43 -020029#endif /* _PERF_UI_H_ */