aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/symcache/symcache_c.cxx
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-04-30 19:57:35 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-04-30 19:57:35 +0100
commita1eb112ae959069b4c10767c6f2a7d664786f3e6 (patch)
tree428fe780dd7433100e2291da8b854e159c02c5f7 /src/libserver/symcache/symcache_c.cxx
parent78b931e5d8a6fd86c32d87f7d7bbd34a616e8c16 (diff)
downloadrspamd-a1eb112ae959069b4c10767c6f2a7d664786f3e6.tar.gz
rspamd-a1eb112ae959069b4c10767c6f2a7d664786f3e6.zip
[Project] Implement item finalization
Diffstat (limited to 'src/libserver/symcache/symcache_c.cxx')
-rw-r--r--src/libserver/symcache/symcache_c.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libserver/symcache/symcache_c.cxx b/src/libserver/symcache/symcache_c.cxx
index bef932488..af4d36432 100644
--- a/src/libserver/symcache/symcache_c.cxx
+++ b/src/libserver/symcache/symcache_c.cxx
@@ -543,4 +543,14 @@ rspamd_symcache_process_symbols(struct rspamd_task *task,
auto *cache_runtime = C_API_SYMCACHE_RUNTIME(task->symcache_runtime);
return cache_runtime->process_symbols(task, *real_cache, stage);
+}
+
+void
+rspamd_symcache_finalize_item(struct rspamd_task *task,
+ struct rspamd_symcache_item *item)
+{
+ auto *cache_runtime = C_API_SYMCACHE_RUNTIME(task->symcache_runtime);
+ auto *real_item = C_API_SYMCACHE_ITEM(item);
+
+ cache_runtime->finalize_item(task, real_item);
} \ No newline at end of file