diff options
| author | David Bremner <david@tethera.net> | 2020-12-21 12:12:09 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-02-06 19:00:30 -0400 |
| commit | 867d7352a76e0a8a46e64a035f23edcf7d6f49e4 (patch) | |
| tree | 4d6fb6a53f045e8d7bd6ba9f4e9dafda4bf1b8ad /notmuch-config.c | |
| parent | 39580e2d7fde7fbb1d837d49c0b3f675f706e123 (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-config.c')
| -rw-r--r-- | notmuch-config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/notmuch-config.c b/notmuch-config.c index 19c2ddb3..cefb8274 100644 --- a/notmuch-config.c +++ b/notmuch-config.c @@ -324,7 +324,7 @@ get_config_from_file (notmuch_config_t *config, bool create_new) notmuch_config_t * notmuch_config_open (void *ctx, const char *filename, - notmuch_config_mode_t config_mode) + notmuch_command_mode_t config_mode) { GError *error = NULL; size_t tmp; @@ -359,8 +359,8 @@ notmuch_config_open (void *ctx, config->key_file = g_key_file_new (); - if (config_mode & NOTMUCH_CONFIG_OPEN) { - bool create_new = (config_mode & NOTMUCH_CONFIG_CREATE) != 0; + if (config_mode & NOTMUCH_COMMAND_CONFIG_OPEN) { + bool create_new = (config_mode & NOTMUCH_COMMAND_CONFIG_CREATE) != 0; if (! get_config_from_file (config, create_new)) { talloc_free (config); |
