Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id AF30F431FD5 for ; Wed, 16 Apr 2014 06:00:31 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OrzZc5bn+KPR for ; Wed, 16 Apr 2014 06:00:26 -0700 (PDT) Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 8F353431FC0 for ; Wed, 16 Apr 2014 05:59:59 -0700 (PDT) Received: by mail-pb0-f53.google.com with SMTP id rp16so10735513pbb.26 for ; Wed, 16 Apr 2014 05:59:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8tA3b7WKaT9QvUBnyURbfeFstrbc6xQKX58VzmQEX3s=; b=S4ldAiGBLfEocv3/0vkzlyJyMc3HA0PUH7Jznbtg5RVuqNa61PE54ZOvTgPSTDUQrz 18Uq6C8fW9AUl8HCaVDu9RWI7bxnuxSzKoOynw1Z3MnqdA1zh7thIATkTIOQm5300W6l G9fNb0lX0Dqhy05tapuKoDLKOyh5YNWBgB3+JIcs68lhpGlx6ugcNrpGRFkshnlS+xh7 R0Ol+T3wcqBVHJxmk1J95IOneXqQQDQHd3N6QQPZkzzS8HR6qVn9JGAfReERQ6Fjxgix /aUwOyjJob70IYzz2lR8HAg1pfU8pkmoQ2g0pFOUrB/Kdw4d4HBM/+6a32yJwyG5Lgme u+ZA== X-Received: by 10.68.203.39 with SMTP id kn7mr8219175pbc.141.1397653198938; Wed, 16 Apr 2014 05:59:58 -0700 (PDT) Received: from localhost (215.42.233.220.static.exetel.com.au. [220.233.42.215]) by mx.google.com with ESMTPSA id iq10sm46962618pbc.14.2014.04.16.05.59.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Apr 2014 05:59:58 -0700 (PDT) From: Peter Wang To: notmuch@notmuchmail.org Subject: [PATCH v2 04/10] go: add return status to database close method Date: Wed, 16 Apr 2014 22:59:19 +1000 Message-Id: <1397653165-15620-5-git-send-email-novalazy@gmail.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1397653165-15620-1-git-send-email-novalazy@gmail.com> References: <1397653165-15620-1-git-send-email-novalazy@gmail.com> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2014 13:00:31 -0000 Add return status to the Database.Close() method that calls notmuch_database_destroy. --- bindings/go/src/notmuch/notmuch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go index 00bd53a..b9230ad 100644 --- a/bindings/go/src/notmuch/notmuch.go +++ b/bindings/go/src/notmuch/notmuch.go @@ -144,8 +144,8 @@ func OpenDatabase(path string, mode DatabaseMode) (*Database, Status) { /* Close the given notmuch database, freeing all associated * resources. See notmuch_database_open. */ -func (self *Database) Close() { - C.notmuch_database_destroy(self.db) +func (self *Database) Close() Status { + return Status(C.notmuch_database_destroy(self.db)) } /* Return the database path of the given database. -- 1.8.4