]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch.h
lib/n_d_needs_upgrade: handle error return from n_d_get_version
[notmuch] / lib / notmuch.h
index 0dd442d46571e0b5d19e01e0c779f72811d1e7da..f9e9cc413bcbe3daddde0431cbc07dc6f590a149 100644 (file)
@@ -431,6 +431,8 @@ notmuch_database_get_path (notmuch_database_t *database);
 
 /**
  * Return the database format version of the given database.
+ *
+ * @retval 0 on error
  */
 unsigned int
 notmuch_database_get_version (notmuch_database_t *database);
@@ -444,6 +446,9 @@ notmuch_database_get_version (notmuch_database_t *database);
  * fail with NOTMUCH_STATUS_UPGRADE_REQUIRED.  This always returns
  * FALSE for a read-only database because there's no way to upgrade a
  * read-only database.
+ *
+ * Also returns FALSE if an error occurs accessing the database.
+ *
  */
 notmuch_bool_t
 notmuch_database_needs_upgrade (notmuch_database_t *database);