0001
0002 #ifndef _PERF_UI_HELPLINE_H_
0003 #define _PERF_UI_HELPLINE_H_ 1
0004
0005 #include <stdio.h>
0006 #include <stdarg.h>
0007
0008 struct ui_helpline {
0009 void (*pop)(void);
0010 void (*push)(const char *msg);
0011 int (*show)(const char *fmt, va_list ap);
0012 };
0013
0014 extern struct ui_helpline *helpline_fns;
0015
0016 void ui_helpline__init(void);
0017
0018 void ui_helpline__pop(void);
0019 void ui_helpline__push(const char *msg);
0020 void ui_helpline__vpush(const char *fmt, va_list ap);
0021 void ui_helpline__fpush(const char *fmt, ...);
0022 void ui_helpline__puts(const char *msg);
0023 void ui_helpline__printf(const char *fmt, ...);
0024 int ui_helpline__vshow(const char *fmt, va_list ap);
0025
0026 extern char ui_helpline__current[512];
0027 extern char ui_helpline__last_msg[];
0028
0029 #endif