summaryrefslogtreecommitdiff
path: root/apt-private/private-output.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-11-08 20:44:44 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2014-11-09 21:45:55 +0100
commitd9e518c6f7dc0ad464495b586d1b8e115d54d41a (patch)
tree87db13413b5dde823a556e40f71632994d4f9650 /apt-private/private-output.h
parentad7e0941b376d792911f240377094a2e78ca8756 (diff)
use the same code to detect quiet setting in all tools
Git-Dch: Ignore
Diffstat (limited to 'apt-private/private-output.h')
-rw-r--r--apt-private/private-output.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-private/private-output.h b/apt-private/private-output.h
index e0dc9bf62..d5b57adec 100644
--- a/apt-private/private-output.h
+++ b/apt-private/private-output.h
@@ -6,6 +6,7 @@
#include <fstream>
#include <string>
+#include <iostream>
// forward declaration
class pkgCacheFile;
@@ -20,7 +21,7 @@ APT_PUBLIC extern std::ostream c2out;
APT_PUBLIC extern std::ofstream devnull;
APT_PUBLIC extern unsigned int ScreenWidth;
-APT_PUBLIC bool InitOutput();
+APT_PUBLIC bool InitOutput(std::basic_streambuf<char> * const out = std::cout.rdbuf());
void ListSingleVersion(pkgCacheFile &CacheFile, pkgRecords &records,
pkgCache::VerIterator const &V, std::ostream &out,