diff --git a/src/lua_rds.c b/src/lua_rds.c index 1a663b6..ee590f6 100644 --- a/src/lua_rds.c +++ b/src/lua_rds.c @@ -60,6 +60,19 @@ void init_lua(RDSEncoder* _enc) { lua_registertotable(L, "get_writing_program", lua_get_rds_writing_program); lua_setglobal(L, "dp"); + lua_newtable(L); + lua_newtable(L); + lua_setfield(L, -2, "on_init"); + lua_newtable(L); + lua_setfield(L, -2, "on_start"); + lua_newtable(L); + lua_setfield(L, -2, "on_state"); + lua_newtable(L); + lua_setfield(L, -2, "tick"); + lua_newtable(L); + lua_setfield(L, -2, "rt_transmission"); + lua_setfield(L, -1, "hooks"); + lua_newtable(L); lua_newtable(L);