Lua module and C API to make C data structures accessible to Lua