aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/roll_history.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-13 16:03:02 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-13 16:03:02 +0000
commitfac6eb71e67fb77b2ab4718e1b66c4e69cb53f1b (patch)
tree3232a605d11fac96ee869a4f24c6af837af56972 /src/libserver/roll_history.h
parent52a47b8cfb1c9acaa1bd0dd78ec295c32849417d (diff)
downloadrspamd-fac6eb71e67fb77b2ab4718e1b66c4e69cb53f1b.tar.gz
rspamd-fac6eb71e67fb77b2ab4718e1b66c4e69cb53f1b.zip
[Minor] Disable internal history if handled by plugins
Diffstat (limited to 'src/libserver/roll_history.h')
-rw-r--r--src/libserver/roll_history.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/roll_history.h b/src/libserver/roll_history.h
index 26d2a3be1..d8a77bfd7 100644
--- a/src/libserver/roll_history.h
+++ b/src/libserver/roll_history.h
@@ -30,6 +30,7 @@
#define HISTORY_MAX_ADDR 32
struct rspamd_task;
+struct rspamd_config;
struct roll_history_row {
struct timeval tv;
@@ -47,6 +48,7 @@ struct roll_history_row {
struct roll_history {
struct roll_history_row *rows;
+ gboolean disabled;
guint nrows;
guint cur_row;
};
@@ -57,7 +59,7 @@ struct roll_history {
* @return new structure
*/
struct roll_history * rspamd_roll_history_new (rspamd_mempool_t *pool,
- guint max_rows);
+ guint max_rows, struct rspamd_config *cfg);
/**
* Update roll history with data from task