From 80aeaf7f59e250f034ecc99aa7fcd1e6dd14d9bb Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sun, 26 Feb 2017 21:12:38 +0200 Subject: 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. --- notmuch-client.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'notmuch-client.h') 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); -- cgit v1.2.3