X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=localdb.h;fp=localdb.h;h=4654b37a60a30cf1c22a9030bfca00c631beeda5;hp=3f5e5ba7e659e3e0dd4bd197670cb9eed3848033;hb=4b89157cdec2da9a016a7ea0f511a0f3ff43f6dc;hpb=e392d943a0bca2f12186321ae1658b739a5a5dd4 diff --git a/localdb.h b/localdb.h index 3f5e5ba..4654b37 100644 --- a/localdb.h +++ b/localdb.h @@ -27,6 +27,7 @@ public: 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, double *age); + bool IsAvailable(const ObjectReference &ref); void UseObject(const ObjectReference& ref); private: sqlite3 *db;