]> git.notmuchmail.org Git - notmuch/commit - lib/notmuch.h
lib/n_d_get_version: catch exceptions and clarify the API
authorDavid Bremner <david@tethera.net>
Tue, 14 Jul 2020 22:31:10 +0000 (19:31 -0300)
committerDavid Bremner <david@tethera.net>
Wed, 22 Jul 2020 22:52:55 +0000 (19:52 -0300)
commitab456541924dcb1e1c6d6c7ba1781011e3453f27
tree7d82636f1b05f59ec814040c19036377314291a9
parent095d3d7134f5668b96cf1d70997d3f110b03c898
lib/n_d_get_version: catch exceptions and clarify the API

notmuch_database_get_version previously returned 0 on some errors, but
did not document this. Luckily 0 is not a valid database version.
lib/database.cc
lib/notmuch.h
test/T562-lib-database.sh