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