Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / d6 / 083b6e56c785deaa76ff1208a0e75db90a2d48
1 Return-Path: <bremner@tesseract.cs.unb.ca>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id AE8A1431FC7\r
6         for <notmuch@notmuchmail.org>; Sat,  7 Mar 2015 11:24:48 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 2.438\r
10 X-Spam-Level: **\r
11 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
12         tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id oWlIwK9ntXpN for <notmuch@notmuchmail.org>;\r
16         Sat,  7 Mar 2015 11:24:48 -0800 (PST)\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
18         [87.98.215.224])\r
19         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 2EAB5431FC4\r
22         for <notmuch@notmuchmail.org>; Sat,  7 Mar 2015 11:24:48 -0800 (PST)\r
23 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
24         4.80) (envelope-from <bremner@tesseract.cs.unb.ca>)\r
25         id 1YUKKU-0004DV-SZ; Sat, 07 Mar 2015 19:24:06 +0000\r
26 Received: (nullmailer pid 28723 invoked by uid 1000); Sat, 07 Mar 2015\r
27         19:23:13 -0000\r
28 From: David Bremner <david@tethera.net>\r
29 To: notmuch@notmuchmail.org\r
30 Subject: [PATCH 2/5] lib: deprecate notmuch_query_search_{threads, messages}\r
31 Date: Sat,  7 Mar 2015 20:22:59 +0100\r
32 Message-Id: <1425756182-28468-3-git-send-email-david@tethera.net>\r
33 X-Mailer: git-send-email 2.1.4\r
34 In-Reply-To: <1425756182-28468-1-git-send-email-david@tethera.net>\r
35 References: <1425756182-28468-1-git-send-email-david@tethera.net>\r
36 X-BeenThere: notmuch@notmuchmail.org\r
37 X-Mailman-Version: 2.1.13\r
38 Precedence: list\r
39 List-Id: "Use and development of the notmuch mail system."\r
40         <notmuch.notmuchmail.org>\r
41 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
42         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
44 List-Post: <mailto:notmuch@notmuchmail.org>\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
46 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
48 X-List-Received-Date: Sat, 07 Mar 2015 19:24:48 -0000\r
49 \r
50 The CLI (and bindings) code should really be updated to use the new\r
51 status-code-returning versions. Here are some warnings to prod us (and\r
52 other clients) to do so.\r
53 ---\r
54  lib/notmuch.h | 41 ++++++++++++++++++++++++++---------------\r
55  1 file changed, 26 insertions(+), 15 deletions(-)\r
56 \r
57 diff --git a/lib/notmuch.h b/lib/notmuch.h\r
58 index 5352479..087f3f0 100644\r
59 --- a/lib/notmuch.h\r
60 +++ b/lib/notmuch.h\r
61 @@ -781,20 +781,25 @@ notmuch_query_add_tag_exclude (notmuch_query_t *query, const char *tag);\r
62   * notmuch_threads_destroy function, but there's no good reason\r
63   * to call it if the query is about to be destroyed).\r
64   *\r
65 - * If a Xapian exception occurs this function will return NULL.\r
66 - * For better error reporting, use the _st variant.\r
67 - */\r
68 -notmuch_threads_t *\r
69 -notmuch_query_search_threads (notmuch_query_t *query);\r
70 -\r
71 -/**\r
72 - * Like notmuch_query_search_threads, but with a status return.\r
73   */\r
74  notmuch_status_t\r
75  notmuch_query_search_threads_st (notmuch_query_t *query,\r
76                                  notmuch_threads_t **out);\r
77  \r
78  /**\r
79 + * Like notmuch_query_search_threads_st, but without a status return.\r
80 + *\r
81 + * If a Xapian exception occurs this function will return NULL.\r
82 + *\r
83 + * @deprecated Deprecated as of libnotmuch 4.2 (notmuch 0.20). Please\r
84 + * use notmuch_query_search_threads_st instead.\r
85 + *\r
86 + */\r
87 +NOTMUCH_DEPRECATED(4,2)\r
88 +notmuch_threads_t *\r
89 +notmuch_query_search_threads (notmuch_query_t *query);\r
90 +\r
91 +/**\r
92   * Execute a query for messages, returning a notmuch_messages_t object\r
93   * which can be used to iterate over the results. The returned\r
94   * messages object is owned by the query and as such, will only be\r
95 @@ -832,17 +837,23 @@ notmuch_query_search_threads_st (notmuch_query_t *query,\r
96   * reason to call it if the query is about to be destroyed).\r
97   *\r
98   * If a Xapian exception occurs this function will return NULL.\r
99 - * For better error reporting, use the _st variant.\r
100 - */\r
101 -notmuch_messages_t *\r
102 -notmuch_query_search_messages (notmuch_query_t *query);\r
103 -\r
104 -/**\r
105 - * Like notmuch_query_search_messages, but with a status return.\r
106 + *\r
107   */\r
108  notmuch_status_t\r
109  notmuch_query_search_messages_st (notmuch_query_t *query,\r
110                                   notmuch_messages_t **out);\r
111 +/**\r
112 + * Like notmuch_query_search_messages, but without a status return.\r
113 + *\r
114 + * If a Xapian exception occurs this function will return NULL.\r
115 + *\r
116 + * @deprecated Deprecated as of libnotmuch 4.2 (notmuch 0.20). Please use\r
117 + * notmuch_query_search_messages_st instead.\r
118 + *\r
119 + */\r
120 +NOTMUCH_DEPRECATED(4,2)\r
121 +notmuch_messages_t *\r
122 +notmuch_query_search_messages (notmuch_query_t *query);\r
123  \r
124  /**\r
125   * Destroy a notmuch_query_t along with any associated resources.\r
126 -- \r
127 2.1.4\r
128 \r