1aca7a94dSNamhyung Kim #ifndef _PERF_UI_HELPLINE_H_ 2aca7a94dSNamhyung Kim #define _PERF_UI_HELPLINE_H_ 1 3aca7a94dSNamhyung Kim 4aca7a94dSNamhyung Kim #include <stdio.h> 5aca7a94dSNamhyung Kim #include <stdarg.h> 6aca7a94dSNamhyung Kim 70985a948SNamhyung Kim #include "../util/cache.h" 80985a948SNamhyung Kim 9e6e90468SNamhyung Kim struct ui_helpline { 10e6e90468SNamhyung Kim void (*pop)(void); 11e6e90468SNamhyung Kim void (*push)(const char *msg); 12*b56e5331SNamhyung Kim int (*show)(const char *fmt, va_list ap); 13e6e90468SNamhyung Kim }; 14e6e90468SNamhyung Kim 15e6e90468SNamhyung Kim extern struct ui_helpline *helpline_fns; 16e6e90468SNamhyung Kim 17aca7a94dSNamhyung Kim void ui_helpline__init(void); 18e6e90468SNamhyung Kim 19aca7a94dSNamhyung Kim void ui_helpline__pop(void); 20aca7a94dSNamhyung Kim void ui_helpline__push(const char *msg); 21aca7a94dSNamhyung Kim void ui_helpline__vpush(const char *fmt, va_list ap); 22aca7a94dSNamhyung Kim void ui_helpline__fpush(const char *fmt, ...); 23aca7a94dSNamhyung Kim void ui_helpline__puts(const char *msg); 24*b56e5331SNamhyung 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