summaryrefslogtreecommitdiffstats
path: root/src/view.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/view.h')
-rw-r--r--src/view.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/view.h b/src/view.h
index 0c7e7a433..b3f033c23 100644
--- a/src/view.h
+++ b/src/view.h
@@ -22,15 +22,39 @@ struct rspamd_view {
memory_pool_t *pool;
};
+/*
+ * Init a new view
+ */
struct rspamd_view* init_view (memory_pool_t *pool);
+/*
+ * Add from option for this view
+ */
gboolean add_view_from (struct rspamd_view *view, gchar *line);
+/*
+ * Add from recipient for this view
+ */
gboolean add_view_rcpt (struct rspamd_view *view, gchar *line);
+/*
+ * Add ip option for this view
+ */
gboolean add_view_ip (struct rspamd_view *view, gchar *line);
+/*
+ * Add client ip option for this view
+ */
gboolean add_view_client_ip (struct rspamd_view *view, gchar *line);
+/*
+ * Add symbols option for this view
+ */
gboolean add_view_symbols (struct rspamd_view *view, gchar *line);
+/*
+ * Check view for this task
+ */
gboolean check_view (GList *views, const gchar *symbol, struct worker_task *task);
+/*
+ * Check whether this task should be skipped from checking
+ */
gboolean check_skip (GList *views, struct worker_task *task);
#endif