summaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_config.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-27 12:24:02 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-27 12:24:02 +0100
commitc111a765eb9cc6e8d362a427ab435db959415fd9 (patch)
tree5a9975ee1833caffcf74756a6cb8cd2457647001 /src/libstat/stat_config.c
parentce3b4dafbb83c471ff5010a001607999909265e5 (diff)
downloadrspamd-c111a765eb9cc6e8d362a427ab435db959415fd9.tar.gz
rspamd-c111a765eb9cc6e8d362a427ab435db959415fd9.zip
Start tokenizers rework.
Diffstat (limited to 'src/libstat/stat_config.c')
-rw-r--r--src/libstat/stat_config.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libstat/stat_config.c b/src/libstat/stat_config.c
index 6f27d1c10..9ae1b5bf8 100644
--- a/src/libstat/stat_config.c
+++ b/src/libstat/stat_config.c
@@ -45,13 +45,15 @@ static struct rspamd_stat_tokenizer stat_tokenizers[] = {
.name = "osb-text",
.get_config = rspamd_tokenizer_osb_get_config,
.compatible_config = rspamd_tokenizer_osb_compatible_config,
- .tokenize_func = rspamd_tokenizer_osb
+ .tokenize_func = rspamd_tokenizer_osb,
+ .load_config = rspamd_tokenizer_osb_load_config
},
{
.name = "osb",
.get_config = rspamd_tokenizer_osb_get_config,
.compatible_config = rspamd_tokenizer_osb_compatible_config,
- .tokenize_func = rspamd_tokenizer_osb
+ .tokenize_func = rspamd_tokenizer_osb,
+ .load_config = rspamd_tokenizer_osb_load_config
},
};
@@ -67,6 +69,7 @@ static struct rspamd_stat_tokenizer stat_tokenizers[] = {
.inc_learns = rspamd_##eltn##_inc_learns, \
.dec_learns = rspamd_##eltn##_dec_learns, \
.get_stat = rspamd_##eltn##_get_stat, \
+ .load_tokenizer_config = rspamd_##eltn##_load_tokenizer_config, \
.close = rspamd_##eltn##_close \
}