[PATCH] suricatta/lua: Add suricatta.ipc.progress_cause table

35 views
Skip to first unread message

Storm, Christian

unread,
Jun 3, 2024, 4:18:43 PM6/3/24
to swupdate
Reported-by: Adithya Balakumar <adithy...@gmail.com>
Signed-off-by: Christian Storm <christi...@siemens.com>
---
suricatta/server_lua.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/suricatta/server_lua.c b/suricatta/server_lua.c
index 7ac5e972..2641a037 100644
--- a/suricatta/server_lua.c
+++ b/suricatta/server_lua.c
@@ -1592,6 +1592,11 @@ static int suricatta_lua_module(lua_State *L)
push_to_table(L, "SUBPROCESS", SUBPROCESS);
push_to_table(L, "PROGRESS", PROGRESS);
lua_settable(L, -3);
+ lua_pushstring(L, "progress_cause");
+ lua_newtable(L);
+ push_to_table(L, "CAUSE_NONE", CAUSE_NONE);
+ push_to_table(L, "CAUSE_REBOOT_MODE", CAUSE_REBOOT_MODE);
+ lua_settable(L, -3);
lua_settable(L, -3);

lua_pushstring(L, "status");
--
2.45.2

Stefano Babic

unread,
Jun 4, 2024, 9:34:50 AM6/4/24
to Storm, Christian, swupdate
Applied to -master, thanks !

Best regards,
Stefano Babic
Reply all
Reply to author
Forward
0 new messages