]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-client.h
cli/config: don't try to open config file for 'notmuch help'
[notmuch] / notmuch-client.h
index 21b087980a17f45a8d7537b5d7116fbdee449313..1099122426afc9267a14219d26da2cbde0615c31 100644 (file)
@@ -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);