X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-private.h;h=a56501e98908150fe62ea63d6845e5c650268db3;hp=8b317c2d8a3b9b59189de6982330773d6a7ff17e;hb=6b228e45099f0e472326bf2dbbefb7b55e154359;hpb=c9fbe6b58b8bff56b4c6774625b8c21846fe027d diff --git a/notmuch-private.h b/notmuch-private.h index 8b317c2d..a56501e9 100644 --- a/notmuch-private.h +++ b/notmuch-private.h @@ -217,15 +217,9 @@ notmuch_parse_date (const char *str, int *tz_offset); /* sha1.c */ -/* Create a hexadecimal string version of the SHA-1 digest of the - * named file. - * - * This function returns a newly allocated string which the caller - * should free() when finished. - * - * If any error occurs while reading the file, (permission denied, - * file not found, etc.), this function returns NULL. - */ +char * +notmuch_sha1_of_string (const char *str); + char * notmuch_sha1_of_file (const char *filename);