From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934901AbbLRIuF (ORCPT ); Fri, 18 Dec 2015 03:50:05 -0500 Received: from terminus.zytor.com ([198.137.202.10]:51839 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932311AbbLRIuA (ORCPT ); Fri, 18 Dec 2015 03:50:00 -0500 Date: Fri, 18 Dec 2015 00:49:25 -0800 From: tip-bot for Josh Poimboeuf Message-ID: Cc: mingo@kernel.org, namhyung@kernel.org, linux-kernel@vger.kernel.org, jpoimboe@redhat.com, tglx@linutronix.de, hpa@zytor.com, peterz@infradead.org, acme@redhat.com, jolsa@redhat.com Reply-To: jpoimboe@redhat.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, peterz@infradead.org, hpa@zytor.com, acme@redhat.com, jolsa@redhat.com, mingo@kernel.org, namhyung@kernel.org In-Reply-To: References: To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Create pager.h Git-Commit-ID: 32a56bd438ab3023d08874e2770aa0675364b8ab X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 32a56bd438ab3023d08874e2770aa0675364b8ab Gitweb: http://git.kernel.org/tip/32a56bd438ab3023d08874e2770aa0675364b8ab Author: Josh Poimboeuf AuthorDate: Sun, 13 Dec 2015 22:18:07 -0600 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 14 Dec 2015 12:19:40 -0300 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 Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/ba7c316474dd6bfc047e5c6dc4dcab39a982caf5.1449965119.git.jpoimboe@redhat.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/cache.h | 5 +---- 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 4c2b764..9ca4a58 100644 --- a/tools/perf/util/cache.h +++ b/tools/perf/util/cache.h @@ -4,6 +4,7 @@ #include #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 0000000..2794a83 --- /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 */