/*---------------------------------------------------------------------------* Project: OS Reset API File: OSReset.h Copyright (C) Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. *---------------------------------------------------------------------------*/ #ifndef __OSRESET_H__ #define __OSRESET_H__ #include #ifdef __cplusplus extern "C" { #endif // Event types for __OSShutdownDevices() #define OS_SD_FATALERR 0 #define OS_SD_REBOOT 1 #define OS_SD_SHUTDOWN 2 #define OS_SD_IDLE 3 #define OS_SD_RESTART 4 #define OS_SD_RETURNTOMENU 5 #define OS_SD_EXEC 6 #define OS_SD_LAUNCH 7 // Events for OSGetShutdownReason() #define OS_SHUTDOWN_NO_SHUTDOWN 0 #define OS_SHUTDOWN_POWER_OFF 1 #define OS_SHUTDOWN_RESTART 2 #define OS_SHUTDOWN_STANDBY 3 // Bit field flags for OSGetShutdownFlags() #define OS_SHUTDOWN_FLAG_NO_FLAGS 0x00000000 #define OS_SHUTDOWN_FLAG_APD_REQUEST 0x00000001 u32 OSGetShutdownReason(void); u32 OSGetShutdownFlags(void); void OSBlockThreadsOnExit(void); BOOL OSIsBlockThreadsOnExit(void); void OSRunThreadsOnExit(void); #ifdef __cplusplus } #endif #endif // __OSRESET_H__