X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=localdb.h;h=b2a90fd9b9c9ad08f0bf217f1fd51157d3741506;hp=33a00294829b6af1700b87b737ebefa521a596a5;hb=35dd99aa3d47805b661fe3126a951710fa7dee11;hpb=0dfc70e01ddb7d2bce0db03d5364c0bd3a2bb308 diff --git a/localdb.h b/localdb.h index 33a0029..b2a90fd 100644 --- a/localdb.h +++ b/localdb.h @@ -54,6 +54,13 @@ public: const std::string &checksum, int size); bool GetSegmentChecksum(const std::string &segment, std::string *seg_path, std::string *seg_checksum); + + bool LoadChunkSignatures(ObjectReference ref, + void **buf, size_t *len, + std::string *algorithm); + void StoreChunkSignatures(ObjectReference ref, + const void *buf, size_t len, + const std::string &algorithm); private: sqlite3 *db; int64_t snapshotid;