Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v3.7-rc3 47 lines 1.1 kB view raw
1#ifndef _PERF_UI_HELPLINE_H_ 2#define _PERF_UI_HELPLINE_H_ 1 3 4#include <stdio.h> 5#include <stdarg.h> 6 7#include "../util/cache.h" 8 9struct ui_helpline { 10 void (*pop)(void); 11 void (*push)(const char *msg); 12}; 13 14extern struct ui_helpline *helpline_fns; 15 16void ui_helpline__init(void); 17 18void ui_helpline__pop(void); 19void ui_helpline__push(const char *msg); 20void ui_helpline__vpush(const char *fmt, va_list ap); 21void ui_helpline__fpush(const char *fmt, ...); 22void ui_helpline__puts(const char *msg); 23 24extern char ui_helpline__current[512]; 25 26#ifdef NEWT_SUPPORT 27extern char ui_helpline__last_msg[]; 28int ui_helpline__show_help(const char *format, va_list ap); 29#else 30static inline int ui_helpline__show_help(const char *format __maybe_unused, 31 va_list ap __maybe_unused) 32{ 33 return 0; 34} 35#endif /* NEWT_SUPPORT */ 36 37#ifdef GTK2_SUPPORT 38int perf_gtk__show_helpline(const char *format, va_list ap); 39#else 40static inline int perf_gtk__show_helpline(const char *format __maybe_unused, 41 va_list ap __maybe_unused) 42{ 43 return 0; 44} 45#endif /* GTK2_SUPPORT */ 46 47#endif /* _PERF_UI_HELPLINE_H_ */