From: Jani Nikula Date: Sun, 1 Dec 2013 13:13:58 +0000 (+0200) Subject: [PATCH 0/2] lib: introduce notmuch_database_new X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d462f494b21453e6ca3fa9a543ceab18138b0b00;p=notmuch-archives.git [PATCH 0/2] lib: introduce notmuch_database_new --- diff --git a/48/5c08018de76495de3be5fd59c1cf00903dde0e b/48/5c08018de76495de3be5fd59c1cf00903dde0e new file mode 100644 index 000000000..8d3b6a783 --- /dev/null +++ b/48/5c08018de76495de3be5fd59c1cf00903dde0e @@ -0,0 +1,99 @@ +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 72AAF431E62 + for ; Sun, 1 Dec 2013 05:14:16 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[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 GdGp6JmbtDSu for ; + Sun, 1 Dec 2013 05:14:08 -0800 (PST) +Received: from mail-ea0-f170.google.com (mail-ea0-f170.google.com + [209.85.215.170]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id B096B431FD0 + for ; Sun, 1 Dec 2013 05:14:08 -0800 (PST) +Received: by mail-ea0-f170.google.com with SMTP id k10so8157965eaj.15 + for ; Sun, 01 Dec 2013 05:14:07 -0800 (PST) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:date:message-id; + bh=Mugaf95IP51fnxa2jufRz/2yMNteMXN5zMSDwArAq3U=; + b=c+qR5Hw45h6hHBbt5zTCFb6IP5k7QoaaciWJjzqUJ71AbbBGwcskR89u+ZjI7KDzJt + aKydPiqorPPv/ORqOXRNfaqfjkv3KTXnT9+5aKrxVtNxZU/2ABv+klcjSYc4SdyBu6Ao + 6FdFysxWRt4FiCpQKkVStEuX3mU5Kg4vacOZIFHzFxU/NAUV9cNwXcKj26pze7Aa4wBH + sYLkOvZzICQOWy1U/TWt4dhsQK7XFk7VmXdIFtuC8AvS4CVN1TeHTlCLr4kc9uPnn5zO + 83D9w4xz51iS5CGCpEbDUKUTVqWE0mHs4aZnON2xSEQoTjgAOknioXHlZaVO4RwwxDUe + Aq0Q== +X-Gm-Message-State: + ALoCoQlXvwoonEaSJ04Ki9JsQF13ctlgxebYiFfU7St1939n8gS1awySLLYiIyGT2w48g33YPAdI +X-Received: by 10.14.95.130 with SMTP id p2mr75178eef.47.1385903646022; + Sun, 01 Dec 2013 05:14:06 -0800 (PST) +Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi. + [88.195.111.91]) + by mx.google.com with ESMTPSA id h3sm35532015eem.15.2013.12.01.05.14.03 + for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Sun, 01 Dec 2013 05:14:05 -0800 (PST) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH 0/2] lib: introduce notmuch_database_new +Date: Sun, 1 Dec 2013 15:13:58 +0200 +Message-Id: +X-Mailer: git-send-email 1.8.4.2 +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: Sun, 01 Dec 2013 13:14:16 -0000 + +Hi all - + +In preparation of adding some logging hooks into the library (instead of +printing everything to stdout/stderr) we need a way to set that kind of +options before opening/creating the database. Here's a proposed API +change to make that possible in the future. + +N.B. This breaks bindings and contrib/notmuch-deliver. + +BR, +Jani. + + +Jani Nikula (2): + lib: add return status to database close and destroy + lib: introduce notmuch_database_new for initializing a database handle + + lib/database.cc | 80 ++++++++++++++++++++++++++++++---------------------- + lib/notmuch.h | 69 ++++++++++++++++++++++++++++++++++---------- + notmuch-compact.c | 11 +++++++- + notmuch-count.c | 10 +++++-- + notmuch-dump.c | 10 +++++-- + notmuch-insert.c | 10 +++++-- + notmuch-new.c | 14 +++++---- + notmuch-reply.c | 10 +++++-- + notmuch-restore.c | 10 +++++-- + notmuch-search.c | 10 +++++-- + notmuch-show.c | 10 +++++-- + notmuch-tag.c | 10 +++++-- + test/random-corpus.c | 10 +++++-- + test/symbol-test.cc | 3 +- + 14 files changed, 193 insertions(+), 74 deletions(-) + +-- +1.8.4.2 +