summaryrefslogtreecommitdiffstats
path: root/src/libserver/symbols_cache.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-27 17:30:06 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-27 17:30:06 +0100
commitce9a26d98932473c449e5d4bf39dbb93a6d7a924 (patch)
tree0795cc151f36af79cff0b133f258bd7b3832ed50 /src/libserver/symbols_cache.h
parent6455a39ab8a8f0ee66af467c86d2d4b6124f68b8 (diff)
downloadrspamd-ce9a26d98932473c449e5d4bf39dbb93a6d7a924.tar.gz
rspamd-ce9a26d98932473c449e5d4bf39dbb93a6d7a924.zip
Restore `counters` command.
Diffstat (limited to 'src/libserver/symbols_cache.h')
-rw-r--r--src/libserver/symbols_cache.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libserver/symbols_cache.h b/src/libserver/symbols_cache.h
index 5a476f414..8eee4e690 100644
--- a/src/libserver/symbols_cache.h
+++ b/src/libserver/symbols_cache.h
@@ -26,6 +26,7 @@
#define RSPAMD_SYMBOLS_CACHE_H
#include "config.h"
+#include "ucl.h"
#define MAX_SYMBOL 128
@@ -152,5 +153,11 @@ gboolean validate_cache (struct symbols_cache *cache,
struct rspamd_config *cfg,
gboolean strict);
+/**
+ * Return statistics about the cache as ucl object (array of objects one per item)
+ * @param cache
+ * @return
+ */
+ucl_object_t *rspamd_symbols_cache_counters (struct symbols_cache * cache);
#endif