mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
* work on fop actor / actor mng, daalink, d_a_obj_item * d_a_title mostly decompiled * daalink / d_event / JMessage / dmsg_out_font work * msg_scrn_base / msg_scrn_boss * some work on mDo machine, d_menu_save, d_tresure, and various * remove asm * progress * finish d_menu_save / d_pane_class_alpha / d_pane_class / rename some data * rename more data * remove asm / progress * match all of d_pane_class * fixes / some dKankyo doc * bunch of j2d work. d_drawlist / d_attention cleanup * progress / asm * cleanup wip * decompile JStage * setup some more JStudio structs * set up d_demo classes * some d_demo work * cleanup dolphin os stuff * some initial dEvent documentation * some At collision documentation * match JUTConsole::doDraw * dbgs work / split up some of d_a_alink into .inc files * d_a_alink_spinner work
43 lines
1.2 KiB
C
43 lines
1.2 KiB
C
#ifndef OSALARM_H
|
|
#define OSALARM_H
|
|
|
|
#include "dolphin/types.h"
|
|
#include "dolphin/os/OSTime.h"
|
|
#include "dolphin/os/OSError.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct OSAlarmLink {
|
|
/* 0x0 */ struct OSAlarm* prev;
|
|
/* 0x4 */ struct OSAlarm* next;
|
|
} OSAlarmLink;
|
|
|
|
typedef void (*OSAlarmHandler)(struct OSAlarm* alarm, struct OSContext* context);
|
|
|
|
typedef struct OSAlarm {
|
|
/* 0x00 */ OSAlarmHandler handler;
|
|
/* 0x04 */ u32 tag;
|
|
/* 0x08 */ OSTime fire_time;
|
|
/* 0x10 */ OSAlarmLink link;
|
|
/* 0x18 */ OSTime period_time;
|
|
/* 0x20 */ OSTime start_time;
|
|
} OSAlarm; // Size: 0x28
|
|
|
|
void OSInitAlarm(void);
|
|
void OSCreateAlarm(OSAlarm* alarm);
|
|
static void InsertAlarm(OSAlarm* alarm, s64 time, OSAlarmHandler* handler);
|
|
void OSSetAlarm(OSAlarm* alarm, s64 time, OSAlarmHandler* handler);
|
|
void OSSetPeriodicAlarm(OSAlarm* alarm, s64 start, s64 period, OSAlarmHandler* handler);
|
|
void OSCancelAlarm(OSAlarm* alarm);
|
|
static void DecrementerExceptionCallback(OSException* exception, struct OSContext* context);
|
|
static void DecrementerExceptionHandler(OSException* exception, struct OSContext* context);
|
|
static s32 OnReset(s32 param_0);
|
|
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif
|
|
|
|
#endif /* OSALARM_H */
|