1 Return-Path: <jani@nikula.org>
\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 32637431FDE
\r
6 for <notmuch@notmuchmail.org>; Sun, 3 Nov 2013 04:25:32 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
\r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
13 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id 8N7SuIqN+a1Y for <notmuch@notmuchmail.org>;
\r
17 Sun, 3 Nov 2013 04:25:26 -0800 (PST)
\r
18 Received: from mail-ea0-f172.google.com (mail-ea0-f172.google.com
\r
19 [209.85.215.172]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 057E6431E82
\r
22 for <notmuch@notmuchmail.org>; Sun, 3 Nov 2013 04:25:10 -0800 (PST)
\r
23 Received: by mail-ea0-f172.google.com with SMTP id r16so2880341ead.17
\r
24 for <notmuch@notmuchmail.org>; Sun, 03 Nov 2013 04:25:09 -0800 (PST)
\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
26 d=1e100.net; s=20130820;
\r
27 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
\r
28 :references:in-reply-to:references;
\r
29 bh=LOx8jpN1NtyKVEa/IAyIQS8usHuCQPFZ8+nVGR2R/HA=;
\r
30 b=ZctB1PG0Dtv24cBo2fiQbZxtu5uQEC5qJX/5dLA0gyhaDmOXrTu3T+QBX61psnBk9Y
\r
31 gf1bG6n6kNKBCu44TYaDiOkJrlAj4Pv4vsEbGRx3ZEeW+qlMhOaWYqP6drpCUlSmDNl0
\r
32 v7zRN8PEzHQd8TIM3WyOUUbneS4YfI+8T03IWz6mNOTC1WnjajALwSM75qFtJAm+5wE3
\r
33 yppgZxNH70BwR1ADchrJsqlX11mWbeJc01jYqXrx9NexgKveA3EwODg+Tu0okHX7+gKl
\r
34 k6LHUgUOYV7RPxQVv/HUrEPBhWe3SW6T1j5y7l7n9sgxfEDPGA7WLBO4zbBKVKE8GT66
\r
37 ALoCoQklQS1dmdfQ4Rmb1Qk5UuS4BRi2T7odE0PHxJu+51f3/x1C5pZdd8z0GGng+3LSkUhBo3ho
\r
38 X-Received: by 10.15.100.198 with SMTP id bn46mr12403978eeb.11.1383481509839;
\r
39 Sun, 03 Nov 2013 04:25:09 -0800 (PST)
\r
40 Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.
\r
42 by mx.google.com with ESMTPSA id i47sm9567313eem.5.2013.11.03.04.25.08
\r
43 for <multiple recipients>
\r
44 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
45 Sun, 03 Nov 2013 04:25:09 -0800 (PST)
\r
46 From: Jani Nikula <jani@nikula.org>
\r
47 To: notmuch@notmuchmail.org
\r
48 Subject: [PATCH v2 06/11] lib: update documentation of callback functions for
\r
49 database_compact and database_upgrade.
\r
50 Date: Sun, 3 Nov 2013 14:24:46 +0200
\r
52 <3ccb768e0da07e53e37d9fd593855719ba900c1c.1383481295.git.jani@nikula.org>
\r
53 X-Mailer: git-send-email 1.8.4.rc3
\r
54 In-Reply-To: <cover.1383481295.git.jani@nikula.org>
\r
55 References: <cover.1383481295.git.jani@nikula.org>
\r
56 In-Reply-To: <cover.1383481295.git.jani@nikula.org>
\r
57 References: <cover.1383481295.git.jani@nikula.org>
\r
58 X-BeenThere: notmuch@notmuchmail.org
\r
59 X-Mailman-Version: 2.1.13
\r
61 List-Id: "Use and development of the notmuch mail system."
\r
62 <notmuch.notmuchmail.org>
\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
64 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
66 List-Post: <mailto:notmuch@notmuchmail.org>
\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
69 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
70 X-List-Received-Date: Sun, 03 Nov 2013 12:25:32 -0000
\r
72 From: David Bremner <bremner@debian.org>
\r
74 Compact was missing callback documentation entirely, and upgrade did not discuss the
\r
77 lib/notmuch.h | 6 +++++-
\r
78 1 file changed, 5 insertions(+), 1 deletion(-)
\r
80 diff --git a/lib/notmuch.h b/lib/notmuch.h
\r
81 index cd301a4..82fd599 100644
\r
84 @@ -227,6 +227,9 @@ typedef void (*notmuch_compact_status_cb_t)(const char *message, void *closure);
\r
85 * The database will be opened with NOTMUCH_DATABASE_MODE_READ_WRITE
\r
86 * during the compaction process to ensure no writes are made.
\r
88 + * If the optional callback function 'status_cb' is non-NULL, it will
\r
89 + * be called with diagnostic and informational messages. The argument
\r
90 + * 'closure' is passed verbatim to any callback invoked.
\r
93 notmuch_database_compact (const char* path,
\r
94 @@ -270,7 +273,8 @@ notmuch_database_needs_upgrade (notmuch_database_t *database);
\r
95 * provide progress indication to the user. If non-NULL it will be
\r
96 * called periodically with 'progress' as a floating-point value in
\r
97 * the range of [0.0 .. 1.0] indicating the progress made so far in
\r
98 - * the upgrade process.
\r
99 + * the upgrade process. The argument 'closure' is passed verbatim to
\r
100 + * any callback invoked.
\r
103 notmuch_database_upgrade (notmuch_database_t *database,
\r