aboutsummaryrefslogtreecommitdiff
path: root/src/reg.c
diff options
context:
space:
mode:
authorame <[email protected]>2024-01-18 14:08:57 -0600
committerame <[email protected]>2024-01-18 14:08:57 -0600
commit06868eee51e5e49581e969164ba6fef4e0e54055 (patch)
tree74e039398d6f28e83d38dd24876b8c8e59e1e952 /src/reg.c
parent8a28c83cb14a891ec46d0465225e089dc62213db (diff)
almost working http server!
Diffstat (limited to 'src/reg.c')
-rw-r--r--src/reg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/reg.c b/src/reg.c
index 10c9e33..a9c07bb 100644
--- a/src/reg.c
+++ b/src/reg.c
@@ -4,7 +4,7 @@
#include "config.h"
#include "io.h"
#include "math.h"
-
+#include "net.h"
int luaopen_llib(lua_State* L) {
lua_newtable(L);
@@ -28,6 +28,10 @@ int luaopen_llib(lua_State* L) {
lua_newtable(L);
luaL_register(L, NULL, config_function_list);
lua_setfield(L, 2, "config");
+
+ lua_newtable(L);
+ luaL_register(L, NULL, net_function_list);
+ lua_setfield(L, 2, "net");
//make llib global
lua_setglobal(L, "llib");
return 1;