helpline.h 788 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _PERF_UI_HELPLINE_H_
  3. #define _PERF_UI_HELPLINE_H_ 1
  4. #include <stdio.h>
  5. #include <stdarg.h>
  6. #include "../util/cache.h"
  7. struct ui_helpline {
  8. void (*pop)(void);
  9. void (*push)(const char *msg);
  10. int (*show)(const char *fmt, va_list ap);
  11. };
  12. extern struct ui_helpline *helpline_fns;
  13. void ui_helpline__init(void);
  14. void ui_helpline__pop(void);
  15. void ui_helpline__push(const char *msg);
  16. void ui_helpline__vpush(const char *fmt, va_list ap);
  17. void ui_helpline__fpush(const char *fmt, ...);
  18. void ui_helpline__puts(const char *msg);
  19. void ui_helpline__printf(const char *fmt, ...);
  20. int ui_helpline__vshow(const char *fmt, va_list ap);
  21. extern char ui_helpline__current[512];
  22. extern char ui_helpline__last_msg[];
  23. #endif /* _PERF_UI_HELPLINE_H_ */