aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-21 12:54:46 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-21 12:54:46 +0000
commit18db86e3e37e27fcfec5414595d29e3af6b9c045 (patch)
tree973a507223c063443e2d2d2b1fe29a76fa1452c7 /src/main.h
parent1535c2ed557104858c3f1d2216dba138af86fea8 (diff)
downloadrspamd-18db86e3e37e27fcfec5414595d29e3af6b9c045.tar.gz
rspamd-18db86e3e37e27fcfec5414595d29e3af6b9c045.zip
Move fin_task to a common rspamd_fin_task function.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 3acd5a870..338c09f45 100644
--- a/src/main.h
+++ b/src/main.h
@@ -257,6 +257,8 @@ struct worker_task {
struct rspamd_dns_resolver *resolver; /**< DNS resolver */
struct event_base *ev_base; /**< Event base */
+ GThreadPool *classify_pool; /**< A pool of classify threads */
+
struct {
enum rspamd_metric_action action; /**< Action of pre filters */
gchar *str; /**< String describing action */
@@ -302,6 +304,17 @@ void free_task_hard (gpointer ud);
void free_task_soft (gpointer ud);
/**
+ * Called if session was restored inside fin callback
+ */
+void rspamd_restore_task (void *arg);
+
+/**
+ * Called if all filters are processed
+ * @return TRUE if session should be terminated
+ */
+gboolean rspamd_fin_task (void *arg);
+
+/**
* Set counter for a symbol
*/
double set_counter (const gchar *name, guint32 value);