summaryrefslogtreecommitdiffstats
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-02-27 09:22:32 -0400
committerDavid Bremner <david@tethera.net>2021-04-06 21:32:36 -0300
commitec4b7efbe4bd6d50bd6046bac5f7ef4ceaa30154 (patch)
treeeddfc4417ad06ddb22498aeabaef37c15810781a /notmuch-client.h
parent77d4b26d3e374afac0012148a8ac0a08158406f1 (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.h3
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);