]> git.ipfire.org Git - people/arne_f/kernel.git/blame - tools/perf/ui/ui.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[people/arne_f/kernel.git] / tools / perf / ui / ui.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
5c35d69f
ACM
2#ifndef _PERF_UI_H_
3#define _PERF_UI_H_ 1
4
5#include <pthread.h>
71172ed9 6#include <stdbool.h>
59ed16b3 7#include <linux/compiler.h>
5c35d69f
ACM
8
9extern pthread_mutex_t ui__lock;
fc67297b 10extern void *perf_gtk_handle;
5c35d69f 11
59ed16b3
NK
12extern int use_browser;
13
14void setup_browser(bool fallback_to_pager);
15void exit_browser(bool wait_for_ok);
16
89fe808a 17#ifdef HAVE_SLANG_SUPPORT
59ed16b3
NK
18int ui__init(void);
19void ui__exit(bool wait_for_ok);
20#else
21static inline int ui__init(void)
22{
23 return -1;
24}
25static inline void ui__exit(bool wait_for_ok __maybe_unused) {}
26#endif
27
71172ed9
ACM
28void ui__refresh_dimensions(bool force);
29
c09615f2
ACM
30struct option;
31
32int stdio__config_color(const struct option *opt, const char *mode, int unset);
33
5c35d69f 34#endif /* _PERF_UI_H_ */