correct coding style

This commit is contained in:
greggameplayer
2018-08-14 18:02:37 +02:00
committed by Unknown
parent b71e0aaad7
commit 52e2b8ad58
2 changed files with 5 additions and 3 deletions

View File

@@ -283,8 +283,8 @@ void ISelfController::SetHandlesRequestToDisplay(Kernel::HLERequestContext& ctx)
void ISelfController::SetIdleTimeDetectionExtension(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
auto Idle_Time_Detection_Extension = rp.Pop<u32>();
IPC::ResponseBuilder rb{ctx, 2};
IdleTimeDetectionExtension = rp.Pop<u32>();
rb.Push(RESULT_SUCCESS);
LOG_WARNING(Service_AM, "(STUBBED) called");
@@ -293,7 +293,9 @@ void ISelfController::SetIdleTimeDetectionExtension(Kernel::HLERequestContext& c
void ISelfController::GetIdleTimeDetectionExtension(Kernel::HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
rb.Push<u32>(IdleTimeDetectionExtension);
rb.Push<u32>(Idle_Time_Detection_Extension);
LOG_WARNING(Service_AM, "(STUBBED) called");
}
ICommonStateGetter::ICommonStateGetter() : ServiceFramework("ICommonStateGetter") {

View File

@@ -92,7 +92,7 @@ private:
std::shared_ptr<NVFlinger::NVFlinger> nvflinger;
Kernel::SharedPtr<Kernel::Event> launchable_event;
u32 IdleTimeDetectionExtension;
u32 Idle_Time_Detection_Extension;
};
class ICommonStateGetter final : public ServiceFramework<ICommonStateGetter> {