Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Arnaldo Carvalho de Melo | 5575536 | 2010-08-08 19:48:31 -0300 | [diff] [blame] | 2 | #ifndef _PERF_UI_HELPLINE_H_ |
| 3 | #define _PERF_UI_HELPLINE_H_ 1 |
| 4 | |
Arnaldo Carvalho de Melo | 3af6e33 | 2011-10-13 08:52:46 -0300 | [diff] [blame] | 5 | #include <stdio.h> |
Mike Galbraith | 7bc7298 | 2011-10-17 09:14:58 -0200 | [diff] [blame] | 6 | #include <stdarg.h> |
Arnaldo Carvalho de Melo | 3af6e33 | 2011-10-13 08:52:46 -0300 | [diff] [blame] | 7 | |
Namhyung Kim | 0985a94 | 2012-08-16 17:14:54 +0900 | [diff] [blame] | 8 | #include "../util/cache.h" |
| 9 | |
Namhyung Kim | e6e9046 | 2012-08-16 17:14:50 +0900 | [diff] [blame] | 10 | struct ui_helpline { |
| 11 | void (*pop)(void); |
| 12 | void (*push)(const char *msg); |
Namhyung Kim | b56e533 | 2012-11-15 01:47:41 +0900 | [diff] [blame] | 13 | int (*show)(const char *fmt, va_list ap); |
Namhyung Kim | e6e9046 | 2012-08-16 17:14:50 +0900 | [diff] [blame] | 14 | }; |
| 15 | |
| 16 | extern struct ui_helpline *helpline_fns; |
| 17 | |
Arnaldo Carvalho de Melo | 1e6dd07 | 2010-08-10 15:58:50 -0300 | [diff] [blame] | 18 | void ui_helpline__init(void); |
Namhyung Kim | e6e9046 | 2012-08-16 17:14:50 +0900 | [diff] [blame] | 19 | |
Arnaldo Carvalho de Melo | 5575536 | 2010-08-08 19:48:31 -0300 | [diff] [blame] | 20 | void ui_helpline__pop(void); |
| 21 | void ui_helpline__push(const char *msg); |
Arnaldo Carvalho de Melo | 59e8fe3 | 2010-08-10 15:44:20 -0300 | [diff] [blame] | 22 | void ui_helpline__vpush(const char *fmt, va_list ap); |
Arnaldo Carvalho de Melo | 5575536 | 2010-08-08 19:48:31 -0300 | [diff] [blame] | 23 | void ui_helpline__fpush(const char *fmt, ...); |
| 24 | void ui_helpline__puts(const char *msg); |
Arnaldo Carvalho de Melo | 9484b86 | 2016-11-25 15:48:25 -0300 | [diff] [blame] | 25 | void ui_helpline__printf(const char *fmt, ...); |
Namhyung Kim | b56e533 | 2012-11-15 01:47:41 +0900 | [diff] [blame] | 26 | int ui_helpline__vshow(const char *fmt, va_list ap); |
Arnaldo Carvalho de Melo | 5575536 | 2010-08-08 19:48:31 -0300 | [diff] [blame] | 27 | |
Namhyung Kim | e6e9046 | 2012-08-16 17:14:50 +0900 | [diff] [blame] | 28 | extern char ui_helpline__current[512]; |
Namhyung Kim | 1254b51e | 2012-09-28 18:32:02 +0900 | [diff] [blame] | 29 | extern char ui_helpline__last_msg[]; |
Namhyung Kim | 0985a94 | 2012-08-16 17:14:54 +0900 | [diff] [blame] | 30 | |
Arnaldo Carvalho de Melo | 5575536 | 2010-08-08 19:48:31 -0300 | [diff] [blame] | 31 | #endif /* _PERF_UI_HELPLINE_H_ */ |