diff options
author | Julian Andres Klode <jak@debian.org> | 2015-12-29 15:11:11 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-12-29 16:37:57 +0100 |
commit | 25c7a09d4a207bac875817559580f62c9ee07cb5 (patch) | |
tree | c6d92367a3be84be0dee48390505eea51792b6c0 /apt-pkg/pkgcache.h | |
parent | f161603953f92cc3e778439d7149e5b852f65277 (diff) |
Add support for calculating hashes over the entire cache
Diffstat (limited to 'apt-pkg/pkgcache.h')
-rw-r--r-- | apt-pkg/pkgcache.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-pkg/pkgcache.h b/apt-pkg/pkgcache.h index e44fd544c..7acfc01ba 100644 --- a/apt-pkg/pkgcache.h +++ b/apt-pkg/pkgcache.h @@ -224,6 +224,8 @@ class pkgCache /*{{{*/ inline map_id_t Hash(const std::string &S) const {return sHash(S);} inline map_id_t Hash(const char *S) const {return sHash(S);} + APT_HIDDEN uint32_t CacheHash(); + // Useful transformation things static const char *Priority(unsigned char Priority); @@ -364,7 +366,7 @@ struct pkgCache::Header map_pointer_t * PkgHashTableP() const { return (map_pointer_t*) (this + 1); } map_pointer_t * GrpHashTableP() const { return PkgHashTableP() + GetHashTableSize(); } - /** \brief Size of the complete cache file */ + /** \brief Hash of the file (TODO: Rename) */ map_filesize_small_t CacheFileSize; bool CheckSizes(Header &Against) const APT_PURE; |