]> git.cworth.org Git - notmuch/blobdiff - lib/notmuch.h
lib: catch Xapian exceptions in n_m_count_files
[notmuch] / lib / notmuch.h
index e544aafd60b6b28e6dacee5671b3a87c7d31f830..693e507602942ce88dde01b5ba598552e193ec24 100644 (file)
@@ -1412,7 +1412,8 @@ notmuch_message_get_replies (notmuch_message_t *message);
 
 /**
  * Get the total number of files associated with a message.
- * @returns Non-negative integer
+ * @returns Non-negative integer for file count.
+ * @returns Negative integer for error.
  * @since libnotmuch 5.0 (notmuch 0.25)
  */
 int
@@ -1503,6 +1504,8 @@ notmuch_message_set_flag (notmuch_message_t *message,
  * For the original textual representation of the Date header from the
  * message call notmuch_message_get_header() with a header value of
  * "date".
+ *
+ * Returns 0 in case of error.
  */
 time_t
 notmuch_message_get_date (notmuch_message_t *message);