aboutsummaryrefslogtreecommitdiff
path: root/lib/notmuch.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-02-13 13:17:52 -0400
committerDavid Bremner <david@tethera.net>2021-03-27 09:26:14 -0300
commit0c6db22930b58fcea972e71b45f7ea0e6055ed20 (patch)
tree95a5ef2b6d5844c1edb88b73fb8e1eb1545976a0 /lib/notmuch.h
parent2fc40e24de4fb06428273e6f55ebd72faabde778 (diff)
lib/config: add notmuch_config_get_values_string
This is to support the less common (at least in the notmuch codebase) case of accessing a ;-delimited list config value with an arbitrary string key.
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r--lib/notmuch.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h
index da556e50..dd3d06a1 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -2494,7 +2494,6 @@ notmuch_config_list_move_to_next (notmuch_config_list_t *config_list);
void
notmuch_config_list_destroy (notmuch_config_list_t *config_list);
-
/**
* Configuration keys known to libnotmuch
*/
@@ -2566,6 +2565,22 @@ notmuch_config_values_t *
notmuch_config_get_values (notmuch_database_t *notmuch, notmuch_config_key_t key);
/**
+ * Returns an iterator for a ';'-delimited list of configuration values
+ *
+ * These values reflect all configuration information given at the
+ * time the database was opened.
+ *
+ * @param[in] notmuch database
+ * @param[in] key configuration key
+ *
+ * @since libnotmuch 5.4 (notmuch 0.32)
+ *
+ * @retval NULL in case of error.
+ */
+notmuch_config_values_t *
+notmuch_config_get_values_string (notmuch_database_t *notmuch, const char *key);
+
+/**
* Is the given 'config_values' iterator pointing at a valid element.
*
* @param[in] values iterator