X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=hash.h;h=5f14dabf48b62484ab3f028e71c1ffbeca70b202;hb=3cf2be27c9e54eaae6737adfb41f1fc86528aa84;hp=12d5b473f75c912e3ba6b2fb60ab5b8564757dfb;hpb=15f090d3b2f0bf3994aacd00ab07da3b1f65ea00;p=cumulus.git diff --git a/hash.h b/hash.h index 12d5b47..5f14dab 100644 --- a/hash.h +++ b/hash.h @@ -53,6 +53,9 @@ public: static Hash *New(); static Hash *New(const std::string& name); + // Computes and returns the hash of a file on disk. + static std::string hash_file(const char *filename); + protected: virtual const uint8_t *finalize() = 0;