From ca3a4fc02287f65c3587908012d36e68df0200b1 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sun, 3 Mar 2013 23:55:07 +0200 Subject: 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(). --- notmuch-client.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'notmuch-client.h') 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); -- cgit v1.2.3