9 #ifndef luasandbox_output_h_ 10 #define luasandbox_output_h_ struct lsb_lua_sandbox lsb_lua_sandbox
LSB_EXPORT void lsb_add_output_function(lua_State *lua, lua_CFunction fp)
Add a output function to the environment table.
LSB_EXPORT lua_CFunction lsb_get_output_function(lua_State *lua, int index)
Utility function to retrieve a user data output function.
LSB_EXPORT void lsb_output_coroutine(lsb_lua_sandbox *lsb, lua_State *lua, int start, int end, int append)
Write an array of variables on the Lua stack to the output buffer.
int(* lua_CFunction)(lua_State *L)
Generic Lua sandbox for dynamic data analysis.
LSB_EXPORT void lsb_output(lsb_lua_sandbox *lsb, int start, int end, int append)
Write an array of variables on the Lua stack to the output buffer.
struct lua_State lua_State
LSB_EXPORT void lsb_add_zero_copy_function(lua_State *lua, lua_CFunction fp)
Add a zero copy function to the environment table.
LSB_EXPORT lua_CFunction lsb_get_zero_copy_function(lua_State *lua, int index)
Utility function to retrieve a user data zero copy function.
LSB_EXPORT const char * lsb_get_output(lsb_lua_sandbox *lsb, size_t *len)
Retrieve the data in the output buffer and reset the buffer.