1
0
Fork 0
forked from suyu/suyu

service/pm: Tidy up functionality related to SystemBootMode

Just minor tidying of interfaces.
This commit is contained in:
Lioncash 2019-01-28 11:44:35 -05:00
parent 72c48e01c9
commit cb2ce9924a
2 changed files with 9 additions and 2 deletions

View file

@ -24,8 +24,10 @@ private:
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
rb.Push<u32>(static_cast<u32>(SystemBootMode::Normal)); // Normal boot mode
rb.PushEnum(boot_mode);
}
SystemBootMode boot_mode = SystemBootMode::Normal;
};
class DebugMonitor final : public ServiceFramework<DebugMonitor> {

View file

@ -9,7 +9,12 @@ class ServiceManager;
}
namespace Service::PM {
enum class SystemBootMode : u32 { Normal = 0, Maintenance = 1 };
enum class SystemBootMode {
Normal,
Maintenance,
};
/// Registers all PM services with the specified service manager.
void InstallInterfaces(SM::ServiceManager& service_manager);