David Bremner <david@tethera.net> writes: > I'm not sure if this is also a dead end, but I was trying to sketch out > an api that returned something more detailed as status and came up with > the following. The general idea is to replace notmuch_status_t with a > pointer to struct. This will require pretty noisy source changes, > unless we're comfortable with using NULL pointer to indicate success. > In either case we'd rename the existing enum to something like > notmuch_status_code_t. > > /* pseudo-C follows */ > > typedef struct notmuch_status_struct * notmuch_status_t; > A less API disruptive change would be to continue returning codes, but provide functions to interrogate the main types (database, message, etc) for "last-error". We'd still need to special case database_(open|create) d