Linux Perf
helpline.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _PERF_UI_HELPLINE_H_
3 #define _PERF_UI_HELPLINE_H_ 1
4 
5 #include <stdio.h>
6 #include <stdarg.h>
7 
8 #include "../util/cache.h"
9 
10 struct ui_helpline {
11  void (*pop)(void);
12  void (*push)(const char *msg);
13  int (*show)(const char *fmt, va_list ap);
14 };
15 
16 extern struct ui_helpline *helpline_fns;
17 
18 void ui_helpline__init(void);
19 
20 void ui_helpline__pop(void);
21 void ui_helpline__push(const char *msg);
22 void ui_helpline__vpush(const char *fmt, va_list ap);
23 void ui_helpline__fpush(const char *fmt, ...);
24 void ui_helpline__puts(const char *msg);
25 void ui_helpline__printf(const char *fmt, ...);
26 int ui_helpline__vshow(const char *fmt, va_list ap);
27 
28 extern char ui_helpline__current[512];
29 extern char ui_helpline__last_msg[];
30 
31 #endif /* _PERF_UI_HELPLINE_H_ */
void ui_helpline__push(const char *msg)
Definition: helpline.c:40
void(* push)(const char *msg)
Definition: helpline.h:12
char ui_helpline__current[512]
Definition: helpline.c:11
void(* pop)(void)
Definition: helpline.h:11
const char * fmt
Definition: dso.c:193
struct ui_helpline * helpline_fns
Definition: helpline.c:33
void ui_helpline__printf(const char *fmt,...)
Definition: helpline.c:77
int(* show)(const char *fmt, va_list ap)
Definition: helpline.h:13
char ui_helpline__last_msg[]
Definition: helpline.c:12
void ui_helpline__pop(void)
Definition: helpline.c:35
int ui_helpline__vshow(const char *fmt, va_list ap)
Definition: helpline.c:72
void ui_helpline__vpush(const char *fmt, va_list ap)
Definition: helpline.c:45
void ui_helpline__init(void)
Definition: helpline.c:58
void ui_helpline__puts(const char *msg)
Definition: helpline.c:66
void ui_helpline__fpush(const char *fmt,...)
Definition: helpline.c:57