1 Return-Path: <tomi.ollila@iki.fi>
\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 4813E431FD2
\r
6 for <notmuch@notmuchmail.org>; Tue, 3 Dec 2013 06:11:54 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\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 qxMmLHund6jY for <notmuch@notmuchmail.org>;
\r
16 Tue, 3 Dec 2013 06:11:46 -0800 (PST)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id A2626431FC2
\r
19 for <notmuch@notmuchmail.org>; Tue, 3 Dec 2013 06:11:46 -0800 (PST)
\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])
\r
21 by guru.guru-group.fi (Postfix) with ESMTP id B50AF100086;
\r
22 Tue, 3 Dec 2013 16:11:36 +0200 (EET)
\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
24 To: David Bremner <david@tethera.net>, Jani Nikula <jani@nikula.org>,
\r
25 notmuch@notmuchmail.org
\r
26 Subject: Re: [PATCH 2/2] lib: introduce notmuch_database_new for initializing
\r
28 In-Reply-To: <87wqjm2m2q.fsf@zancas.localnet>
\r
29 References: <cover.1385903109.git.jani@nikula.org>
\r
30 <fc7ecd990e55fcfba17de4d71e8823c98760f9ce.1385903109.git.jani@nikula.org>
\r
31 <87wqjm2m2q.fsf@zancas.localnet>
\r
32 User-Agent: Notmuch/0.17~rc1+17~ga2e1a2f (http://notmuchmail.org) Emacs/24.3.1
\r
33 (x86_64-unknown-linux-gnu)
\r
34 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
35 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
36 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
37 Date: Tue, 03 Dec 2013 16:11:36 +0200
\r
38 Message-ID: <m2iov6m3c7.fsf@guru.guru-group.fi>
\r
40 Content-Type: text/plain
\r
41 X-BeenThere: notmuch@notmuchmail.org
\r
42 X-Mailman-Version: 2.1.13
\r
44 List-Id: "Use and development of the notmuch mail system."
\r
45 <notmuch.notmuchmail.org>
\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
47 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
49 List-Post: <mailto:notmuch@notmuchmail.org>
\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
53 X-List-Received-Date: Tue, 03 Dec 2013 14:11:54 -0000
\r
55 On Tue, Dec 03 2013, David Bremner <david@tethera.net> wrote:
\r
57 > The first patch looks ok. I like the new API overall.
\r
59 > As far as breaking contrib/notmuch-deliver, I'd rather fix
\r
60 > notmuch-insert than put effort into notmuch-deliver at this point. I
\r
61 > guess it could be a rough transition for people running notmuch-deliver
\r
64 > Jani Nikula <jani@nikula.org> writes:
\r
67 >> + * XXX: error handling should clean up *all* state created!
\r
69 > is this a warning to future hackers or some current problem?
\r
72 >> -notmuch_database_open (const char *path,
\r
73 >> - notmuch_database_mode_t mode,
\r
74 >> - notmuch_database_t **database)
\r
75 >> +notmuch_database_open (notmuch_database_t *notmuch, const char *path,
\r
76 >> + notmuch_database_mode_t mode)
\r
78 >> +/* Initialize a new, empty database handle.
\r
81 > I wondered about making the new documentation adhere to doxygen?
\r
84 >> + if (notmuch_database_open (notmuch,
\r
85 >> + notmuch_config_get_database_path (config),
\r
86 >> + NOTMUCH_DATABASE_MODE_READ_ONLY))
\r
88 > Would it make any sense to migrate the mode argument to an option
\r
89 > setting while we're messing with the API?
\r
91 if that, then also database_path to options ?
\r
93 I also like this suggestion best of all seen so far, but what if:
\r
95 #define NOTMUCH_MAJOR_VERSION 0
\r
96 #define NOTMUCH_MINOR_VERSION 17
\r
97 -#define NOTMUCH_MICRO_VERSION 0
\r
98 +#define NOTMUCH_MICRO_VERSION 90
\r
100 until changed API/ABI is set into stone (i.e. 0.18.0 at freeze time).
\r