diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2015-12-13 23:18:07 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-12-14 10:19:40 -0500 |
commit | 32a56bd438ab3023d08874e2770aa0675364b8ab (patch) | |
tree | 8594b5c8b558b698b5c5dfd6c1260af843fd1124 /tools/perf | |
parent | 212e984a07d19c2e6b83da4ebac4e965dd92efd3 (diff) |
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/perf')
-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 @@ | |||
4 | #include <stdbool.h> | 4 | #include <stdbool.h> |
5 | #include "util.h" | 5 | #include "util.h" |
6 | #include "strbuf.h" | 6 | #include "strbuf.h" |
7 | #include "pager.h" | ||
7 | #include "../perf.h" | 8 | #include "../perf.h" |
8 | #include "../ui/ui.h" | 9 | #include "../ui/ui.h" |
9 | 10 | ||
@@ -28,10 +29,6 @@ extern int perf_config_bool(const char *, const char *); | |||
28 | extern int config_error_nonbool(const char *); | 29 | extern int config_error_nonbool(const char *); |
29 | extern const char *perf_config_dirname(const char *, const char *); | 30 | extern const char *perf_config_dirname(const char *, const char *); |
30 | 31 | ||
31 | /* pager.c */ | ||
32 | extern void setup_pager(void); | ||
33 | extern int pager_in_use(void); | ||
34 | |||
35 | char *alias_lookup(const char *alias); | 32 | char *alias_lookup(const char *alias); |
36 | int split_cmdline(char *cmdline, const char ***argv); | 33 | int split_cmdline(char *cmdline, const char ***argv); |
37 | 34 | ||
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 @@ | |||
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 */ | ||