SSBM Decomp
Toggle main menu visibility
Loading...
Searching...
No Matches
OSReset.h
Go to the documentation of this file.
1
#ifndef _DOLPHIN_OSRESET_H_
2
#define _DOLPHIN_OSRESET_H_
3
4
#include <
dolphin/types.h
>
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
#define OS_RESET_RESTART 0
11
#define OS_RESET_HOTRESET 1
12
#define OS_RESET_SHUTDOWN 2
13
14
struct
OSResetFunctionQueue
{
15
struct
OSResetFunctionInfo
*
head
;
16
struct
OSResetFunctionInfo
*
tail
;
17
};
18
19
typedef
BOOL
(*
OSResetFunction
)(
BOOL
);
20
21
typedef
struct
OSResetFunctionInfo
OSResetFunctionInfo
;
22
struct
OSResetFunctionInfo
{
23
OSResetFunction
func
;
24
u32
priority
;
25
OSResetFunctionInfo
*
next
;
26
OSResetFunctionInfo
*
prev
;
27
};
28
29
void
OSRegisterResetFunction
(
OSResetFunctionInfo
* info);
30
void
OSUnregisterResetFunction
(
OSResetFunctionInfo
* info);
31
void
OSResetSystem
(
int
reset
,
u32
resetCode,
BOOL
forceMenu);
32
unsigned
long
OSGetResetCode
();
33
34
#ifdef __cplusplus
35
}
36
#endif
37
38
#endif
OSGetResetCode
unsigned long OSGetResetCode()
Definition
OSReset.c:215
OSResetFunction
BOOL(* OSResetFunction)(BOOL)
Definition
OSReset.h:19
OSResetSystem
void OSResetSystem(int reset, u32 resetCode, BOOL forceMenu)
OSUnregisterResetFunction
void OSUnregisterResetFunction(OSResetFunctionInfo *info)
Definition
OSReset.c:72
OSRegisterResetFunction
void OSRegisterResetFunction(OSResetFunctionInfo *info)
Definition
OSReset.c:65
reset
static void reset(HSD_GObj *gobj)
Definition
ftpeachspecialn.c:146
types.h
BOOL
int BOOL
Definition
types.h:25
u32
unsigned int u32
Definition
types.h:13
OSResetFunctionInfo
Definition
OSReset.h:22
OSResetFunctionInfo::priority
u32 priority
Definition
OSReset.h:24
OSResetFunctionInfo::func
OSResetFunction func
Definition
OSReset.h:23
OSResetFunctionInfo::prev
OSResetFunctionInfo * prev
Definition
OSReset.h:26
OSResetFunctionInfo::next
OSResetFunctionInfo * next
Definition
OSReset.h:25
OSResetFunctionQueue
Definition
OSReset.h:14
OSResetFunctionQueue::tail
struct OSResetFunctionInfo * tail
Definition
OSReset.h:16
OSResetFunctionQueue::head
struct OSResetFunctionInfo * head
Definition
OSReset.h:15
libs
dolphin
include
dolphin
os
OSReset.h
Generated by
1.17.0