// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: pkgcache.h,v 1.15 1998/12/14 08:07:29 jgg Exp $
+// $Id: pkgcache.h,v 1.18 1999/02/23 06:46:24 jgg Exp $
/* ######################################################################
Cache - Structure definitions for the cache file
struct Flag
{
- enum PkgFlags {Auto=(1<<0),New=(1<<1),Obsolete=(1<<2),Essential=(1<<3),
- ImmediateConf=(1<<4)};
+ enum PkgFlags {Auto=(1<<0),Essential=(1<<3),Important=(1<<4)};
enum PkgFFlags {NotSource=(1<<0),NotAutomatic=(1<<1)};
};
string CacheFile;
MMap ⤅
- static unsigned long sHash(string S);
- static unsigned long sHash(const char *S);
+ unsigned long sHash(string S) const;
+ unsigned long sHash(const char *S) const;
public:
DynamicMMap::Pool Pools[7];
// Rapid package name lookup
- __apt_ptrloc HashTable[2048];
+ __apt_ptrloc HashTable[2*1048];
bool CheckSizes(Header &Against) const;
Header();
{
__apt_ptrloc VerStr; // Stringtable
__apt_ptrloc Section; // StringTable (StringItem)
-
+ __apt_ptrloc Arch; // StringTable
+
// Lists
__apt_ptrloc FileList; // VerFile
__apt_ptrloc NextVer; // Version