Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / tools / perf / ui / ui.h
CommitLineData
5c35d69f
ACM
1#ifndef _PERF_UI_H_
2#define _PERF_UI_H_ 1
3
4#include <pthread.h>
71172ed9 5#include <stdbool.h>
59ed16b3 6#include <linux/compiler.h>
5c35d69f
ACM
7
8extern pthread_mutex_t ui__lock;
fc67297b 9extern void *perf_gtk_handle;
5c35d69f 10
59ed16b3
NK
11extern int use_browser;
12
13void setup_browser(bool fallback_to_pager);
14void exit_browser(bool wait_for_ok);
15
89fe808a 16#ifdef HAVE_SLANG_SUPPORT
59ed16b3
NK
17int 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
71172ed9
ACM
27void ui__refresh_dimensions(bool force);
28
5c35d69f 29#endif /* _PERF_UI_H_ */