From 55f5e87096fda96280ccc4b191393c7e59b4df57 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 3 Jan 2021 08:50:12 -0400 Subject: lib: add NOTMUCH_STATUS_DATABASE_EXISTS It is desirable to distinguish between attempting to create a database that already exists, and more fatal errors like permission problems. --- lib/notmuch.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/notmuch.h b/lib/notmuch.h index 4f384e58..6d22d328 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -212,6 +212,10 @@ typedef enum _notmuch_status { * Unable to load a config file */ NOTMUCH_STATUS_NO_CONFIG, + /** + * Database exists, so not (re)-created + */ + NOTMUCH_STATUS_DATABASE_EXISTS, /** * Not an actual status value. Just a way to find out how many * valid status values there are. -- cgit v1.2.3