mirror of
https://github.com/aydencharles/onionHEN.git
synced 2026-10-22 03:42:46 -05:00
21 lines
558 B
C++
21 lines
558 B
C++
/* Copyright (C) 2025 OnionHEN / LightningMods */
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
enum class DaemonPowerState : uint8_t {
|
|
Unknown,
|
|
Working,
|
|
MainOnStandby,
|
|
SuspendOnGoing,
|
|
};
|
|
|
|
/** Read the current SceSystemStateMgr state from its kernel event flag. */
|
|
DaemonPowerState daemon_power_state_get();
|
|
|
|
/** True for a sampled state while the console is entering/being suspended. */
|
|
bool daemon_power_state_is_sleeping(DaemonPowerState state);
|
|
|
|
/** True while the console is entering or already in standby suspend. */
|
|
bool daemon_power_state_is_sleeping();
|