aboutsummaryrefslogtreecommitdiff
path: root/src/reg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reg.c')
-rw-r--r--src/reg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/reg.c b/src/reg.c
index cdc6267..50dc8b9 100644
--- a/src/reg.c
+++ b/src/reg.c
@@ -1,6 +1,7 @@
#include "lua.h"
#include "table.h"
#include "crypto.h"
+#include "io.h"
int luaopen_llib(lua_State* L) {
lua_newtable(L);
@@ -13,6 +14,10 @@ int luaopen_llib(lua_State* L) {
lua_newtable(L);
luaL_register(L, NULL, crypto_function_list);
lua_setfield(L, 2, "crypto");
+
+ lua_newtable(L);
+ luaL_register(L, NULL, io_function_list);
+ lua_setfield(L, 2, "io");
//make llib global
lua_setglobal(L, "llib");
return 1;