summaryrefslogtreecommitdiffstats
path: root/src/libserver/rspamd_symcache.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-12 15:03:30 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-12 15:03:30 +0000
commit098bad331a1bfad297c519ae2d310eb3639b94ba (patch)
treeec990018f59c93c34f3256537e228cf1c47d735b /src/libserver/rspamd_symcache.h
parent3d2cadb16676133ac3007da65630996168be3c91 (diff)
downloadrspamd-098bad331a1bfad297c519ae2d310eb3639b94ba.tar.gz
rspamd-098bad331a1bfad297c519ae2d310eb3639b94ba.zip
[Project] Implement new flags in Lua API
Diffstat (limited to 'src/libserver/rspamd_symcache.h')
-rw-r--r--src/libserver/rspamd_symcache.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libserver/rspamd_symcache.h b/src/libserver/rspamd_symcache.h
index b5e029a6b..965895221 100644
--- a/src/libserver/rspamd_symcache.h
+++ b/src/libserver/rspamd_symcache.h
@@ -249,7 +249,23 @@ void rspamd_symcache_enable_symbol_perm (struct rspamd_symcache *cache,
struct rspamd_abstract_callback_data* rspamd_symcache_get_cbdata (
struct rspamd_symcache *cache, const gchar *symbol);
+/**
+ * Adds flags to a symbol
+ * @param cache
+ * @param symbol
+ * @param flags
+ * @return
+ */
+gboolean rspamd_symcache_add_symbol_flags (struct rspamd_symcache *cache,
+ const gchar *symbol,
+ guint flags);
+
+gboolean rspamd_symcache_set_symbol_flags (struct rspamd_symcache *cache,
+ const gchar *symbol,
+ guint flags);
+guint rspamd_symcache_get_symbol_flags (struct rspamd_symcache *cache,
+ const gchar *symbol);
/**
* Process settings for task
* @param task