aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorGravatar Jani Nikula <jani@nikula.org>2013-03-03 23:55:07 +0200
committerGravatar David Bremner <bremner@debian.org>2013-03-07 09:39:05 -0400
commitca3a4fc02287f65c3587908012d36e68df0200b1 (patch)
tree1c4010b80d8f4906c868f3035d72e1e40b47b741 /notmuch-client.h
parente9cffd93458ce48c4e653b5694e872b7bbc2ca00 (diff)
cli: config: keep track of whether the config is newly created
Keep track of whether the config is newly created, and add notmuch_config_is_new() accessor function to query this. This is to support anyone with a config handle to check this, instead of just whoever called notmuch_config_open().
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index 5f288368..07367e01 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -256,6 +256,9 @@ notmuch_config_close (notmuch_config_t *config);
int
notmuch_config_save (notmuch_config_t *config);
+notmuch_bool_t
+notmuch_config_is_new (notmuch_config_t *config);
+
const char *
notmuch_config_get_database_path (notmuch_config_t *config);