aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/tokenizers/tokenizers.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-26 21:43:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-26 21:43:52 +0100
commit277ffc972d161a0928bc07c2e5d110b00115744c (patch)
tree246b76ade650c124e987f9ff4a662ded8b23d07e /src/libstat/tokenizers/tokenizers.h
parente38b84cd48f8c465b94395a5641f85209ab22b68 (diff)
downloadrspamd-277ffc972d161a0928bc07c2e5d110b00115744c.tar.gz
rspamd-277ffc972d161a0928bc07c2e5d110b00115744c.zip
Allow adding of prefix for tokenizers.
Diffstat (limited to 'src/libstat/tokenizers/tokenizers.h')
-rw-r--r--src/libstat/tokenizers/tokenizers.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstat/tokenizers/tokenizers.h b/src/libstat/tokenizers/tokenizers.h
index 2c96b7cff..ef3fc8af0 100644
--- a/src/libstat/tokenizers/tokenizers.h
+++ b/src/libstat/tokenizers/tokenizers.h
@@ -19,7 +19,8 @@ struct rspamd_stat_tokenizer {
rspamd_mempool_t *pool,
GArray *words,
GTree *result,
- gboolean is_utf);
+ gboolean is_utf,
+ const gchar *prefix);
};
/* Compare two token nodes */
@@ -36,7 +37,8 @@ gint rspamd_tokenizer_osb (struct rspamd_tokenizer_config *cf,
rspamd_mempool_t *pool,
GArray *input,
GTree *tokens,
- gboolean is_utf);
+ gboolean is_utf,
+ const gchar *prefix);
gpointer rspamd_tokenizer_osb_get_config (struct rspamd_tokenizer_config *cf,
gsize *len);