aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_internal.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-24 22:42:41 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-24 22:42:41 +0000
commit5cac9fc0e5d6b918d817d019be85e04543ba27f2 (patch)
tree8392fd993d4092777e58b2157440e84e488b3de8 /src/libstat/stat_internal.h
parentde474c927f3bdf4b809cb275a79c0a0a42bc501c (diff)
downloadrspamd-5cac9fc0e5d6b918d817d019be85e04543ba27f2.tar.gz
rspamd-5cac9fc0e5d6b918d817d019be85e04543ba27f2.zip
Add preprocessing routine for classifiers.
Diffstat (limited to 'src/libstat/stat_internal.h')
-rw-r--r--src/libstat/stat_internal.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstat/stat_internal.h b/src/libstat/stat_internal.h
index 6587f595e..54f7e13d9 100644
--- a/src/libstat/stat_internal.h
+++ b/src/libstat/stat_internal.h
@@ -31,18 +31,20 @@
struct rspamd_statfile_runtime {
struct rspamd_statfile_config *st;
- gpointer statfile_data;
+ gpointer backend_runtime;
guint64 hits;
guint64 total_hits;
};
struct rspamd_classifier_runtime {
+ struct rspamd_classifier_config *clcf;
+ struct rspamd_stat_classifier *cl;
double ham_prob;
double spam_prob;
guint64 total_spam;
guint64 total_ham;
guint64 processed_tokens;
- gsize max_tokens;
+ GList *st_runtime;
};
struct rspamd_token_result {