diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-13 16:57:06 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-13 16:57:06 +0000 |
commit | fdff2c694ba91d9e96300b1020d577cfbe8fbd3b (patch) | |
tree | 63a14ec56555cbd708410dbb1855577374107550 /src/libstat/stat_internal.h | |
parent | f086958b4b6b71952bb47e422aebaaa00c3143ea (diff) | |
download | rspamd-fdff2c694ba91d9e96300b1020d577cfbe8fbd3b.tar.gz rspamd-fdff2c694ba91d9e96300b1020d577cfbe8fbd3b.zip |
Configure learn caches.
Diffstat (limited to 'src/libstat/stat_internal.h')
-rw-r--r-- | src/libstat/stat_internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstat/stat_internal.h b/src/libstat/stat_internal.h index a4bcf3362..29bd937fb 100644 --- a/src/libstat/stat_internal.h +++ b/src/libstat/stat_internal.h @@ -28,6 +28,7 @@ #include "classifiers/classifiers.h" #include "tokenizers/tokenizers.h" #include "backends/backends.h" +#include "learn_cache/learn_cache.h" struct rspamd_tokenizer_runtime { GTree *tokens; @@ -79,10 +80,18 @@ struct rspamd_stat_ctx { guint tokenizers_count; struct rspamd_stat_backend *backends; guint backends_count; + struct rspamd_stat_cache *caches; + guint caches_count; guint statfiles; }; +typedef enum rspamd_learn_cache_result { + RSPAMD_LEARN_OK = 0, + RSPAMD_LEARN_UNLEARN, + RSPAMD_LEARN_INGORE +} rspamd_learn_t; + struct rspamd_stat_ctx * rspamd_stat_get_ctx (void); struct rspamd_stat_classifier * rspamd_stat_get_classifier (const gchar *name); struct rspamd_stat_backend * rspamd_stat_get_backend (const gchar *name); |