diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-04 18:21:11 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-04 18:21:11 +0100 |
commit | 369a6c48b62ecfbfcd670498e23ec2500cba3bbb (patch) | |
tree | 2d36fe96d1a8c3170e69749fbef4f595ce6ddc02 /src/libserver/symbols_cache.h | |
parent | 37b5f80e6e23639d9deb10707585e3751182784b (diff) | |
download | rspamd-369a6c48b62ecfbfcd670498e23ec2500cba3bbb.tar.gz rspamd-369a6c48b62ecfbfcd670498e23ec2500cba3bbb.zip |
[Feature] Add new auxiliary methods for symbols cache
Diffstat (limited to 'src/libserver/symbols_cache.h')
-rw-r--r-- | src/libserver/symbols_cache.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/libserver/symbols_cache.h b/src/libserver/symbols_cache.h index 6dd70f04c..e19974129 100644 --- a/src/libserver/symbols_cache.h +++ b/src/libserver/symbols_cache.h @@ -105,7 +105,17 @@ gboolean rspamd_symbols_cache_add_condition_delayed (struct symbols_cache *cache * @param name * @return id of symbol or (-1) if a symbol has not been found */ -gint rspamd_symbols_cache_find_symbol (struct symbols_cache *cache, const gchar *name); +gint rspamd_symbols_cache_find_symbol (struct symbols_cache *cache, + const gchar *name); + +/** + * Find symbol in cache by its id + * @param cache + * @param id + * @return symbol's name or NULL + */ +const gchar * rspamd_symbols_cache_symbol_by_id (struct symbols_cache *cache, + gint id); /** * Call function for cached symbol using saved callback |