mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-30 15:39:02 -05:00 
			
		
		
		
	service/pm: Tidy up functionality related to SystemBootMode
Just minor tidying of interfaces.
This commit is contained in:
		| @@ -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); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Lioncash
					Lioncash