summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklib.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-04-16 14:25:49 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-04-16 14:36:39 +0100
commitd55dceff371c4080d179fb26e6f175927cc48768 (patch)
tree65598ecdc8142d4178b1f8b13dce37e871cc7016 /apps/plugins/lua/rocklib.c
parent90960adf56d4798a23b8fdc7e6a9bb25dd0bf530 (diff)
downloadrockbox-d55dceff371c4080d179fb26e6f175927cc48768.tar.gz
rockbox-d55dceff371c4080d179fb26e6f175927cc48768.zip
apps: Add ability to do a clean reboot
Allow a clean shutdown to end in either power off or reboot. Add a new event SYS_REBOOT to signal it and sys_reboot() to trigger the event. SYS_REBOOT signals a reboot request and should be listened for alongside SYS_POWEROFF events. Change-Id: I99ba7fb5feed2bb5a0a40a274e8466ad74fe3a43
Diffstat (limited to 'apps/plugins/lua/rocklib.c')
-rw-r--r--apps/plugins/lua/rocklib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c
index 6131a479db..cadc8be6ac 100644
--- a/apps/plugins/lua/rocklib.c
+++ b/apps/plugins/lua/rocklib.c
@@ -1090,6 +1090,7 @@ LUALIB_API int luaopen_rock(lua_State *L)
1090 RB_CONSTANT(SYS_USB_DISCONNECTED), 1090 RB_CONSTANT(SYS_USB_DISCONNECTED),
1091 RB_CONSTANT(SYS_TIMEOUT), 1091 RB_CONSTANT(SYS_TIMEOUT),
1092 RB_CONSTANT(SYS_POWEROFF), 1092 RB_CONSTANT(SYS_POWEROFF),
1093 RB_CONSTANT(SYS_REBOOT),
1093 RB_CONSTANT(SYS_CHARGER_CONNECTED), 1094 RB_CONSTANT(SYS_CHARGER_CONNECTED),
1094 RB_CONSTANT(SYS_CHARGER_DISCONNECTED), 1095 RB_CONSTANT(SYS_CHARGER_DISCONNECTED),
1095 1096