helpline.h 701 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _PERF_UI_HELPLINE_H_
  2. #define _PERF_UI_HELPLINE_H_ 1
  3. #include <stdio.h>
  4. #include <stdarg.h>
  5. #include "../util/cache.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. int ui_helpline__vshow(const char *fmt, va_list ap);
  19. extern char ui_helpline__current[512];
  20. extern char ui_helpline__last_msg[];
  21. #endif /* _PERF_UI_HELPLINE_H_ */