diff options
Diffstat (limited to 'src/fuzzy_storage.h')
-rw-r--r-- | src/fuzzy_storage.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/fuzzy_storage.h b/src/fuzzy_storage.h index dcd0c5d4f..33ecc1959 100644 --- a/src/fuzzy_storage.h +++ b/src/fuzzy_storage.h @@ -4,6 +4,9 @@ #include "config.h" #include "main.h" #include "fuzzy.h" +#include "shingles.h" + +#define RSPAMD_FUZZY_VERSION 2 /* Commands for fuzzy storage */ #define FUZZY_CHECK 0 @@ -18,4 +21,11 @@ struct legacy_fuzzy_cmd { u_char hash[FUZZY_HASHLEN]; }; +struct rspamd_fuzzy_cmd { + guint8 version; + guint8 cmd; + guint16 size; + struct rspamd_shingle sh; +}; + #endif |