]>
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>
10 // forward declaration
17 APT_PUBLIC
extern std::ostream c0out
;
18 APT_PUBLIC
extern std::ostream c1out
;
19 APT_PUBLIC
extern std::ostream c2out
;
20 APT_PUBLIC
extern std::ofstream devnull
;
21 APT_PUBLIC
extern unsigned int ScreenWidth
;
23 APT_PUBLIC
bool InitOutput();
25 void ListSingleVersion(pkgCacheFile
&CacheFile
, pkgRecords
&records
,
26 pkgCache::VerIterator V
, std::ostream
&out
,
27 bool include_summary
=true);
30 // helper to describe global state
31 APT_PUBLIC
void ShowBroken(std::ostream
&out
, CacheFile
&Cache
, bool const Now
);
32 APT_PUBLIC
void ShowBroken(std::ostream
&out
, pkgCacheFile
&Cache
, bool const Now
);
34 APT_PUBLIC
bool ShowList(std::ostream
&out
, std::string Title
, std::string List
,
35 std::string VersionsList
);
36 void ShowNew(std::ostream
&out
,CacheFile
&Cache
);
37 void ShowDel(std::ostream
&out
,CacheFile
&Cache
);
38 void ShowKept(std::ostream
&out
,CacheFile
&Cache
);
39 void ShowUpgraded(std::ostream
&out
,CacheFile
&Cache
);
40 bool ShowDowngraded(std::ostream
&out
,CacheFile
&Cache
);
41 bool ShowHold(std::ostream
&out
,CacheFile
&Cache
);
43 bool ShowEssential(std::ostream
&out
,CacheFile
&Cache
);
45 void Stats(std::ostream
&out
, pkgDepCache
&Dep
);
48 bool YnPrompt(bool Default
=true);
49 bool AnalPrompt(const char *Text
);