summaryrefslogtreecommitdiffstats
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2015-04-06 07:39:55 +0900
committerDavid Bremner <david@tethera.net>2015-08-14 18:23:49 +0200
commitf76d8f82dd004cf14426a91e8a80dcd2a4b97317 (patch)
treeb2a08fb89242d809d095665a84ff75c6d7d142e3 /notmuch-client.h
parent5a3b42fb8c556397841b86c5fda1c4554dab253a (diff)
cli: add global option "--uuid"
The function notmuch_exit_if_unmatched_db_uuid is split from notmuch_process_shared_options because it needs an open notmuch database. There are two exceptional cases in uuid handling. 1) notmuch config and notmuch setup don't currently open the database, so it doesn't make sense to check the UUID. 2) notmuch compact opens the database inside the library, so we either need to open the database just to check uuid, or change the API.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index 78680aa1..4a4f86c4 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -466,7 +466,11 @@ notmuch_database_dump (notmuch_database_t *notmuch,
notmuch_bool_t gzip_output);
#include "command-line-arguments.h"
+
+extern char *notmuch_requested_db_uuid;
extern const notmuch_opt_desc_t notmuch_shared_options [];
+void notmuch_exit_if_unmatched_db_uuid (notmuch_database_t *notmuch);
+
void notmuch_process_shared_options (const char* subcommand_name);
int notmuch_minimal_options (const char* subcommand_name,
int argc, char **argv);