X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=notmuch-client.h;h=b3dcb21a5fa8eeb30b36aa2babaf3d40ad55378f;hb=e76f6517de020783d828be59f461f1d4f465c4b4;hp=d7b352e83446e85e97c76578e0314f139b547842;hpb=1c6195b9e35e511e115f94b45d97aa58ee41b307;p=notmuch diff --git a/notmuch-client.h b/notmuch-client.h index d7b352e8..b3dcb21a 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -58,7 +58,7 @@ typedef GMimeCipherContext notmuch_crypto_context_t; #include #include -#include +#include "talloc-extra.h" #define unused(x) x __attribute__ ((unused)) @@ -248,7 +248,7 @@ typedef struct _notmuch_config notmuch_config_t; notmuch_config_t * notmuch_config_open (void *ctx, const char *filename, - notmuch_bool_t *is_new_ret); + notmuch_bool_t create_new); void notmuch_config_close (notmuch_config_t *config); @@ -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);