summaryrefslogtreecommitdiffstats
path: root/src/libserver/symbols_cache.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-06-07 13:57:23 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-06-07 13:57:23 +0100
commit69d09c6c9c0b1b50be2c63d169d67df5621ad1bc (patch)
tree89ea3b2d27b7f4d4279d21d968f53e77499f25cb /src/libserver/symbols_cache.h
parent1fcc88a39c95c581485d4bbfda3789e6aa6ed004 (diff)
downloadrspamd-69d09c6c9c0b1b50be2c63d169d67df5621ad1bc.tar.gz
rspamd-69d09c6c9c0b1b50be2c63d169d67df5621ad1bc.zip
Implement dependencies addition.
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 878d0a0bf..014a825dc 100644
--- a/src/libserver/symbols_cache.h
+++ b/src/libserver/symbols_cache.h
@@ -173,4 +173,14 @@ void rspamd_symbols_cache_start_refresh (struct symbols_cache * cache,
void rspamd_symbols_cache_inc_frequency (struct symbols_cache *cache,
const gchar *symbol);
+/**
+ * Add dependency relation between two symbols identified by id (source) and
+ * a symbolic name (destination). Destination could be virtual or real symbol.
+ * Callback destinations are not yet supported.
+ * @param id_from source symbol
+ * @param to destination name
+ */
+void rspamd_symbols_cache_add_dependency (struct symbols_cache *cache,
+ gint id_from, const gchar *to);
+
#endif