diff options
| author | David Bremner <david@tethera.net> | 2017-02-26 17:21:32 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-03-22 08:35:07 -0300 |
| commit | 86cbd215eb67d7b996c977352a50e70c101cb641 (patch) | |
| tree | 2186342f5aa9f2d11c275eb30cfbbca5330e4fa2 /lib/query.cc | |
| parent | 1e982de508c39dae7a61403f536df74c180dfb72 (diff) | |
lib: replace deprecated n_q_search_messages with status returning version
This function was deprecated in notmuch 0.21. We re-use the name for
a status returning version, and deprecate the _st name.
Diffstat (limited to 'lib/query.cc')
| -rw-r--r-- | lib/query.cc | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/lib/query.cc b/lib/query.cc index 2581ee64..7192e7f0 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -233,20 +233,16 @@ _notmuch_exclude_tags (notmuch_query_t *query) return exclude_query; } -notmuch_messages_t * -notmuch_query_search_messages (notmuch_query_t *query) + +notmuch_status_t +notmuch_query_search_messages_st (notmuch_query_t *query, + notmuch_messages_t **out) { - notmuch_status_t status; - notmuch_messages_t *messages; - status = notmuch_query_search_messages_st (query, &messages); - if (status) - return NULL; - else - return messages; + return notmuch_query_search_messages (query, out); } notmuch_status_t -notmuch_query_search_messages_st (notmuch_query_t *query, +notmuch_query_search_messages (notmuch_query_t *query, notmuch_messages_t **out) { return _notmuch_query_search_documents (query, "mail", out); @@ -519,7 +515,7 @@ notmuch_query_search_threads (notmuch_query_t *query, threads->query = query; - status = notmuch_query_search_messages_st (query, &messages); + status = notmuch_query_search_messages (query, &messages); if (status) { talloc_free (threads); return status; @@ -708,7 +704,7 @@ notmuch_query_count_threads_st (notmuch_query_t *query, unsigned *count) sort = query->sort; query->sort = NOTMUCH_SORT_UNSORTED; - ret = notmuch_query_search_messages_st (query, &messages); + ret = notmuch_query_search_messages (query, &messages); if (ret) return ret; query->sort = sort; |
