linux/tools/perf/ui/helpline.h
<<
>>
Prefs
   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
  10struct ui_helpline {
  11        void (*pop)(void);
  12        void (*push)(const char *msg);
  13        int  (*show)(const char *fmt, va_list ap);
  14};
  15
  16extern struct ui_helpline *helpline_fns;
  17
  18void ui_helpline__init(void);
  19
  20void ui_helpline__pop(void);
  21void ui_helpline__push(const char *msg);
  22void ui_helpline__vpush(const char *fmt, va_list ap);
  23void ui_helpline__fpush(const char *fmt, ...);
  24void ui_helpline__puts(const char *msg);
  25void ui_helpline__printf(const char *fmt, ...);
  26int  ui_helpline__vshow(const char *fmt, va_list ap);
  27
  28extern char ui_helpline__current[512];
  29extern char ui_helpline__last_msg[];
  30
  31#endif /* _PERF_UI_HELPLINE_H_ */
  32