diff options
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r-- | src/lua/lua_common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index d9e4fcaec..b929ab864 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -566,6 +566,15 @@ void rspamd_lua_add_ref_dtor (lua_State *L, rspamd_mempool_t *pool, gint ref); /** + * Returns a lua reference from a function like string, e.g. `return function(...) end` + * @param L + * @param str + * @return + */ +gint rspamd_lua_function_ref_from_str (lua_State *L, const gchar *str, gsize slen, + GError **err); + +/** * Tries to load some module using `require` and get some method from it * @param L * @param modname |