diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2015-12-14 05:18:07 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-12-14 16:19:40 +0100 |
commit | 32a56bd438ab3023d08874e2770aa0675364b8ab (patch) | |
tree | 8594b5c8b558b698b5c5dfd6c1260af843fd1124 /tools | |
parent | perf build: Rename LIB_PATH -> API_PATH (diff) | |
download | linux-32a56bd438ab3023d08874e2770aa0675364b8ab.tar.xz linux-32a56bd438ab3023d08874e2770aa0675364b8ab.zip |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/cache.h | 5 | ||||
-rw-r--r-- | tools/perf/util/pager.h | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/tools/perf/util/cache.h b/tools/perf/util/cache.h index 4c2b76499dd5..9ca4a58f160d 100644 --- a/tools/perf/util/cache.h +++ b/tools/perf/util/cache.h @@ -4,6 +4,7 @@ #include <stdbool.h> #include "util.h" #include "strbuf.h" +#include "pager.h" #include "../perf.h" #include "../ui/ui.h" @@ -28,10 +29,6 @@ extern int perf_config_bool(const char *, const char *); extern int config_error_nonbool(const char *); extern const char *perf_config_dirname(const char *, const char *); -/* pager.c */ -extern void setup_pager(void); -extern int pager_in_use(void); - char *alias_lookup(const char *alias); int split_cmdline(char *cmdline, const char ***argv); diff --git a/tools/perf/util/pager.h b/tools/perf/util/pager.h new file mode 100644 index 000000000000..2794a83b7e85 --- /dev/null +++ b/tools/perf/util/pager.h @@ -0,0 +1,7 @@ +#ifndef __PERF_PAGER_H +#define __PERF_PAGER_H + +extern void setup_pager(void); +extern int pager_in_use(void); + +#endif /* __PERF_PAGER_H */ |