X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=hash.h;h=5f14dabf48b62484ab3f028e71c1ffbeca70b202;hp=12d5b473f75c912e3ba6b2fb60ab5b8564757dfb;hb=8f92b619b6c3ca8758c102d29b33ca1d2b43f568;hpb=15f090d3b2f0bf3994aacd00ab07da3b1f65ea00 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;