aboutsummaryrefslogtreecommitdiff
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2020-12-21 12:12:09 -0400
committerDavid Bremner <david@tethera.net>2021-02-06 19:00:30 -0400
commit867d7352a76e0a8a46e64a035f23edcf7d6f49e4 (patch)
tree4d6fb6a53f045e8d7bd6ba9f4e9dafda4bf1b8ad /notmuch-client.h
parent39580e2d7fde7fbb1d837d49c0b3f675f706e123 (diff)
CLI: generalize notmuch_config_mode_t
The renaming and extra values will make sense when we start to convert subcommands to the new configuration framework. It will also avoid collisions with a new enum for configuration keys to be introduced in a future commit.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index ebd43e8d..f59b3965 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -253,14 +253,16 @@ json_quote_str (const void *ctx, const char *str);
/* notmuch-config.c */
typedef enum {
- NOTMUCH_CONFIG_OPEN = 1 << 0,
- NOTMUCH_CONFIG_CREATE = 1 << 1,
-} notmuch_config_mode_t;
+ NOTMUCH_COMMAND_CONFIG_OPEN = 1 << 0,
+ NOTMUCH_COMMAND_CONFIG_CREATE = 1 << 1,
+ NOTMUCH_COMMAND_DATABASE_EARLY = 1 << 2,
+ NOTMUCH_COMMAND_DATABASE_WRITE = 1 << 3,
+} notmuch_command_mode_t;
notmuch_config_t *
notmuch_config_open (void *ctx,
const char *filename,
- notmuch_config_mode_t config_mode);
+ notmuch_command_mode_t config_mode);
void
notmuch_config_close (notmuch_config_t *config);