blob: 46181f4fc07ebf2133e97898bd21acf5fe9c7551 [file] [log] [blame]
Arnaldo Carvalho de Melo55755362010-08-08 19:48:31 -03001#ifndef _PERF_UI_HELPLINE_H_
2#define _PERF_UI_HELPLINE_H_ 1
3
Arnaldo Carvalho de Melo3af6e332011-10-13 08:52:46 -03004#include <stdio.h>
Mike Galbraith7bc72982011-10-17 09:14:58 -02005#include <stdarg.h>
Arnaldo Carvalho de Melo3af6e332011-10-13 08:52:46 -03006
Namhyung Kim0985a942012-08-16 17:14:54 +09007#include "../util/cache.h"
8
Namhyung Kime6e90462012-08-16 17:14:50 +09009struct ui_helpline {
10 void (*pop)(void);
11 void (*push)(const char *msg);
Namhyung Kimb56e5332012-11-15 01:47:41 +090012 int (*show)(const char *fmt, va_list ap);
Namhyung Kime6e90462012-08-16 17:14:50 +090013};
14
15extern struct ui_helpline *helpline_fns;
16
Arnaldo Carvalho de Melo1e6dd072010-08-10 15:58:50 -030017void ui_helpline__init(void);
Namhyung Kime6e90462012-08-16 17:14:50 +090018
Arnaldo Carvalho de Melo55755362010-08-08 19:48:31 -030019void ui_helpline__pop(void);
20void ui_helpline__push(const char *msg);
Arnaldo Carvalho de Melo59e8fe32010-08-10 15:44:20 -030021void ui_helpline__vpush(const char *fmt, va_list ap);
Arnaldo Carvalho de Melo55755362010-08-08 19:48:31 -030022void ui_helpline__fpush(const char *fmt, ...);
23void ui_helpline__puts(const char *msg);
Namhyung Kimb56e5332012-11-15 01:47:41 +090024int ui_helpline__vshow(const char *fmt, va_list ap);
Arnaldo Carvalho de Melo55755362010-08-08 19:48:31 -030025
Namhyung Kime6e90462012-08-16 17:14:50 +090026extern char ui_helpline__current[512];
Namhyung Kim1254b512012-09-28 18:32:02 +090027extern char ui_helpline__last_msg[];
Namhyung Kim0985a942012-08-16 17:14:54 +090028
Arnaldo Carvalho de Melo55755362010-08-08 19:48:31 -030029#endif /* _PERF_UI_HELPLINE_H_ */