aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/classifiers/classifiers.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-23 16:49:42 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-23 16:49:42 +0000
commitcaa189167ab79c8fb71de4c74ed4b97ceb619550 (patch)
tree3e27030f6178aa93fea7ff71d60752552c960141 /src/libstat/classifiers/classifiers.h
parent82612bf153debaff5a11e5542caca454e921eeaf (diff)
downloadrspamd-caa189167ab79c8fb71de4c74ed4b97ceb619550.tar.gz
rspamd-caa189167ab79c8fb71de4c74ed4b97ceb619550.zip
Add initial processing routines.
Diffstat (limited to 'src/libstat/classifiers/classifiers.h')
-rw-r--r--src/libstat/classifiers/classifiers.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libstat/classifiers/classifiers.h b/src/libstat/classifiers/classifiers.h
index 6a77f5aed..e2bf57f81 100644
--- a/src/libstat/classifiers/classifiers.h
+++ b/src/libstat/classifiers/classifiers.h
@@ -2,6 +2,7 @@
#define CLASSIFIERS_H
#include "config.h"
+#include "mem_pool.h"
/* Consider this value as 0 */
#define ALPHA 0.0001
@@ -22,10 +23,9 @@ struct rspamd_stat_classifier {
struct classifier_ctx * (*init_func)(rspamd_mempool_t *pool,
struct rspamd_classifier_config *cf);
gboolean (*classify_func)(struct classifier_ctx * ctx,
- GTree *input, struct rspamd_task *task,
- lua_State *L);
+ GTree *input, struct rspamd_task *task);
gboolean (*learn_spam_func)(struct classifier_ctx * ctx,
- GTree *input, struct rspamd_task *task, gboolean is_spam, lua_State *L,
+ GTree *input, struct rspamd_task *task, gboolean is_spam,
GError **err);
};
@@ -34,13 +34,11 @@ struct classifier_ctx * bayes_init (rspamd_mempool_t *pool,
struct rspamd_classifier_config *cf);
gboolean bayes_classify (struct classifier_ctx * ctx,
GTree *input,
- struct rspamd_task *task,
- lua_State *L);
+ struct rspamd_task *task);
gboolean bayes_learn_spam (struct classifier_ctx * ctx,
GTree *input,
struct rspamd_task *task,
gboolean is_spam,
- lua_State *L,
GError **err);
#endif