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
{
24
OSResetFunction
func
;
25
u32
priority
;
26
OSResetFunctionInfo
*
next
;
27
OSResetFunctionInfo
*
prev
;
28
};
29
30
void
OSRegisterResetFunction
(
OSResetFunctionInfo
*info);
31
void
OSUnregisterResetFunction
(
OSResetFunctionInfo
* info);
32
void
OSResetSystem
(
int
reset
,
u32
resetCode,
BOOL
forceMenu);
33
unsigned
long
OSGetResetCode
();
34
35
#ifdef __cplusplus
36
}
37
#endif
38
39
#endif
OSGetResetCode
unsigned long OSGetResetCode()
OSResetFunction
BOOL(* OSResetFunction)(BOOL)
Definition
OSReset.h:19
OSResetSystem
void OSResetSystem(int reset, u32 resetCode, BOOL forceMenu)
OSUnregisterResetFunction
void OSUnregisterResetFunction(OSResetFunctionInfo *info)
OSRegisterResetFunction
void OSRegisterResetFunction(OSResetFunctionInfo *info)
types.h
BOOL
int BOOL
Definition
types.h:20
u32
unsigned long u32
Definition
types.h:9
reset
static void reset(HSD_GObj *gobj)
Definition
ftpeachspecialn.c:146
OSResetFunctionInfo
Definition
OSReset.h:23
OSResetFunctionInfo::priority
u32 priority
Definition
OSReset.h:25
OSResetFunctionInfo::func
OSResetFunction func
Definition
OSReset.h:24
OSResetFunctionInfo::prev
OSResetFunctionInfo * prev
Definition
OSReset.h:27
OSResetFunctionInfo::next
OSResetFunctionInfo * next
Definition
OSReset.h:26
OSResetFunctionQueue
Definition
OSReset.h:14
OSResetFunctionQueue::tail
struct OSResetFunctionInfo * tail
Definition
OSReset.h:16
OSResetFunctionQueue::head
struct OSResetFunctionInfo * head
Definition
OSReset.h:15
extern
dolphin
include
dolphin
os
OSReset.h
Generated by
1.17.0