summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-05 18:06:12 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-05 18:06:12 +0000
commite1b043f8bf7970278f55ae7ca1a106dee6c4fa98 (patch)
tree7c4e4205a7eb9341fa1196d8fda5997d20b6976c /src/lua/lua_common.h
parentd027dca0f2c45caa9d8a26e476d44f94a92f639e (diff)
downloadrspamd-e1b043f8bf7970278f55ae7ca1a106dee6c4fa98.tar.gz
rspamd-e1b043f8bf7970278f55ae7ca1a106dee6c4fa98.zip
[Feature] Add method task:lookup_words
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r--src/lua/lua_common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h
index 25f5b7ff4..31d7f852b 100644
--- a/src/lua/lua_common.h
+++ b/src/lua/lua_common.h
@@ -433,6 +433,13 @@ gboolean rspamd_lua_require_function (lua_State *L, const gchar *modname,
gboolean rspamd_lua_try_load_redis (lua_State *L, const ucl_object_t *obj,
struct rspamd_config *cfg, gint *ref_id);
+struct rspamd_stat_token_s;
+/**
+ * Pushes a single word into Lua
+ * @param L
+ * @param word
+ */
+void rspamd_lua_push_full_word (lua_State *L, struct rspamd_stat_token_s *word);
enum rspamd_lua_words_type {
RSPAMD_LUA_WORDS_STEM = 0,