aboutsummaryrefslogtreecommitdiffstats
path: root/src/view.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-12 20:14:49 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-12 20:14:49 +0300
commitce605155252dd38a76ae9411b217c2c1576849bc (patch)
tree539563cfbf723f42c72afdf8b13fd2cc48d23066 /src/view.h
parent7ca658607cdeebe0cecbeb310cf2c99af800306f (diff)
downloadrspamd-ce605155252dd38a76ae9411b217c2c1576849bc.tar.gz
rspamd-ce605155252dd38a76ae9411b217c2c1576849bc.zip
* Add lua bindings to hiredis library
Polish some comments.
Diffstat (limited to 'src/view.h')
-rw-r--r--src/view.h55
1 files changed, 44 insertions, 11 deletions
diff --git a/src/view.h b/src/view.h
index b3f033c23..f62c65198 100644
--- a/src/view.h
+++ b/src/view.h
@@ -1,3 +1,5 @@
+/** @file view.h **/
+
#ifndef RSPAMD_VIEW_H
#define RSPAMD_VIEW_H
@@ -22,38 +24,69 @@ struct rspamd_view {
memory_pool_t *pool;
};
-/*
+
+/**
* Init a new view
+ * @param pool pool for view
+ * @return
*/
struct rspamd_view* init_view (memory_pool_t *pool);
-/*
+/**
* Add from option for this view
+ * @param view view
+ * @param line from line for this view
+ * @return
*/
gboolean add_view_from (struct rspamd_view *view, gchar *line);
-/*
- * Add from recipient for this view
+
+
+/**
+ * Add recipient for this view
+ * @param view view object
+ * @param line recipient description
+ * @return
*/
gboolean add_view_rcpt (struct rspamd_view *view, gchar *line);
-/*
+
+/**
* Add ip option for this view
+ * @param view view object
+ * @param line ip description
+ * @return
*/
gboolean add_view_ip (struct rspamd_view *view, gchar *line);
-/*
+
+/**
* Add client ip option for this view
+ * @param view view object
+ * @param line ip description
+ * @return
*/
gboolean add_view_client_ip (struct rspamd_view *view, gchar *line);
-/*
+
+/**
* Add symbols option for this view
+ * @param view view object
+ * @param line symbols description
+ * @return
*/
gboolean add_view_symbols (struct rspamd_view *view, gchar *line);
-/*
- * Check view for this task
+/**
+ * Check view for this task for specified symbol
+ * @param views list of defined views
+ * @param symbol symbol to check
+ * @param task task object
+ * @return whether to check this symbol for this task
*/
gboolean check_view (GList *views, const gchar *symbol, struct worker_task *task);
-/*
- * Check whether this task should be skipped from checking
+
+/**
+ * Check whether this task should be skipped from checks
+ * @param views list of defined views
+ * @param task task object
+ * @return
*/
gboolean check_skip (GList *views, struct worker_task *task);