blob: 70cb0d4eb8aa390c008a4d84c575662c2515280d [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;
9
Namhyung Kim59ed16b2012-11-13 22:30:35 +090010extern int use_browser;
11
12void setup_browser(bool fallback_to_pager);
13void exit_browser(bool wait_for_ok);
14
Arnaldo Carvalho de Melo6692c262013-03-28 11:34:10 -030015#ifdef SLANG_SUPPORT
Namhyung Kim59ed16b2012-11-13 22:30:35 +090016int ui__init(void);
17void ui__exit(bool wait_for_ok);
18#else
19static inline int ui__init(void)
20{
21 return -1;
22}
23static inline void ui__exit(bool wait_for_ok __maybe_unused) {}
24#endif
25
26#ifdef GTK2_SUPPORT
27int perf_gtk__init(void);
28void perf_gtk__exit(bool wait_for_ok);
29#else
30static inline int perf_gtk__init(void)
31{
32 return -1;
33}
34static inline void perf_gtk__exit(bool wait_for_ok __maybe_unused) {}
35#endif
36
Arnaldo Carvalho de Melo71172ed2011-10-25 13:45:16 -020037void ui__refresh_dimensions(bool force);
38
Arnaldo Carvalho de Melo5c35d692011-02-09 11:38:43 -020039#endif /* _PERF_UI_H_ */