X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/c1a2237722820dcd5e387dda5a88085cf62e68b9..c46824ce2ac7b52b644078f997ecc1ea6303b50c:/apt-pkg/pkgcache.h?ds=sidebyside diff --git a/apt-pkg/pkgcache.h b/apt-pkg/pkgcache.h index a7d1e9424..2d174cc01 100644 --- a/apt-pkg/pkgcache.h +++ b/apt-pkg/pkgcache.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: pkgcache.h,v 1.11 1998/12/07 07:26:20 jgg Exp $ +// $Id: pkgcache.h,v 1.15 1998/12/14 08:07:29 jgg Exp $ /* ###################################################################### Cache - Structure definitions for the cache file @@ -82,7 +82,7 @@ class pkgCache { enum PkgFlags {Auto=(1<<0),New=(1<<1),Obsolete=(1<<2),Essential=(1<<3), ImmediateConf=(1<<4)}; - enum PkgFFlags {NotSource=(1<<0)}; + enum PkgFFlags {NotSource=(1<<0),NotAutomatic=(1<<1)}; }; protected: @@ -109,6 +109,7 @@ class pkgCache virtual bool ReMap(); inline bool Sync() {return Map.Sync();}; + inline MMap &GetMap() {return Map;}; // String hashing function (512 range) inline unsigned long Hash(string S) const {return sHash(S);}; @@ -152,6 +153,8 @@ struct pkgCache::Header unsigned long VersionCount; unsigned long DependsCount; unsigned long PackageFileCount; + unsigned long VerFileCount; + unsigned long ProvidesCount; // Offsets __apt_ptrloc FileList; // struct PackageFile @@ -197,14 +200,18 @@ struct pkgCache::PackageFile { // Names __apt_ptrloc FileName; // Stringtable + __apt_ptrloc Archive; // Stringtable + __apt_ptrloc Component; // Stringtable __apt_ptrloc Version; // Stringtable - __apt_ptrloc Distribution; // Stringtable - __apt_ptrloc Size; + __apt_ptrloc Origin; // Stringtable + __apt_ptrloc Label; // Stringtable + __apt_ptrloc Architecture; // Stringtable + unsigned long Size; + unsigned long Flags; // Linked list __apt_ptrloc NextFile; // PackageFile unsigned short ID; - unsigned long Flags; time_t mtime; // Modification time for the file };