diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-19 18:50:45 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-19 18:50:45 +0100 |
commit | afb5bf3cbf718f231e344947ce5fd3d660961139 (patch) | |
tree | f40a9a0f2a465cff8cfba6cd1e092d594b824fa5 /src/libstat/stat_api.h | |
parent | 5bf6c2c3ab9d103705e41d0a47e96a47946d8aa0 (diff) | |
download | rspamd-afb5bf3cbf718f231e344947ce5fd3d660961139.tar.gz rspamd-afb5bf3cbf718f231e344947ce5fd3d660961139.zip |
[Feature] Add method to get statistical tokens in Lua API
Diffstat (limited to 'src/libstat/stat_api.h')
-rw-r--r-- | src/libstat/stat_api.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstat/stat_api.h b/src/libstat/stat_api.h index 1ade4ccd5..84db8ee01 100644 --- a/src/libstat/stat_api.h +++ b/src/libstat/stat_api.h @@ -39,6 +39,15 @@ typedef struct rspamd_stat_token_s { guint flags; } rspamd_stat_token_t; +typedef struct token_node_s { + guint64 data; + guint window_idx; + guint flags; + rspamd_stat_token_t *t1; + rspamd_stat_token_t *t2; + gdouble values[]; +} rspamd_token_t; + struct rspamd_stat_ctx; /** |