X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-private.h;h=2d64a458684ae092ae530ea354dd4ca4c65b8191;hp=bb3f62c1aa32e5eadf05c216de14a55e94d54284;hb=1ecdef59f5f3b5b1e9f00bbf27349fd5d48d747f;hpb=84480738a5e225c145eeaac5c39bb858f6592e95 diff --git a/notmuch-private.h b/notmuch-private.h index bb3f62c1..2d64a458 100644 --- a/notmuch-private.h +++ b/notmuch-private.h @@ -192,6 +192,20 @@ notmuch_message_file_get_header (notmuch_message_file_t *message, time_t 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_file (const char *filename); + NOTMUCH_END_DECLS #endif