aboutsummaryrefslogtreecommitdiff
path: root/lib/notmuch.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-01-01 09:28:24 -0400
committerDavid Bremner <david@tethera.net>2021-02-06 19:09:39 -0400
commitd071828bd5f8aee0437aeb4993ffeeaa803c367b (patch)
tree0a739d38749fa206cff386f22e71e7c65c1b07d5 /lib/notmuch.h
parentfd6f8e6c30e0443d1ead248047ab572120df85e9 (diff)
lib/config: make values iterators restartable
This is relatively cheap, and makes it easier to transform existing code which uses arrays of pointers to store configuration lists.
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r--lib/notmuch.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h
index 7aeff567..39f39423 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -2509,6 +2509,18 @@ notmuch_config_values_get (notmuch_config_values_t *values);
void
notmuch_config_values_move_to_next (notmuch_config_values_t *values);
+
+/**
+ * reset the 'values' iterator to the first element
+ *
+ * @param[in,out] values iterator. A NULL value is ignored.
+ *
+ * @since libnotmuch 5.4 (notmuch 0.32)
+ *
+ */
+void
+notmuch_config_values_start (notmuch_config_values_t *values);
+
/**
* Destroy a config values iterator, along with any associated
* resources.