mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-07-29 16:29:17 +02:00
define hooks
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user