helpline.h 760 B

1234567891011121314151617181920212223242526272829
  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. struct ui_helpline {
  7. void (*pop)(void);
  8. void (*push)(const char *msg);
  9. int (*show)(const char *fmt, va_list ap);
  10. };
  11. extern struct ui_helpline *helpline_fns;
  12. void ui_helpline__init(void);
  13. void ui_helpline__pop(void);
  14. void ui_helpline__push(const char *msg);
  15. void ui_helpline__vpush(const char *fmt, va_list ap);
  16. void ui_helpline__fpush(const char *fmt, ...);
  17. void ui_helpline__puts(const char *msg);
  18. void ui_helpline__printf(const char *fmt, ...);
  19. int ui_helpline__vshow(const char *fmt, va_list ap);
  20. extern char ui_helpline__current[512];
  21. extern char ui_helpline__last_msg[];
  22. #endif /* _PERF_UI_HELPLINE_H_ */