diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-12-19 12:15:34 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-12-19 12:15:34 +0000 |
commit | 123886d49937ccefc547079f57ca4ef2f11bc312 (patch) | |
tree | a124a38e3bca532cb52be6d24b7db6593428c5e6 /src/libutil/shingles.h | |
parent | dd1134f06b174f1829d81b67d7c1a6aeaf8bcc1e (diff) | |
download | rspamd-123886d49937ccefc547079f57ca4ef2f11bc312.tar.gz rspamd-123886d49937ccefc547079f57ca4ef2f11bc312.zip |
Several improvements to the shingles calculations.
Diffstat (limited to 'src/libutil/shingles.h')
-rw-r--r-- | src/libutil/shingles.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/shingles.h b/src/libutil/shingles.h index 61b3b24c3..d9025946e 100644 --- a/src/libutil/shingles.h +++ b/src/libutil/shingles.h @@ -26,7 +26,7 @@ #include "config.h" #include "mem_pool.h" -#define RSPAMD_SHINGLE_SIZE 23 +#define RSPAMD_SHINGLE_SIZE 32 struct rspamd_shingle { guint64 hashes[RSPAMD_SHINGLE_SIZE]; @@ -39,7 +39,7 @@ struct rspamd_shingle { * @return shingle value */ typedef guint64 (*rspamd_shingles_filter) (guint64 *input, gsize count, - gpointer ud); + gint shno, const guchar *key, gpointer ud); /** * Generate shingles from the input of fixed size strings using lemmatizer @@ -71,6 +71,6 @@ gdouble rspamd_shingles_compare (const struct rspamd_shingle *a, * Default filtering function */ guint64 rspamd_shingles_default_filter (guint64 *input, gsize count, - gpointer ud); + gint shno, const guchar *key, gpointer ud); #endif /* SHINGLES_H_ */ |