summaryrefslogtreecommitdiffstats
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-08-24 08:17:10 -0700
committerDavid Bremner <david@tethera.net>2021-09-04 17:07:19 -0700
commitd447b694b498c3e18a22f1eb15139a798c6aab26 (patch)
tree7cc9c4f01f7a91da530743ec3a25441f38b9732e /notmuch-client.h
parent005c6201184c539d23d076303bd360bdba412e48 (diff)
CLI: make variable n_requested_db_uuid file scope.
It turns out that now that we pass an open database into the subcommands, it is easy to check any requested uuid against the database at the same time as we process the other shared arguments. This results in overall less boilerplate code, as well as making a CLI scope function and variable file scope in notmuch.c.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index 8643a63f..f820791f 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -485,11 +485,9 @@ print_status_gzbytes (const char *loc,
#include "command-line-arguments.h"
-extern const 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);
+void notmuch_process_shared_options (notmuch_database_t *notmuch, const char *subcommand_name);
int notmuch_minimal_options (const char *subcommand_name,
int argc, char **argv);