aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/rspamd_symcache.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-05-14 13:20:44 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-05-14 13:20:44 +0100
commit3134f3e191c9eda77a05e655be0ac54542746387 (patch)
treeac7b3faee172e74bca0defec86b390a918a9d202 /src/libserver/rspamd_symcache.h
parentce9f332830db017758e523b195f4f3d671c59630 (diff)
downloadrspamd-3134f3e191c9eda77a05e655be0ac54542746387.tar.gz
rspamd-3134f3e191c9eda77a05e655be0ac54542746387.zip
[Feature] Allow augmentations set in Lua API
Diffstat (limited to 'src/libserver/rspamd_symcache.h')
-rw-r--r--src/libserver/rspamd_symcache.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libserver/rspamd_symcache.h b/src/libserver/rspamd_symcache.h
index 99158fbc3..95ca614af 100644
--- a/src/libserver/rspamd_symcache.h
+++ b/src/libserver/rspamd_symcache.h
@@ -127,6 +127,16 @@ gint rspamd_symcache_add_symbol (struct rspamd_symcache *cache,
gint parent);
/**
+ * Adds augmentation to the symbol
+ * @param cache
+ * @param sym_id
+ * @param augmentation
+ * @return
+ */
+bool rspamd_symcache_add_symbol_augmentation(struct rspamd_symcache *cache,
+ int sym_id, const char *augmentation);
+
+/**
* Add callback to be executed whenever symbol has peak value
* @param cache
* @param cbref