lib: add new status reporting API for notmuch_query_search_{m,t}
authorDavid Bremner <david@tethera.net>
Tue, 20 Jan 2015 07:53:41 +0000 (08:53 +0100)
committerDavid Bremner <david@tethera.net>
Sun, 1 Mar 2015 07:49:14 +0000 (08:49 +0100)
commit7a0fc103678ea1b1da2df561d222c08db04c5af2
treed7ecaa6545e8035ddd1c0086488334153519a39f
parenta9e0786f72bd01186b58b739986e7ac0680ff7c0
lib: add new status reporting API for notmuch_query_search_{m,t}

This at least allows distinguishing between out of memory and Xapian
exceptions. Adding finer grained status codes would allow different
Xapian exceptions to be preserved.

Adding wrappers allows people to transition gradually to the new API,
at the cost of bloating the library API a bit.
lib/notmuch.h
lib/query.cc