diff options
author | David Bremner <david@tethera.net> | 2021-02-27 09:22:32 -0400 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2021-04-06 21:32:36 -0300 |
commit | ec4b7efbe4bd6d50bd6046bac5f7ef4ceaa30154 (patch) | |
tree | eddfc4417ad06ddb22498aeabaef37c15810781a /notmuch-client.h | |
parent | 77d4b26d3e374afac0012148a8ac0a08158406f1 (diff) |
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.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r-- | notmuch-client.h | 3 |
1 files changed, 1 insertions, 2 deletions
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); |