Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
OSAlarm.h
Go to the documentation of this file.
1
#ifndef OSALARM_H
2
#define OSALARM_H
3
4
#include "
dolphin/os/OSError.h
"
5
#include "
dolphin/os/OSTime.h
"
6
7
#ifdef __cplusplus
8
extern
"C"
{
9
#endif
10
11
typedef
struct
OSAlarmLink
{
12
/* 0x0 */
struct
OSAlarm
*
prev
;
13
/* 0x4 */
struct
OSAlarm
*
next
;
14
}
OSAlarmLink
;
15
16
typedef
struct
OSAlarm
;
17
typedef
void
(*
OSAlarmHandler
)(
struct
OSAlarm
* alarm,
OSContext
*
context
);
18
19
typedef
struct
OSAlarm
{
20
/* 0x00 */
OSAlarmHandler
handler
;
21
/* 0x04 */
u32
tag
;
22
/* 0x08 */
OSTime
fire_time
;
23
/* 0x10 */
OSAlarmLink
link
;
24
/* 0x18 */
OSTime
period_time
;
25
/* 0x20 */
OSTime
start_time
;
26
}
OSAlarm
;
// Size: 0x28
27
28
typedef
struct
OSAlarmQueue
{
29
OSAlarm
*
head
;
30
OSAlarm
*
tail
;
31
}
OSAlarmQueue
;
32
33
void
OSInitAlarm
(
void
);
34
void
OSCreateAlarm
(
OSAlarm
* alarm);
35
static
void
InsertAlarm
(
OSAlarm
* alarm,
s64
time
,
OSAlarmHandler
handler);
36
void
OSSetAlarm
(
OSAlarm
* alarm,
s64
time
,
OSAlarmHandler
handler);
37
void
OSSetPeriodicAlarm
(
OSAlarm
* alarm,
s64
start
,
s64
period
,
OSAlarmHandler
handler);
38
void
OSCancelAlarm
(
OSAlarm
* alarm);
39
static
void
DecrementerExceptionCallback
(
__OSException
exception
,
OSContext
*
context
);
40
static
void
DecrementerExceptionHandler
(
__OSException
exception
,
OSContext
*
context
);
41
42
#ifdef __cplusplus
43
};
44
#endif
45
46
#endif
/* OSALARM_H */
time
OSTime time
Definition
GXInit.c:61
context
static OSContext context
Definition
JUTException.cpp:233
OSAlarmHandler
void(* OSAlarmHandler)(struct OSAlarm *alarm, OSContext *context)
Definition
OSAlarm.h:17
OSSetAlarm
void OSSetAlarm(OSAlarm *alarm, s64 time, OSAlarmHandler handler)
Definition
OSAlarm.c:93
OSSetPeriodicAlarm
void OSSetPeriodicAlarm(OSAlarm *alarm, s64 start, s64 period, OSAlarmHandler handler)
Definition
OSAlarm.c:102
OSInitAlarm
void OSInitAlarm(void)
Definition
OSAlarm.c:17
InsertAlarm
static void InsertAlarm(OSAlarm *alarm, s64 time, OSAlarmHandler handler)
OSCreateAlarm
void OSCreateAlarm(OSAlarm *alarm)
Definition
OSAlarm.c:26
DecrementerExceptionCallback
static void DecrementerExceptionCallback(__OSException exception, OSContext *context)
OSCancelAlarm
void OSCancelAlarm(OSAlarm *alarm)
Definition
OSAlarm.c:112
DecrementerExceptionHandler
static void DecrementerExceptionHandler(__OSException exception, OSContext *context)
OSError.h
__OSException
u8 __OSException
Definition
OSError.h:53
OSTime.h
OSTime
s64 OSTime
Definition
OSTime.h:10
cLib_calcTimer
T cLib_calcTimer(T *value)
Definition
c_lib.h:74
start
@ start
Definition
strtoul.c:8
OSAlarmLink
Definition
OSAlarm.h:11
OSAlarmLink::prev
struct OSAlarm * prev
Definition
OSAlarm.h:12
OSAlarmLink::next
struct OSAlarm * next
Definition
OSAlarm.h:13
OSAlarmQueue
Definition
OSAlarm.h:28
OSAlarmQueue::tail
OSAlarm * tail
Definition
OSAlarm.h:30
OSAlarmQueue::head
OSAlarm * head
Definition
OSAlarm.h:29
OSAlarm
Definition
OSAlarm.h:19
OSAlarm::fire_time
OSTime fire_time
Definition
OSAlarm.h:22
OSAlarm::period_time
OSTime period_time
Definition
OSAlarm.h:24
OSAlarm::handler
OSAlarmHandler handler
Definition
OSAlarm.h:20
OSAlarm::tag
u32 tag
Definition
OSAlarm.h:21
OSAlarm::link
OSAlarmLink link
Definition
OSAlarm.h:23
OSAlarm::start_time
OSTime start_time
Definition
OSAlarm.h:25
OSContext
Definition
OSContext.h:137
exception
Definition
fdlibm.h:73
u32
unsigned long u32
Definition
types.h:10
s64
signed long long s64
Definition
types.h:7
include
dolphin
os
OSAlarm.h
Generated by
1.9.8