NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
OSAlarm.h
1
#ifndef RVL_SDK_OS_ALARM_H
2
#define RVL_SDK_OS_ALARM_H
3
#include <types.h>
4
#ifdef __cplusplus
5
extern
"C"
{
6
#endif
7
8
// Forward declarations
9
typedef
struct
OSAlarm
OSAlarm
;
10
typedef
struct
OSContext
OSContext
;
11
12
typedef
void (*OSAlarmHandler)(
OSAlarm
* alarm,
OSContext
* ctx);
13
14
typedef
struct
OSAlarm
{
15
OSAlarmHandler handler;
// at 0x0
16
u32 tag;
// at 0x4
17
s64 end;
// at 0x8
18
OSAlarm
* prev;
// at 0x10
19
OSAlarm
* next;
// at 0x14
20
s64 period;
// at 0x18
21
s64 start;
// at 0x20
22
void
* userData;
// at 0x28
23
}
OSAlarm
;
24
25
typedef
struct
OSAlarmQueue
{
26
OSAlarm
* head;
// at 0x0
27
OSAlarm
* tail;
// at 0x4
28
}
OSAlarmQueue
;
29
30
void
__OSInitAlarm(
void
);
31
void
OSCreateAlarm(
OSAlarm
* alarm);
32
void
OSSetAlarm(
OSAlarm
* alarm, s64 tick, OSAlarmHandler handler);
33
void
OSSetPeriodicAlarm(
OSAlarm
* alarm, s64 tick, s64 period,
34
OSAlarmHandler handler);
35
void
OSCancelAlarm(
OSAlarm
* alarm);
36
void
OSSetAlarmTag(
OSAlarm
* alarm, u32 tag);
37
void
OSSetAlarmUserData(
OSAlarm
* alarm,
void
* userData);
38
void
* OSGetAlarmUserData(
const
OSAlarm
* alarm);
39
40
#ifdef __cplusplus
41
}
42
#endif
43
#endif
OSAlarmQueue
Definition
OSAlarm.h:25
OSAlarm
Definition
OSAlarm.h:14
OSContext
Definition
OSContext.h:12
include
lib
revolution
OS
OSAlarm.h
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2