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

perf tools: Create pager.h

Move the 'pager' function prototypes into a new pager.h so that the
pager code can be moved out to a library.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/ba7c316474dd6bfc047e5c6dc4dcab39a982caf5.1449965119.git.jpoimboe@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Josh Poimboeuf and committed by
Arnaldo Carvalho de Melo
32a56bd4 212e984a

+8 -4
+1 -4
tools/perf/util/cache.h
··· 4 4 #include <stdbool.h> 5 5 #include "util.h" 6 6 #include "strbuf.h" 7 + #include "pager.h" 7 8 #include "../perf.h" 8 9 #include "../ui/ui.h" 9 10 ··· 28 27 extern int perf_config_bool(const char *, const char *); 29 28 extern int config_error_nonbool(const char *); 30 29 extern const char *perf_config_dirname(const char *, const char *); 31 - 32 - /* pager.c */ 33 - extern void setup_pager(void); 34 - extern int pager_in_use(void); 35 30 36 31 char *alias_lookup(const char *alias); 37 32 int split_cmdline(char *cmdline, const char ***argv);
+7
tools/perf/util/pager.h
··· 1 + #ifndef __PERF_PAGER_H 2 + #define __PERF_PAGER_H 3 + 4 + extern void setup_pager(void); 5 + extern int pager_in_use(void); 6 + 7 + #endif /* __PERF_PAGER_H */