X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=subfile.h;h=1a9667207f6fce12aa255891df10942719f70662;hp=571c955902b3b42208daabe0eaf10755d4b122b6;hb=HEAD;hpb=64bff41cb3ccdd60e767a5bb9ed8525d2dda1966 diff --git a/subfile.h b/subfile.h index 571c955..1a96672 100644 --- a/subfile.h +++ b/subfile.h @@ -62,9 +62,12 @@ public: static const int HASH_SIZE = 20; private: + std::string algorithm_name; + size_t hash_size; + struct chunk_info { - char hash[HASH_SIZE]; int offset, len; + std::string hash; }; struct block_summary { @@ -89,10 +92,6 @@ private: void index_chunks(ObjectReference ref); void free_analysis(); void store_block_signatures(ObjectReference ref, block_summary summary); - - std::string get_algorithm() { - return chunk_algorithm_name() + "/sha1"; - } }; #endif // _LBS_SUBFILE_H