X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=subfile.h;h=1a9667207f6fce12aa255891df10942719f70662;hp=571c955902b3b42208daabe0eaf10755d4b122b6;hb=adc96a88db941bd79f4be217ac29b2dee86f5ba7;hpb=197d9dca9416c09c7e79e56b88b9eb53c26d30d7 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