diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-07 11:01:53 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-07 11:15:26 +0100 |
commit | 042380a5243410b631c14144805e2462b430f47f (patch) | |
tree | bd884dd0a701d214643698649fb437370b98d8d5 /contrib/libucl/lua_ucl.h | |
parent | 6a2d76cb6579af34bced85147f43d095d3b999e1 (diff) | |
download | rspamd-042380a5243410b631c14144805e2462b430f47f.tar.gz rspamd-042380a5243410b631c14144805e2462b430f47f.zip |
[Feature] Add escaped version of lua_ucl import
Diffstat (limited to 'contrib/libucl/lua_ucl.h')
-rw-r--r-- | contrib/libucl/lua_ucl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/libucl/lua_ucl.h b/contrib/libucl/lua_ucl.h index 38e74d3f6..da7e014b9 100644 --- a/contrib/libucl/lua_ucl.h +++ b/contrib/libucl/lua_ucl.h @@ -55,6 +55,14 @@ UCL_EXTERN int luaopen_ucl (lua_State *L); UCL_EXTERN ucl_object_t* ucl_object_lua_import (lua_State *L, int idx); /** + * Import UCL object from lua state, escaping JSON strings + * @param L lua state + * @param idx index of object at the lua stack to convert to UCL + * @return new UCL object or NULL, the caller should unref object after using + */ +UCL_EXTERN ucl_object_t* ucl_object_lua_import_escape (lua_State *L, int idx); + +/** * Push an object to lua * @param L lua state * @param obj object to push |