apt @VERSION@
Public Types | Public Attributes

pkgCache::Version Struct Reference

information for a single version of a package More...

#include <pkgcache.h>

List of all members.

Public Types

enum  {
  None, All, Foreign, Same,
  Allowed, AllForeign, AllAllowed
}
 

stores the MultiArch capabilities of this version

More...

Public Attributes

map_ptrloc VerStr
 complete version string
map_ptrloc Section
 section this version is filled in
enum pkgCache::Version:: { ... }  MultiArch
map_ptrloc FileList
 references all the PackageFile's that this version came from
map_ptrloc NextVer
 next (lower or equal) version in the linked list
map_ptrloc DescriptionList
 next description in the linked list
map_ptrloc DependsList
 base of the dependency list
map_ptrloc ParentPkg
 links to the owning package
map_ptrloc ProvidesList
 list of pkgCache::Provides
unsigned long long Size
 archive size for this version
unsigned long long InstalledSize
 uncompressed size for this version
unsigned short Hash
 characteristic value representing this version
unsigned int ID
 unique sequel ID
unsigned char Priority
 parsed priority value

Detailed Description

information for a single version of a package

The version list is always sorted from highest version to lowest version by the generator. Equal version numbers are either merged or handled as separate versions based on the Hash value.


Member Enumeration Documentation

anonymous enum

stores the MultiArch capabilities of this version

None is the default and doesn't trigger special behaviour, Foreign means that this version can fulfill dependencies even if it is built for another architecture as the requester. Same indicates that builds for different architectures can be co-installed on the system


Member Data Documentation

map_ptrloc FileList

references all the PackageFile's that this version came from

FileList can be used to determine what distribution(s) the Version applies to. If FileList is 0 then this is a blank version. The structure should also have a 0 in all other fields excluding pkgCache::Version::VerStr and Possibly pkgCache::Version::NextVer.

unsigned short Hash

characteristic value representing this version

No two packages in existence should have the same VerStr and Hash with different contents.

Referenced by pkgCache::VerIterator::SimilarVer().

map_ptrloc ParentPkg

links to the owning package

This allows reverse dependencies to determine the package

unsigned long long Size

archive size for this version

For Debian this is the size of the .deb file.


The documentation for this struct was generated from the following file: