]> git.notmuchmail.org Git - notmuch/commitdiff
lib: update documentation for notmuch_database_get_directory
authorDavid Bremner <david@tethera.net>
Sat, 25 Jan 2014 03:07:43 +0000 (23:07 -0400)
committerDavid Bremner <david@tethera.net>
Sun, 26 Jan 2014 13:36:38 +0000 (09:36 -0400)
Clarify that using the directory after destroying the corresponding
database is not permitted.

This is implicit in the description of notmuch_database_destroy, but
it doesn't hurt to be explicit, and we do express similar "ownership"
relationships at other places in the docs.

lib/notmuch.h

index 68896ae75afeeaa27347a284540160833bcd59ad..3df1ade788c6063ef3aaa0bb7f199b5c067978cc 100644 (file)
@@ -415,6 +415,10 @@ notmuch_database_end_atomic (notmuch_database_t *notmuch);
  * If this directory object does not exist in the database, this
  * returns NOTMUCH_STATUS_SUCCESS and sets *directory to NULL.
  *
+ * Otherwise the returned directory object is owned by the database
+ * and as such, will only be valid until notmuch_database_destroy is
+ * called.
+ *
  * Return value:
  *
  * NOTMUCH_STATUS_SUCCESS: Successfully retrieved directory.