aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/symbols_cache.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-26 18:07:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-26 18:07:56 +0100
commit594ec49b6d8133db7d9883cc552698fcd33e0c5c (patch)
treeb56b171c1c6bb58e44206eafd0419d2094946934 /src/libserver/symbols_cache.h
parentf0e1e49cd6f6a2c517fa10863162a631504c7706 (diff)
downloadrspamd-594ec49b6d8133db7d9883cc552698fcd33e0c5c.tar.gz
rspamd-594ec49b6d8133db7d9883cc552698fcd33e0c5c.zip
Another step for cache init/deinit rework.
Diffstat (limited to 'src/libserver/symbols_cache.h')
-rw-r--r--src/libserver/symbols_cache.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libserver/symbols_cache.h b/src/libserver/symbols_cache.h
index 69e52db2b..2a7bc8624 100644
--- a/src/libserver/symbols_cache.h
+++ b/src/libserver/symbols_cache.h
@@ -41,9 +41,19 @@ enum rspamd_symbol_type {
SYMBOL_TYPE_CALLBACK
};
+/**
+ * Creates new cache structure
+ * @return
+ */
struct symbols_cache* rspamd_symbols_cache_new (void);
/**
+ * Remove the cache structure syncing data if needed
+ * @param cache
+ */
+void rspamd_symbols_cache_destroy (struct symbols_cache *cache);
+
+/**
* Load symbols cache from file, must be called _after_ init_symbols_cache
*/
gboolean init_symbols_cache (struct symbols_cache* cache,