From 123886d49937ccefc547079f57ca4ef2f11bc312 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 19 Dec 2014 12:15:34 +0000 Subject: Several improvements to the shingles calculations. --- src/libutil/shingles.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libutil/shingles.h') 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_ */ -- cgit v1.2.3