X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=localdb.h;h=0fce30dbd2a83302a16353fe59a7abd934d70389;hb=90073d1fa61f5ac3f033dc6aab351b9add40dcaf;hp=3f5e5ba7e659e3e0dd4bd197670cb9eed3848033;hpb=248b2455853ed082bf3b032fea4cb6b557a145ae;p=cumulus.git diff --git a/localdb.h b/localdb.h index 3f5e5ba..0fce30d 100644 --- a/localdb.h +++ b/localdb.h @@ -21,12 +21,14 @@ class LocalDb { public: - void Open(const char *path, const char *snapshot_name); + void Open(const char *path, const char *snapshot_name, + const char *snapshot_scheme); void Close(); void StoreObject(const ObjectReference& ref, 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;