1b2441318SGreg Kroah-Hartman/* SPDX-License-Identifier: GPL-2.0 */
21e6dd077SArnaldo Carvalho de Melo#ifndef _PERF_UI_UTIL_H_
31e6dd077SArnaldo Carvalho de Melo#define _PERF_UI_UTIL_H_ 1
41e6dd077SArnaldo Carvalho de Melo
54610e413SArnaldo Carvalho de Melo#include <stdarg.h>
61e6dd077SArnaldo Carvalho de Melo
771172ed9SArnaldo Carvalho de Meloint ui__getch(int delay_secs);
8d0712656SArnaldo Carvalho de Meloint ui__popup_menu(int argc, char * const argv[], int *keyp);
91e6dd077SArnaldo Carvalho de Meloint ui__help_window(const char *text);
104610e413SArnaldo Carvalho de Meloint ui__dialog_yesno(const char *msg);
119b016119SArnaldo Carvalho de Melovoid __ui__info_window(const char *title, const char *text, const char *exit_msg);
129b016119SArnaldo Carvalho de Melovoid ui__info_window(const char *title, const char *text);
13ae55795eSArnaldo Carvalho de Meloint ui__question_window(const char *title, const char *text,
14ae55795eSArnaldo Carvalho de Melo			const char *exit_msg, int delay_secs);
15ba47a142SNamhyung Kim
16ba47a142SNamhyung Kimstruct perf_error_ops {
17ba47a142SNamhyung Kim	int (*error)(const char *format, va_list args);
18ba47a142SNamhyung Kim	int (*warning)(const char *format, va_list args);
19ba47a142SNamhyung Kim};
20ba47a142SNamhyung Kim
21ba47a142SNamhyung Kimint perf_error__register(struct perf_error_ops *eops);
22ba47a142SNamhyung Kimint perf_error__unregister(struct perf_error_ops *eops);
231e6dd077SArnaldo Carvalho de Melo
241e6dd077SArnaldo Carvalho de Melo#endif /* _PERF_UI_UTIL_H_ */
25