2010-08-08 22:48:31 +00:00
|
|
|
#ifndef _PERF_UI_HELPLINE_H_
|
|
|
|
#define _PERF_UI_HELPLINE_H_ 1
|
|
|
|
|
2011-10-13 11:52:46 +00:00
|
|
|
#include <stdio.h>
|
2011-10-17 11:14:58 +00:00
|
|
|
#include <stdarg.h>
|
2011-10-13 11:52:46 +00:00
|
|
|
|
2012-08-16 08:14:54 +00:00
|
|
|
#include "../util/cache.h"
|
|
|
|
|
2012-08-16 08:14:50 +00:00
|
|
|
struct ui_helpline {
|
|
|
|
void (*pop)(void);
|
|
|
|
void (*push)(const char *msg);
|
2012-11-14 16:47:41 +00:00
|
|
|
int (*show)(const char *fmt, va_list ap);
|
2012-08-16 08:14:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct ui_helpline *helpline_fns;
|
|
|
|
|
2010-08-10 18:58:50 +00:00
|
|
|
void ui_helpline__init(void);
|
2012-08-16 08:14:50 +00:00
|
|
|
|
2010-08-08 22:48:31 +00:00
|
|
|
void ui_helpline__pop(void);
|
|
|
|
void ui_helpline__push(const char *msg);
|
2010-08-10 18:44:20 +00:00
|
|
|
void ui_helpline__vpush(const char *fmt, va_list ap);
|
2010-08-08 22:48:31 +00:00
|
|
|
void ui_helpline__fpush(const char *fmt, ...);
|
|
|
|
void ui_helpline__puts(const char *msg);
|
2012-11-14 16:47:41 +00:00
|
|
|
int ui_helpline__vshow(const char *fmt, va_list ap);
|
2010-08-08 22:48:31 +00:00
|
|
|
|
2012-08-16 08:14:50 +00:00
|
|
|
extern char ui_helpline__current[512];
|
2012-09-28 09:32:02 +00:00
|
|
|
extern char ui_helpline__last_msg[];
|
2012-08-16 08:14:54 +00:00
|
|
|
|
2010-08-08 22:48:31 +00:00
|
|
|
#endif /* _PERF_UI_HELPLINE_H_ */
|