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>
This commit is contained in:
Josh Poimboeuf 2015-12-13 22:18:07 -06:00 committed by Arnaldo Carvalho de Melo
parent 212e984a07
commit 32a56bd438
2 changed files with 8 additions and 4 deletions

View File

@ -4,6 +4,7 @@
#include <stdbool.h> #include <stdbool.h>
#include "util.h" #include "util.h"
#include "strbuf.h" #include "strbuf.h"
#include "pager.h"
#include "../perf.h" #include "../perf.h"
#include "../ui/ui.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 int config_error_nonbool(const char *);
extern const char *perf_config_dirname(const char *, 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); char *alias_lookup(const char *alias);
int split_cmdline(char *cmdline, const char ***argv); int split_cmdline(char *cmdline, const char ***argv);

7
tools/perf/util/pager.h Normal file
View File

@ -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 */