feat: disconnect Bluetooth devices, flush disks on shutdown/reboot, display progress in login.elf window
This commit is contained in:
@@ -146,3 +146,10 @@ bool try_first_boot_submit(LoginState* ls);
|
||||
bool try_login(LoginState* ls);
|
||||
void handle_key(LoginState* ls, const Montauk::KeyEvent& key);
|
||||
void handle_mouse(LoginState* ls);
|
||||
|
||||
// Graceful shutdown view (login_shutdown.cpp). draw_shutdown_screen paints the
|
||||
// status card; perform_graceful_shutdown runs the staged power-off (Bluetooth
|
||||
// teardown, filesystem flush) and finally issues the ACPI power-off / reset, so
|
||||
// it never returns. `action` is Montauk::POWER_REQ_SHUTDOWN or POWER_REQ_REBOOT.
|
||||
void draw_shutdown_screen(LoginState* ls, const char* heading, const char* status);
|
||||
[[noreturn]] void perform_graceful_shutdown(LoginState* ls, int action);
|
||||
|
||||
Reference in New Issue
Block a user