aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGravatar David Bremner <david@tethera.net>2014-01-24 23:07:43 -0400
committerGravatar David Bremner <david@tethera.net>2014-01-26 09:36:38 -0400
commit3b74537f495f60eed6ec10022a019acb78fd8e33 (patch)
tree40b35f70aca35578f1a2af377406f59ed275063a /lib
parentb54e2f4fb15bf313e80e52ee0b086b4f515520aa (diff)
lib: update documentation for notmuch_database_get_directory
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/notmuch.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h
index 68896ae7..3df1ade7 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -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.