1 Return-Path: <novalazy@gmail.com>
\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 AF30F431FD5
\r
6 for <notmuch@notmuchmail.org>; Wed, 16 Apr 2014 06:00:31 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, 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 OrzZc5bn+KPR for <notmuch@notmuchmail.org>;
\r
17 Wed, 16 Apr 2014 06:00:26 -0700 (PDT)
\r
18 Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com
\r
19 [209.85.160.53]) (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 8F353431FC0
\r
22 for <notmuch@notmuchmail.org>; Wed, 16 Apr 2014 05:59:59 -0700 (PDT)
\r
23 Received: by mail-pb0-f53.google.com with SMTP id rp16so10735513pbb.26
\r
24 for <notmuch@notmuchmail.org>; Wed, 16 Apr 2014 05:59:58 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:cc:subject:date:message-id:in-reply-to:references;
\r
27 bh=8tA3b7WKaT9QvUBnyURbfeFstrbc6xQKX58VzmQEX3s=;
\r
28 b=S4ldAiGBLfEocv3/0vkzlyJyMc3HA0PUH7Jznbtg5RVuqNa61PE54ZOvTgPSTDUQrz
\r
29 18Uq6C8fW9AUl8HCaVDu9RWI7bxnuxSzKoOynw1Z3MnqdA1zh7thIATkTIOQm5300W6l
\r
30 G9fNb0lX0Dqhy05tapuKoDLKOyh5YNWBgB3+JIcs68lhpGlx6ugcNrpGRFkshnlS+xh7
\r
31 R0Ol+T3wcqBVHJxmk1J95IOneXqQQDQHd3N6QQPZkzzS8HR6qVn9JGAfReERQ6Fjxgix
\r
32 /aUwOyjJob70IYzz2lR8HAg1pfU8pkmoQ2g0pFOUrB/Kdw4d4HBM/+6a32yJwyG5Lgme
\r
34 X-Received: by 10.68.203.39 with SMTP id kn7mr8219175pbc.141.1397653198938;
\r
35 Wed, 16 Apr 2014 05:59:58 -0700 (PDT)
\r
36 Received: from localhost (215.42.233.220.static.exetel.com.au.
\r
37 [220.233.42.215]) by mx.google.com with ESMTPSA id
\r
38 iq10sm46962618pbc.14.2014.04.16.05.59.56 for <multiple recipients>
\r
39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
40 Wed, 16 Apr 2014 05:59:58 -0700 (PDT)
\r
41 From: Peter Wang <novalazy@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: [PATCH v2 04/10] go: add return status to database close method
\r
44 Date: Wed, 16 Apr 2014 22:59:19 +1000
\r
45 Message-Id: <1397653165-15620-5-git-send-email-novalazy@gmail.com>
\r
46 X-Mailer: git-send-email 1.8.4
\r
47 In-Reply-To: <1397653165-15620-1-git-send-email-novalazy@gmail.com>
\r
48 References: <1397653165-15620-1-git-send-email-novalazy@gmail.com>
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Wed, 16 Apr 2014 13:00:31 -0000
\r
63 Add return status to the Database.Close() method that calls
\r
64 notmuch_database_destroy.
\r
66 bindings/go/src/notmuch/notmuch.go | 4 ++--
\r
67 1 file changed, 2 insertions(+), 2 deletions(-)
\r
69 diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go
\r
70 index 00bd53a..b9230ad 100644
\r
71 --- a/bindings/go/src/notmuch/notmuch.go
\r
72 +++ b/bindings/go/src/notmuch/notmuch.go
\r
73 @@ -144,8 +144,8 @@ func OpenDatabase(path string, mode DatabaseMode) (*Database, Status) {
\r
75 /* Close the given notmuch database, freeing all associated
\r
76 * resources. See notmuch_database_open. */
\r
77 -func (self *Database) Close() {
\r
78 - C.notmuch_database_destroy(self.db)
\r
79 +func (self *Database) Close() Status {
\r
80 + return Status(C.notmuch_database_destroy(self.db))
\r
83 /* Return the database path of the given database.
\r