aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/shingles.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-19 12:15:34 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-19 12:15:34 +0000
commit123886d49937ccefc547079f57ca4ef2f11bc312 (patch)
treea124a38e3bca532cb52be6d24b7db6593428c5e6 /src/libutil/shingles.h
parentdd1134f06b174f1829d81b67d7c1a6aeaf8bcc1e (diff)
downloadrspamd-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.h6
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_ */