nn::applet::CTR::IsExpectedToReplySleepQuery Function
bool IsExpectedToReplySleepQuery(
void
);
None.
true if waiting for a reply. Checks whether the sleep notification state is waiting for a reply.
In other words, the state indicates that the sleep notification callback has returned nn::applet::CTR::REPLY_LATER and has not yet returned nn::applet::CTR::REPLY_ACCEPT or nn::applet::CTR::REJECT.
See the nn::applet::CTR::GetSleepNotificationState function reference for details on sleep notification states.
This function is an inline function that only checks whether the return value from the nn::applet::CTR::GetSleepNotificationState function is nn::applet::CTR::NOTIFY_SLEEP_QUERY, as in the code sample below.
inline bool IsExpectedToReplySleepQuery(void)
{
return (GetSleepNotificationState() ==
nn::applet::CTR::NOTIFY_SLEEP_QUERY)
? true: false;
}
CONFIDENTIAL