]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - tools/perf/ui/helpline.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / tools / perf / ui / helpline.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
5575536f
ACM
2#ifndef _PERF_UI_HELPLINE_H_
3#define _PERF_UI_HELPLINE_H_ 1
4
3af6e338 5#include <stdio.h>
7bc7298d 6#include <stdarg.h>
3af6e338 7
0985a948
NK
8#include "../util/cache.h"
9
e6e90468
NK
10struct ui_helpline {
11 void (*pop)(void);
12 void (*push)(const char *msg);
b56e5331 13 int (*show)(const char *fmt, va_list ap);
e6e90468
NK
14};
15
16extern struct ui_helpline *helpline_fns;
17
1e6dd077 18void ui_helpline__init(void);
e6e90468 19
5575536f
ACM
20void ui_helpline__pop(void);
21void ui_helpline__push(const char *msg);
59e8fe32 22void ui_helpline__vpush(const char *fmt, va_list ap);
5575536f
ACM
23void ui_helpline__fpush(const char *fmt, ...);
24void ui_helpline__puts(const char *msg);
9484b86e 25void ui_helpline__printf(const char *fmt, ...);
b56e5331 26int ui_helpline__vshow(const char *fmt, va_list ap);
5575536f 27
e6e90468 28extern char ui_helpline__current[512];
1254b51e 29extern char ui_helpline__last_msg[];
0985a948 30
5575536f 31#endif /* _PERF_UI_HELPLINE_H_ */