1#ifndef _REVOLUTION_OSRESET_H_
2#define _REVOLUTION_OSRESET_H_
10#define OS_RESET_RESTART 0
11#define OS_RESET_HOTRESET 1
12#define OS_RESET_SHUTDOWN 2
36#define OSIsRestart() \
37 ((OSGetResetCode() & 0x80000000) ? TRUE : FALSE)
int BOOL
Definition types.h:33
unsigned long u32
Definition types.h:12
BOOL(* OSShutdownFunction)(BOOL, u32)
Definition OSReset.h:20
void OSRegisterShutdownFunction(OSShutdownFunctionInfo *info)
Definition OSReset.c:75
struct OSShutdownFunctionQueue OSShutdownFunctionQueue
void OSUnregisterShutdownFunction(OSShutdownFunctionInfo *info)
Definition OSReset.c:81
void OSResetSystem(int reset, u32 resetCode, BOOL forceMenu)
Definition OSReset.c:193
u32 OSSetBootDol(u32 dolOffset)
Definition OSReset.c:242
void OSReturnToMenu(void)
Definition OSReset.c:295
u32 OSGetResetCode()
Definition OSReset.c:232
u32 priority
Definition OSReset.h:24
OSShutdownFunctionInfo * prev
Definition OSReset.h:26
OSShutdownFunction func
Definition OSReset.h:23
OSShutdownFunctionInfo * next
Definition OSReset.h:25
OSShutdownFunctionInfo * tail
Definition OSReset.h:17
OSShutdownFunctionInfo * head
Definition OSReset.h:16