diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-05 09:26:43 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-05 09:26:43 +0100 |
commit | 839e4775b77c3b1fe256c640ab9920ebb6e51afb (patch) | |
tree | 90c748d277982dc2eb9889567330aebef72d4d66 /src/lua/lua_common.h | |
parent | d2b0976bc8b18897f02905329849583817997116 (diff) | |
download | rspamd-839e4775b77c3b1fe256c640ab9920ebb6e51afb.tar.gz rspamd-839e4775b77c3b1fe256c640ab9920ebb6e51afb.zip |
[Feature] Improve logging lua types
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r-- | src/lua/lua_common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index c20d833ca..73be9e0c5 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -335,5 +335,16 @@ void lua_push_internet_address_list (lua_State *L, InternetAddressList *addrs); * @return */ gboolean lua_push_internet_address (lua_State *L, InternetAddress *ia); + +/** + * Log lua object to string + * @param L + * @param pos + * @param outbuf + * @param len + * @return + */ +gsize lua_logger_out_type (lua_State *L, gint pos, gchar *outbuf, + gsize len); #endif /* WITH_LUA */ #endif /* RSPAMD_LUA_H */ |