lib/cli: Make notmuch_database_open return a status code
authorAustin Clements <amdragon@MIT.EDU>
Mon, 30 Apr 2012 16:25:33 +0000 (12:25 -0400)
committerDavid Bremner <bremner@debian.org>
Sat, 5 May 2012 13:11:57 +0000 (10:11 -0300)
commit5fddc07dc31481453c1af186bf7da241c00cdbf1
treedfbe4bbabbac3b4c095c7528acdbcf54a2e3c78d
parent1579fb334e0bbc42d5ae7692b184127f43ed7027
lib/cli: Make notmuch_database_open return a status code

It has been a long-standing issue that notmuch_database_open doesn't
return any indication of why it failed.  This patch changes its
prototype to return a notmuch_status_t and set an out-argument to the
database itself, like other functions that return both a status and an
object.

In the interest of atomicity, this also updates every use in the CLI
so that notmuch still compiles.  Since this patch does not update the
bindings, the Python bindings test fails.
lib/database.cc
lib/notmuch.h
notmuch-count.c
notmuch-dump.c
notmuch-new.c
notmuch-reply.c
notmuch-restore.c
notmuch-search.c
notmuch-show.c
notmuch-tag.c
test/symbol-test.cc