X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch.h;h=24708f3c5947c6819570f493bb249284e40407cc;hp=aa032e092e9b1b396d77309e4e25b54e1edde135;hb=35e21bfb6f5fa4a0b61a71860e1f7f04d9e3e274;hpb=45639881b5ddb56492bd3ba329e982517cc9ef54 diff --git a/lib/notmuch.h b/lib/notmuch.h index aa032e09..24708f3c 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -889,10 +889,12 @@ notmuch_query_add_tag_exclude (notmuch_query_t *query, const char *tag); * notmuch_query_t *query; * notmuch_threads_t *threads; * notmuch_thread_t *thread; + * notmuch_status_t stat; * * query = notmuch_query_create (database, query_string); * - * for (threads = notmuch_query_search_threads (query); + * for (stat = notmuch_query_search_threads (query, &threads); + * stat == NOTMUCH_STATUS_SUCCESS && * notmuch_threads_valid (threads); * notmuch_threads_move_to_next (threads)) * {