X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch.h;h=505ad19fe90470c958fa9d59805af929b588af8e;hp=921b0fcfa519ee3f4eb54827ad1ac92d64a4c8c4;hb=138fd38afe6c6d44179952dd17c4b07e9223ad37;hpb=9ef68f1444de981c47af06c948e3aa3ca5a377c8 diff --git a/lib/notmuch.h b/lib/notmuch.h index 921b0fcf..505ad19f 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -439,6 +439,8 @@ notmuch_query_search_threads (notmuch_query_t *query); * notmuch_messages_t object. (For consistency, we do provide a * notmuch_messages_destroy function, but there's no good * reason to call it if the query is about to be destroyed). + * + * If a Xapian exception occurs this function will return NULL. */ notmuch_messages_t * notmuch_query_search_messages (notmuch_query_t *query); @@ -506,6 +508,9 @@ notmuch_threads_destroy (notmuch_threads_t *threads); * * This function performs a search and returns Xapian's best * guess as to number of matching messages. + * + * If a Xapian exception occurs, this function may return 0 (after + * printing a message). */ unsigned notmuch_query_count_messages (notmuch_query_t *query);