From ec4b7efbe4bd6d50bd6046bac5f7ef4ceaa30154 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sat, 27 Feb 2021 09:22:32 -0400 Subject: CLI/config: remove calls to notmuch_config_open from top level This will allow simplifying the subcommand interface. Change the internal API to notmuch_config_open to not tie it to the implementation of subcommands in notmuch.c. It also fixes a previously broken test, since notmuch_config_open does not understand the notion of the empty string as a config file name. --- notmuch-client.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'notmuch-client.h') diff --git a/notmuch-client.h b/notmuch-client.h index a1d8dfe9..a5b3c518 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -267,7 +267,6 @@ json_quote_str (const void *ctx, const char *str); /* notmuch-config.c */ typedef enum { - NOTMUCH_COMMAND_CONFIG_OPEN = 1 << 0, NOTMUCH_COMMAND_CONFIG_CREATE = 1 << 1, NOTMUCH_COMMAND_DATABASE_EARLY = 1 << 2, NOTMUCH_COMMAND_DATABASE_WRITE = 1 << 3, @@ -278,7 +277,7 @@ typedef enum { notmuch_config_t * notmuch_config_open (notmuch_database_t *notmuch, const char *filename, - notmuch_command_mode_t config_mode); + bool create); void notmuch_config_close (notmuch_config_t *config); -- cgit v1.2.3