nn::applet::CTR::IsExpectedToReplySleepQuery Function

Syntax

bool IsExpectedToReplySleepQuery(
     void
);

Arguments

None.

Return Values

Returns true if waiting for a reply.

Description

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;
    }

Revision History

2010/12/01
Initial version.

CONFIDENTIAL