diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-05 17:26:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-05 17:26:28 +0100 |
commit | 29bbf526f4e7d6fe31618901a753ee350fbe03d5 (patch) | |
tree | e9daa1dbccbb1789f75bfa8427e6d53f8a4fe20c /src/libserver/symbols_cache.h | |
parent | 5cb2fe96545d019d9a457f9be307eea165790b09 (diff) | |
download | rspamd-29bbf526f4e7d6fe31618901a753ee350fbe03d5.tar.gz rspamd-29bbf526f4e7d6fe31618901a753ee350fbe03d5.zip |
[Feature] Add method to get number of symbols in the cache
Diffstat (limited to 'src/libserver/symbols_cache.h')
-rw-r--r-- | src/libserver/symbols_cache.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libserver/symbols_cache.h b/src/libserver/symbols_cache.h index e19974129..0874ac475 100644 --- a/src/libserver/symbols_cache.h +++ b/src/libserver/symbols_cache.h @@ -118,6 +118,13 @@ const gchar * rspamd_symbols_cache_symbol_by_id (struct symbols_cache *cache, gint id); /** + * Returns number of symbols registered in symbols cache + * @param cache + * @return number of symbols in the cache + */ +guint rspamd_symbols_cache_symbols_count (struct symbols_cache *cache); + +/** * Call function for cached symbol using saved callback * @param task task object * @param cache symbols cache |