diff mbox series

Lua: export missing PROGRESS status

Message ID 20201117094035.2153271-1-sbabic@denx.de
State Accepted
Headers show
Series Lua: export missing PROGRESS status | expand

Commit Message

Stefano Babic Nov. 17, 2020, 9:40 a.m. UTC
This was added but not yet exported to Lua. Fixing this, it is possible
to send a message to the progress interface from Lua code like:

	swupdate.notify(RECOVERY_STATUS.PROGRESS, ...)

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 corelib/lua_interface.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/corelib/lua_interface.c b/corelib/lua_interface.c
index a0d9297..a19e9ef 100644
--- a/corelib/lua_interface.c
+++ b/corelib/lua_interface.c
@@ -927,6 +927,7 @@  static int luaopen_swupdate(lua_State *L)
 	lua_push_enum(L, "DOWNLOAD", DOWNLOAD);
 	lua_push_enum(L, "DONE", DONE);
 	lua_push_enum(L, "SUBPROCESS", SUBPROCESS);
+	lua_push_enum(L, "PROGRESS", SUBPROCESS);
 	lua_settable(L, -3);
 
 #ifdef CONFIG_HANDLER_IN_LUA