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
5#include "dolphin/os/OSTime.h"
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11typedef struct OSAlarmLink {
12 /* 0x0 */ struct OSAlarm* prev;
13 /* 0x4 */ struct OSAlarm* next;
15
16typedef struct OSAlarm;
17typedef void (*OSAlarmHandler)(struct OSAlarm* alarm, OSContext* context);
18
19typedef struct OSAlarm {
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
32
33void OSInitAlarm(void);
34void OSCreateAlarm(OSAlarm* alarm);
35static void InsertAlarm(OSAlarm* alarm, s64 time, OSAlarmHandler handler);
36void OSSetAlarm(OSAlarm* alarm, s64 time, OSAlarmHandler handler);
38void OSCancelAlarm(OSAlarm* alarm);
41
42#ifdef __cplusplus
43};
44#endif
45
46#endif /* OSALARM_H */
OSTime time
Definition GXInit.c:61
static OSContext context
Definition JUTException.cpp:233
void(* OSAlarmHandler)(struct OSAlarm *alarm, OSContext *context)
Definition OSAlarm.h:17
void OSSetAlarm(OSAlarm *alarm, s64 time, OSAlarmHandler handler)
Definition OSAlarm.c:93
void OSSetPeriodicAlarm(OSAlarm *alarm, s64 start, s64 period, OSAlarmHandler handler)
Definition OSAlarm.c:102
void OSInitAlarm(void)
Definition OSAlarm.c:17
static void InsertAlarm(OSAlarm *alarm, s64 time, OSAlarmHandler handler)
void OSCreateAlarm(OSAlarm *alarm)
Definition OSAlarm.c:26
static void DecrementerExceptionCallback(__OSException exception, OSContext *context)
void OSCancelAlarm(OSAlarm *alarm)
Definition OSAlarm.c:112
static void DecrementerExceptionHandler(__OSException exception, OSContext *context)
u8 __OSException
Definition OSError.h:53
s64 OSTime
Definition OSTime.h:10
T cLib_calcTimer(T *value)
Definition c_lib.h:74
@ start
Definition strtoul.c:8
Definition OSAlarm.h:28
OSAlarm * tail
Definition OSAlarm.h:30
OSAlarm * head
Definition OSAlarm.h:29
Definition OSAlarm.h:19
OSTime fire_time
Definition OSAlarm.h:22
OSTime period_time
Definition OSAlarm.h:24
OSAlarmHandler handler
Definition OSAlarm.h:20
u32 tag
Definition OSAlarm.h:21
OSAlarmLink link
Definition OSAlarm.h:23
OSTime start_time
Definition OSAlarm.h:25
Definition OSContext.h:137
Definition fdlibm.h:73
unsigned long u32
Definition types.h:10
signed long long s64
Definition types.h:7