]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Better document event filter iteration behavior
authorJosef 'Jeff' Sipek <jeff.sipek@open-xchange.com>
Mon, 11 May 2020 18:03:52 +0000 (14:03 -0400)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 26 Jun 2020 07:18:18 +0000 (07:18 +0000)
src/lib/event-filter.h

index c8355e619c22faa217a4b5b7f32a1b09c8ef9d50..781d8c290e16c851e147c096636f4cbe879e8244 100644 (file)
@@ -64,12 +64,12 @@ bool event_filter_match_source(struct event_filter *filter, struct event *event,
                               unsigned int source_linenum,
                               const struct failure_context *ctx);
 
-/* Iterate through all queries that match the event. */
+/* Iterate through all queries with non-NULL context that match the event. */
 struct event_filter_match_iter *
 event_filter_match_iter_init(struct event_filter *filter, struct event *event,
                             const struct failure_context *ctx);
 /* Return context for the query that matched, or NULL when there are no more
-   matches. */
+   matches.  Note: This skips over any queries that have NULL context. */
 void *event_filter_match_iter_next(struct event_filter_match_iter *iter);
 void event_filter_match_iter_deinit(struct event_filter_match_iter **iter);