1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2aca7a94dSNamhyung Kim #ifndef _PERF_UI_HELPLINE_H_ 3aca7a94dSNamhyung Kim #define _PERF_UI_HELPLINE_H_ 1 4aca7a94dSNamhyung Kim 5aca7a94dSNamhyung Kim #include <stdio.h> 6aca7a94dSNamhyung Kim #include <stdarg.h> 7aca7a94dSNamhyung Kim 8e6e90468SNamhyung Kim struct ui_helpline { 9e6e90468SNamhyung Kim void (*pop)(void); 10e6e90468SNamhyung Kim void (*push)(const char *msg); 11b56e5331SNamhyung Kim int (*show)(const char *fmt, va_list ap); 12e6e90468SNamhyung Kim }; 13e6e90468SNamhyung Kim 14e6e90468SNamhyung Kim extern struct ui_helpline *helpline_fns; 15e6e90468SNamhyung Kim 16aca7a94dSNamhyung Kim void ui_helpline__init(void); 17e6e90468SNamhyung Kim 18aca7a94dSNamhyung Kim void ui_helpline__pop(void); 19aca7a94dSNamhyung Kim void ui_helpline__push(const char *msg); 20aca7a94dSNamhyung Kim void ui_helpline__vpush(const char *fmt, va_list ap); 21aca7a94dSNamhyung Kim void ui_helpline__fpush(const char *fmt, ...); 22aca7a94dSNamhyung Kim void ui_helpline__puts(const char *msg); 239484b86eSArnaldo Carvalho de Melo void ui_helpline__printf(const char *fmt, ...); 24b56e5331SNamhyung Kim int ui_helpline__vshow(const char *fmt, va_list ap); 25aca7a94dSNamhyung Kim 26e6e90468SNamhyung Kim extern char ui_helpline__current[512]; 271254b51eSNamhyung Kim extern char ui_helpline__last_msg[]; 280985a948SNamhyung Kim 29aca7a94dSNamhyung Kim #endif /* _PERF_UI_HELPLINE_H_ */ 30