summaryrefslogtreecommitdiff
path: root/apt-private/private-show.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-10-16 21:34:51 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2015-11-04 18:04:02 +0100
commit501cd23e1e85e59d18e883496a0d7f7576778054 (patch)
tree4290c7eedcec665d432008184709abe2e2cc0547 /apt-private/private-show.h
parentc3ded84c6f99bda4caf63c8662416ffb0189d31b (diff)
centralize 'show' implementation of apt and apt-cache
The show commands have different styles in both binaries as the audience is potentially very different, but that doesn't mean we need to separate the implementation especially as they are slightly similar. This also allows us to switch between the different show versions at runtime via an option. Git-Dch: Ignore
Diffstat (limited to 'apt-private/private-show.h')
-rw-r--r--apt-private/private-show.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/apt-private/private-show.h b/apt-private/private-show.h
index 359aeeb28..b38c65f2f 100644
--- a/apt-private/private-show.h
+++ b/apt-private/private-show.h
@@ -1,14 +1,15 @@
#ifndef APT_PRIVATE_SHOW_H
#define APT_PRIVATE_SHOW_H
+#include <apt-pkg/pkgcache.h>
#include <apt-pkg/macros.h>
+#include <iostream>
+
class CommandLine;
+class pkgCacheFile;
-namespace APT {
- namespace Cmd {
+APT_PUBLIC bool ShowPackage(CommandLine &CmdL);
+APT_PUBLIC bool DisplayRecordV1(pkgCacheFile &CacheFile, pkgCache::VerIterator const &V, std::ostream &out);
- APT_PUBLIC bool ShowPackage(CommandLine &CmdL);
- }
-}
#endif