void event_filter_parser_set_extra(void *user, void *yyscanner);
void event_filter_parser_error(void *scan, const char *e);
+/* the following are exposed to allow for unit testing */
+bool
+event_filter_query_match_eval(struct event_filter_node *node,
+ struct event *event, const char *source_filename,
+ unsigned int source_linenum,
+ enum event_filter_log_type log_type);
+const char *
+event_filter_category_from_log_type(enum event_filter_log_type log_type);
+
#endif
return FALSE;
}
-static const char *
+const char *
event_filter_category_from_log_type(enum event_filter_log_type log_type)
{
unsigned int i;
i_unreached();
}
-static bool
+bool
event_filter_query_match_eval(struct event_filter_node *node,
struct event *event, const char *source_filename,
unsigned int source_linenum,