projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'mvo/feature/apt-manpage' into debian/sid
[apt.git]
/
ftparchive
/
cachedb.h
diff --git
a/ftparchive/cachedb.h
b/ftparchive/cachedb.h
index 377c4160728463117402a9c2f85f9ce1e82903a6..49b9a0ef5eee72a3d0239bc661fb61df5ad0982e 100644
(file)
--- a/
ftparchive/cachedb.h
+++ b/
ftparchive/cachedb.h
@@
-12,17
+12,19
@@
#ifndef CACHEDB_H
#define CACHEDB_H
#ifndef CACHEDB_H
#define CACHEDB_H
-
#include <apt-pkg/debfile.h>
#include <db.h>
#include <apt-pkg/debfile.h>
#include <db.h>
-#include <inttypes.h>
-#include <sys/stat.h>
#include <errno.h>
#include <string>
#include <errno.h>
#include <string>
+#include <string.h>
+#include <stdint.h>
+#include <stdio.h>
#include "contents.h"
#include "contents.h"
+class FileFd;
+
class CacheDB
{
protected:
class CacheDB
{
protected:
@@
-126,7
+128,8
@@
class CacheDB
Misses += S.Misses;
DeLinkBytes += S.DeLinkBytes;
};
Misses += S.Misses;
DeLinkBytes += S.DeLinkBytes;
};
- Stats() : Bytes(0), MD5Bytes(0), SHA1Bytes(0), SHA256Bytes(0), Packages(0), Misses(0), DeLinkBytes(0) {};
+ Stats() : Bytes(0), MD5Bytes(0), SHA1Bytes(0), SHA256Bytes(0),
+ SHA512Bytes(0),Packages(0), Misses(0), DeLinkBytes(0) {};
} Stats;
bool ReadyDB(std::string const &DB);
} Stats;
bool ReadyDB(std::string const &DB);
@@
-142,7
+145,7
@@
class CacheDB
bool Clean();
bool Clean();
- CacheDB(std::string const &DB) : Dbp(0), Fd(NULL), DebFile(0) {ReadyDB(DB);};
+ CacheDB(std::string const &DB) : Dbp(0), Fd(NULL), DebFile(0) {
TmpKey[0]='\0';
ReadyDB(DB);};
~CacheDB() {ReadyDB(std::string()); delete DebFile;};
};
~CacheDB() {ReadyDB(std::string()); delete DebFile;};
};