38 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef _PERF_UI_H_3#define _PERF_UI_H_ 14 5#include "../util/mutex.h"6#include <stdbool.h>7#include <linux/compiler.h>8 9extern struct mutex ui__lock;10extern void *perf_gtk_handle;11 12extern int use_browser;13 14void setup_browser(bool fallback_to_pager);15void exit_browser(bool wait_for_ok);16 17#ifdef HAVE_SLANG_SUPPORT18int ui__init(void);19void ui__exit(bool wait_for_ok);20#else21static inline int ui__init(void)22{23 return -1;24}25static inline void ui__exit(bool wait_for_ok __maybe_unused) {}26#endif27 28void ui__refresh_dimensions(bool force);29 30struct option;31 32int stdio__config_color(const struct option *opt, const char *mode, int unset);33 34void pthread__block_sigwinch(void);35void pthread__unblock_sigwinch(void);36 37#endif /* _PERF_UI_H_ */38