X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch.h;h=c827e02d14778e82cf23cadc6b897820a08d2b73;hp=3a092efcd72d220e0f6357ff7bb4669e5a6a950f;hb=3458e3c89c1224d3e2dff7230780589ee3ee4c70;hpb=792bea5aff135107fd970f51f3ef8c65f68194de diff --git a/lib/notmuch.h b/lib/notmuch.h index 3a092efc..c827e02d 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -1838,6 +1838,26 @@ notmuch_filenames_move_to_next (notmuch_filenames_t *filenames); void notmuch_filenames_destroy (notmuch_filenames_t *filenames); + +/** + * set config 'key' to 'value' + * + */ +notmuch_status_t +notmuch_database_set_config (notmuch_database_t *db, const char *key, const char *value); + +/** + * retrieve config item 'key', assign to 'value' + * + * keys which have not been previously set with n_d_set_config will + * return an empty string. + * + * return value is allocated by malloc and should be freed by the + * caller. + */ +notmuch_status_t +notmuch_database_get_config (notmuch_database_t *db, const char *key, char **value); + /** * interrogate the library for compile time features */