diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-27 13:28:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-27 13:28:15 +0100 |
commit | 043c5b7bcdb055c7f45034bd0a83408773c35bfd (patch) | |
tree | 45067ad27ec876a580a5f880fac448829149a22d /src/libstat/tokenizers/tokenizers.h | |
parent | c111a765eb9cc6e8d362a427ab435db959415fd9 (diff) | |
download | rspamd-043c5b7bcdb055c7f45034bd0a83408773c35bfd.tar.gz rspamd-043c5b7bcdb055c7f45034bd0a83408773c35bfd.zip |
More changes to tokenization.
Diffstat (limited to 'src/libstat/tokenizers/tokenizers.h')
-rw-r--r-- | src/libstat/tokenizers/tokenizers.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstat/tokenizers/tokenizers.h b/src/libstat/tokenizers/tokenizers.h index 1f4b0a54f..a2ff388ef 100644 --- a/src/libstat/tokenizers/tokenizers.h +++ b/src/libstat/tokenizers/tokenizers.h @@ -9,11 +9,13 @@ #define RSPAMD_DEFAULT_TOKENIZER "osb" +struct rspamd_tokenizer_runtime; + /* Common tokenizer structure */ struct rspamd_stat_tokenizer { gchar *name; gpointer (*get_config) (struct rspamd_tokenizer_config *cf, gsize *len); - gboolean (*compatible_config) (struct rspamd_tokenizer_config *cf, + gboolean (*compatible_config) (struct rspamd_tokenizer_runtime *rt, gpointer ptr, gsize len); gboolean (*load_config) (struct rspamd_tokenizer_runtime *rt, gpointer ptr, gsize len); @@ -44,7 +46,7 @@ gpointer rspamd_tokenizer_osb_get_config (struct rspamd_tokenizer_config *cf, gsize *len); gboolean -rspamd_tokenizer_osb_compatible_config (struct rspamd_tokenizer_config *cf, +rspamd_tokenizer_osb_compatible_config (struct rspamd_tokenizer_runtime *rt, gpointer ptr, gsize len); gboolean |