X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=localdb.h;fp=localdb.h;h=3f5e5ba7e659e3e0dd4bd197670cb9eed3848033;hp=bdf3b7c1f7477e17d18f93a8a6239002a094e649;hb=248b2455853ed082bf3b032fea4cb6b557a145ae;hpb=0e55c5307b65af2615f28c61c0026d80c250f0d6 diff --git a/localdb.h b/localdb.h index bdf3b7c..3f5e5ba 100644 --- a/localdb.h +++ b/localdb.h @@ -24,9 +24,9 @@ public: void Open(const char *path, const char *snapshot_name); void Close(); void StoreObject(const ObjectReference& ref, - const std::string &checksum, int64_t size); + const std::string &checksum, int64_t size, double age); ObjectReference FindObject(const std::string &checksum, int64_t size); - bool IsOldObject(const std::string &checksum, int64_t size); + bool IsOldObject(const std::string &checksum, int64_t size, double *age); void UseObject(const ObjectReference& ref); private: sqlite3 *db;