^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef _PERF_UI_HELPLINE_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define _PERF_UI_HELPLINE_H_ 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <stdio.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #include <stdarg.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) struct ui_helpline {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) void (*pop)(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) void (*push)(const char *msg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) int (*show)(const char *fmt, va_list ap);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) extern struct ui_helpline *helpline_fns;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) void ui_helpline__init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) void ui_helpline__pop(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) void ui_helpline__push(const char *msg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) void ui_helpline__vpush(const char *fmt, va_list ap);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) void ui_helpline__fpush(const char *fmt, ...);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) void ui_helpline__puts(const char *msg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) void ui_helpline__printf(const char *fmt, ...);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) int ui_helpline__vshow(const char *fmt, va_list ap);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) extern char ui_helpline__current[512];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) extern char ui_helpline__last_msg[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #endif /* _PERF_UI_HELPLINE_H_ */