[PATCH 0/2] lib: introduce notmuch_database_new

Subject: [PATCH 0/2] lib: introduce notmuch_database_new

Date: Sun, 1 Dec 2013 15:13:58 +0200

To: notmuch@notmuchmail.org

Cc:

From: Jani Nikula


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


Thread: