]>
git.saurik.com Git - apt.git/blob - apt-private/private-output.h
1 #ifndef APT_PRIVATE_OUTPUT_H
2 #define APT_PRIVATE_OUTPUT_H
4 #include <apt-pkg/pkgcache.h>
5 #include <apt-pkg/macros.h>
11 // forward declaration
18 APT_PUBLIC
extern std::ostream c0out
;
19 APT_PUBLIC
extern std::ostream c1out
;
20 APT_PUBLIC
extern std::ostream c2out
;
21 APT_PUBLIC
extern std::ofstream devnull
;
22 APT_PUBLIC
extern unsigned int ScreenWidth
;
24 APT_PUBLIC
bool InitOutput(std::basic_streambuf
<char> * const out
= std::cout
.rdbuf());
26 void ListSingleVersion(pkgCacheFile
&CacheFile
, pkgRecords
&records
,
27 pkgCache::VerIterator
const &V
, std::ostream
&out
,
28 std::string
const &format
);
31 // helper to describe global state
32 APT_PUBLIC
void ShowBroken(std::ostream
&out
, CacheFile
&Cache
, bool const Now
);
33 APT_PUBLIC
void ShowBroken(std::ostream
&out
, pkgCacheFile
&Cache
, bool const Now
);
35 APT_PUBLIC
bool ShowList(std::ostream
&out
, std::string Title
, std::string List
,
36 std::string VersionsList
);
37 void ShowNew(std::ostream
&out
,CacheFile
&Cache
);
38 void ShowDel(std::ostream
&out
,CacheFile
&Cache
);
39 void ShowKept(std::ostream
&out
,CacheFile
&Cache
);
40 void ShowUpgraded(std::ostream
&out
,CacheFile
&Cache
);
41 bool ShowDowngraded(std::ostream
&out
,CacheFile
&Cache
);
42 bool ShowHold(std::ostream
&out
,CacheFile
&Cache
);
44 bool ShowEssential(std::ostream
&out
,CacheFile
&Cache
);
46 void Stats(std::ostream
&out
, pkgDepCache
&Dep
);
49 bool YnPrompt(bool Default
=true);
50 bool AnalPrompt(const char *Text
);