summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/pkgcache.h')
-rw-r--r--apt-pkg/pkgcache.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/apt-pkg/pkgcache.h b/apt-pkg/pkgcache.h
index 3f77d5eae..84fc56db8 100644
--- a/apt-pkg/pkgcache.h
+++ b/apt-pkg/pkgcache.h
@@ -177,11 +177,9 @@ class pkgCache /*{{{*/
LocalSource=(1<<1), /*!< local sources can't and will not be verified by hashes */
NoPackages=(1<<2), /*!< the file includes no package records itself, but additions like Translations */
};
- enum ReleaseFileFlags
- {
- NotAutomatic = (1 << 0), /*!< archive has a default pin of 1 */
- ButAutomaticUpgrades = (1 << 1), /*!< (together with the previous) archive has a default pin of 100 */
- PackagesRequireAuthorization = (1 << 2), /*!< (together with the previous) archive has a default pin of 100 */
+ enum ReleaseFileFlags {
+ NotAutomatic=(1<<0), /*!< archive has a default pin of 1 */
+ ButAutomaticUpgrades=(1<<1), /*!< (together with the previous) archive has a default pin of 100 */
};
enum ProvidesFlags {
MultiArchImplicit=pkgCache::Dep::MultiArchImplicit, /*!< generated internally, not spelled out in the index */
@@ -383,7 +381,11 @@ struct pkgCache::Header
On or more packages with the same name form a group, so we have
a simple way to access a package built for different architectures
Group exists in a singly linked list of group records starting at
- the hash index of the name in the pkgCache::Header::GrpHashTable */
+ the hash index of the name in the pkgCache::Header::GrpHashTable
+
+ They also act as a representation of source packages, allowing you to
+ iterate over all binaries produced by a source package.
+ */
struct pkgCache::Group
{
/** \brief Name of the group */
@@ -394,11 +396,15 @@ struct pkgCache::Group
map_pointer_t FirstPackage; // Package
/** \brief Link to the last package which belongs to the group */
map_pointer_t LastPackage; // Package
+
/** \brief Link to the next Group */
map_pointer_t Next; // Group
/** \brief unique sequel ID */
map_id_t ID;
+ /** \brief List of binary produces by source package with this name. */
+ map_pointer_t VersionsInSource; // Version
+
};
/*}}}*/
// Package structure /*{{{*/
@@ -637,11 +643,13 @@ struct pkgCache::Version
No two packages in existence should have the same VerStr
and Hash with different contents. */
- unsigned short Hash;
+ uint32_t Hash;
/** \brief unique sequel ID */
map_id_t ID;
/** \brief parsed priority value */
map_number_t Priority;
+ /** \brief next version in the source package (might be different binary) */
+ map_pointer_t NextInSource; // Version
};
/*}}}*/
// Description structure /*{{{*/