diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-14 13:01:08 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-14 13:37:18 +0000 |
commit | 4a17956f7b5b6268859445e1d2369abdb2965ae4 (patch) | |
tree | 7e2849b456ef4f11ae2bde3d3526fb0ecc741b04 /src/libstat/stat_api.h | |
parent | da43e0ec3b059752e7d4d4d283e33d568aa110cf (diff) | |
download | rspamd-4a17956f7b5b6268859445e1d2369abdb2965ae4.tar.gz rspamd-4a17956f7b5b6268859445e1d2369abdb2965ae4.zip |
[Rework] Use a special structure for stats tokens
Diffstat (limited to 'src/libstat/stat_api.h')
-rw-r--r-- | src/libstat/stat_api.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libstat/stat_api.h b/src/libstat/stat_api.h index 3c42e8622..6c2604e89 100644 --- a/src/libstat/stat_api.h +++ b/src/libstat/stat_api.h @@ -26,6 +26,18 @@ * High level statistics API */ +#define RSPAMD_STAT_TOKEN_FLAG_TEXT (1 << 0) +#define RSPAMD_STAT_TOKEN_FLAG_META (1 << 1) +#define RSPAMD_STAT_TOKEN_FLAG_LUA_META (1 << 2) +#define RSPAMD_STAT_TOKEN_FLAG_EXCEPTION (1 << 3) +#define RSPAMD_STAT_TOKEN_FLAG_SUBJECT (1 << 4) + +typedef struct rspamd_stat_token_s { + const gchar *begin; + gsize len; + guint flags; +} rspamd_stat_token_t; + /** * The results of statistics processing: * - error |