X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fquery.cc;fp=lib%2Fquery.cc;h=2581ee64a4932726307f68657ffcc1f889a27cee;hp=59e9141a50cc1f46c5fd48e3c2e2598dac01d22b;hb=1e982de508c39dae7a61403f536df74c180dfb72;hpb=fc63c1583335d3f09392a37f65edf0b795af2782 diff --git a/lib/query.cc b/lib/query.cc index 59e9141a..2581ee64 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -497,22 +497,15 @@ _notmuch_threads_destructor (notmuch_threads_t *threads) return 0; } - -notmuch_threads_t * -notmuch_query_search_threads (notmuch_query_t *query) +notmuch_status_t +notmuch_query_search_threads_st (notmuch_query_t *query, notmuch_threads_t **out) { - notmuch_status_t status; - notmuch_threads_t *threads; - status = notmuch_query_search_threads_st (query, &threads); - if (status) - return NULL; - else - return threads; + return notmuch_query_search_threads(query, out); } notmuch_status_t -notmuch_query_search_threads_st (notmuch_query_t *query, - notmuch_threads_t **out) +notmuch_query_search_threads (notmuch_query_t *query, + notmuch_threads_t **out) { notmuch_threads_t *threads; notmuch_messages_t *messages;