Linux Perf
ui.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _PERF_UI_H_
3 #define _PERF_UI_H_ 1
4 
5 #include <pthread.h>
6 #include <stdbool.h>
7 #include <linux/compiler.h>
8 
9 extern pthread_mutex_t ui__lock;
10 extern void *perf_gtk_handle;
11 
12 extern int use_browser;
13 
14 void setup_browser(bool fallback_to_pager);
15 void exit_browser(bool wait_for_ok);
16 
17 #ifdef HAVE_SLANG_SUPPORT
18 int ui__init(void);
19 void ui__exit(bool wait_for_ok);
20 #else
21 static inline int ui__init(void)
22 {
23  return -1;
24 }
25 static inline void ui__exit(bool wait_for_ok __maybe_unused) {}
26 #endif
27 
28 void ui__refresh_dimensions(bool force);
29 
30 struct option;
31 
32 int stdio__config_color(const struct option *opt, const char *mode, int unset);
33 
34 #endif /* _PERF_UI_H_ */
static bool force
Definition: builtin-diff.c:68
void ui__refresh_dimensions(bool force)
Definition: setup.c:28
void * perf_gtk_handle
Definition: setup.c:11
int use_browser
Definition: setup.c:12
static int ui__init(void)
Definition: ui.h:21
int stdio__config_color(const struct option *opt, const char *mode, int unset)
void setup_browser(bool fallback_to_pager)
Definition: setup.c:76
pthread_mutex_t ui__lock
Definition: setup.c:10
static void ui__exit(bool wait_for_ok __maybe_unused)
Definition: ui.h:25
void exit_browser(bool wait_for_ok)
Definition: setup.c:106