mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-26 05:51:21 -08:00
service/pm: Tidy up functionality related to SystemBootMode
Just minor tidying of interfaces.
This commit is contained in:
parent
72c48e01c9
commit
cb2ce9924a
@ -24,8 +24,10 @@ private:
|
|||||||
|
|
||||||
IPC::ResponseBuilder rb{ctx, 3};
|
IPC::ResponseBuilder rb{ctx, 3};
|
||||||
rb.Push(RESULT_SUCCESS);
|
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> {
|
class DebugMonitor final : public ServiceFramework<DebugMonitor> {
|
||||||
|
@ -9,7 +9,12 @@ class ServiceManager;
|
|||||||
}
|
}
|
||||||
|
|
||||||
namespace Service::PM {
|
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.
|
/// Registers all PM services with the specified service manager.
|
||||||
void InstallInterfaces(SM::ServiceManager& service_manager);
|
void InstallInterfaces(SM::ServiceManager& service_manager);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user