summaryrefslogtreecommitdiff
path: root/apt-private/private-show.h
blob: 9e5fa995fc9921a4a4221e3e551af8e65766f1da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef APT_PRIVATE_SHOW_H
#define APT_PRIVATE_SHOW_H

#include <apt-pkg/macros.h>
#include <apt-pkg/pkgcache.h>
#include <apt-pkg/pkgrecords.h>

#include <iostream>

class CommandLine;
class pkgCacheFile;

APT_PUBLIC bool ShowPackage(CommandLine &CmdL);
APT_PUBLIC bool ShowSrcPackage(CommandLine &CmdL);
APT_PUBLIC bool Policy(CommandLine &CmdL);

pkgRecords::Parser &LookupParser(pkgRecords &Recs, pkgCache::VerIterator const &V, pkgCache::VerFileIterator &Vf);
bool DisplayRecordV1(pkgCacheFile &CacheFile, pkgRecords &Recs,
		     pkgCache::VerIterator const &V, pkgCache::VerFileIterator const &Vf,
		     char const *Buffer, size_t const Length, std::ostream &out);

#endif