ui.h 747 字节
Newer Older
1 2 3 4
#ifndef _PERF_UI_H_
#define _PERF_UI_H_ 1

#include <pthread.h>
5
#include <stdbool.h>
6
#include <linux/compiler.h>
7 8 9

extern pthread_mutex_t ui__lock;

10 11 12 13 14
extern int use_browser;

void setup_browser(bool fallback_to_pager);
void exit_browser(bool wait_for_ok);

15
#ifdef SLANG_SUPPORT
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
int ui__init(void);
void ui__exit(bool wait_for_ok);
#else
static inline int ui__init(void)
{
	return -1;
}
static inline void ui__exit(bool wait_for_ok __maybe_unused) {}
#endif

#ifdef GTK2_SUPPORT
int perf_gtk__init(void);
void perf_gtk__exit(bool wait_for_ok);
#else
static inline int perf_gtk__init(void)
{
	return -1;
}
static inline void perf_gtk__exit(bool wait_for_ok __maybe_unused) {}
#endif

37 38
void ui__refresh_dimensions(bool force);

39
#endif /* _PERF_UI_H_ */