summaryrefslogtreecommitdiffstats
path: root/src/main.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-07 19:06:41 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-07 19:06:41 +0300
commit46ceb4ad592937ac210d1fcdfe5ee0f53d317b39 (patch)
tree229575849706886df9da026885bee94c9392c8eb /src/main.h
parent8f1675ae06e1aa919d92fdabdc4e0d4e19c24d50 (diff)
downloadrspamd-46ceb4ad592937ac210d1fcdfe5ee0f53d317b39.tar.gz
rspamd-46ceb4ad592937ac210d1fcdfe5ee0f53d317b39.zip
Reorganize util.c as it should contain only common utilities.
Libkvstorage client is now deprecated as I plan to replace it with hiredis library.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 7ff76afb3..59a5f3c30 100644
--- a/src/main.h
+++ b/src/main.h
@@ -292,6 +292,24 @@ gpointer init_workers_ctx (enum process_type type);
*/
extern struct rspamd_main *rspamd_main;
+/* Worker task manipulations */
+
+/**
+ * Construct new task for worker
+ */
+struct worker_task* construct_task (struct rspamd_worker *worker);
+/**
+ * Destroy task object and remove its IO dispatcher if it exists
+ */
+void free_task (struct worker_task *task, gboolean is_soft);
+void free_task_hard (gpointer ud);
+void free_task_soft (gpointer ud);
+
+/**
+ * Set counter for a symbol
+ */
+double set_counter (const gchar *name, guint32 value);
+
#endif
/*