| 631 | } |
| 632 | |
| 633 | static Result aptReceiveParameter(APT_Command* cmd, size_t* actualSize, Handle* handle) |
| 634 | { |
| 635 | NS_APPID sender; |
| 636 | size_t temp_actualSize; |
| 637 | if (!actualSize) actualSize = &temp_actualSize; |
| 638 | |
| 639 | LightEvent_Wait(&aptReceiveEvent); |
| 640 | LightEvent_Clear(&aptReceiveEvent); |
| 641 | Result res = APT_ReceiveParameter(envGetAptAppId(), aptParameters, sizeof(aptParameters), &sender, cmd, actualSize, handle); |
| 642 | if (R_SUCCEEDED(res) && *cmd == APTCMD_MESSAGE && aptMessageFunc) |
| 643 | aptMessageFunc(aptMessageFuncData, sender, aptParameters, *actualSize); |
| 644 | return res; |
| 645 | } |
| 646 | |
| 647 | APT_Command aptWaitForWakeUp(APT_Transition transition) |
| 648 | { |
no test coverage detected