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