summaryrefslogtreecommitdiffstats
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2017-02-26 21:12:38 +0200
committerDavid Bremner <david@tethera.net>2017-02-28 08:08:11 -0400
commit80aeaf7f59e250f034ecc99aa7fcd1e6dd14d9bb (patch)
treee7f40b481c73e85985ccf478446460010e3d99e5 /notmuch-client.h
parent5a69aa14748162429c43ad5ff3d8b35779fff0d4 (diff)
cli/config: don't try to open config file for 'notmuch help'
The help command does not really need to try to open the config file. So don't.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index 21b08798..10991224 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -263,10 +263,15 @@ 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_config_t *
notmuch_config_open (void *ctx,
const char *filename,
- notmuch_bool_t create_new);
+ notmuch_config_mode_t config_mode);
void
notmuch_config_close (notmuch_config_t *config);